QTfrontend/ui/widget/about.cpp
branchwebgl
changeset 8833 c13ebed437cb
parent 8444 75db7bb8dce8
parent 8760 534e30885b66
child 9127 e350500c4edb
equal deleted inserted replaced
8450:404ddce27b23 8833:c13ebed437cb
    65     lbl1->setText(
    65     lbl1->setText(
    66         "<style type=\"text/css\">"
    66         "<style type=\"text/css\">"
    67         "a { color: #ffcc00; }"
    67         "a { color: #ffcc00; }"
    68 //            "a:hover { color: yellow; }"
    68 //            "a:hover { color: yellow; }"
    69         "</style>"
    69         "</style>"
    70         "<div align=\"center\"><h1>Hedgewars</h1>"
    70         "<div align=\"center\"><h1>Hedgewars " + *cVersionString + "</h1>"
    71         "<h3>" + QLabel::tr("Version") + " " + *cVersionString + "</h3>"
    71         "<h3>" + QLabel::tr("Revision") + " " + *cRevisionString + " (" + *cHashString + ")</h3>"
    72         "<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p>" +
    72         "<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p>" +
    73         QLabel::tr("This program is distributed under the GNU General Public License v2") +
    73         QLabel::tr("This program is distributed under the %1").arg("<a \
       
    74         href=\"http://www.gnu.org/licenses/gpl-2.0.html\">GNU GPL v2</a>") +
    74         "</div>"
    75         "</div>"
    75     );
    76     );
    76     lbl1->setWordWrap(true);
    77     lbl1->setWordWrap(true);
    77     mainLayout->addWidget(lbl1, 0, 1);
    78     mainLayout->addWidget(lbl1, 0, 1);
    78 
    79 
    85     /* Library information */
    86     /* Library information */
    86 
    87 
    87     QString libinfo = "<style type=text/css>a:link { color: #FFFF6E; }</style>";
    88     QString libinfo = "<style type=text/css>a:link { color: #FFFF6E; }</style>";
    88 
    89 
    89 #ifdef __GNUC__
    90 #ifdef __GNUC__
    90     libinfo.append(QString("Compiler: <a href=\"http://gcc.gnu.org\">GCC</a> %1<br>").arg(__VERSION__));
    91     libinfo.append(QString("<a href=\"http://gcc.gnu.org\">GCC</a> %1<br>").arg(__VERSION__));
    91 #else
    92 #else
    92     libinfo.append(QString("Compiler: Unknown<br>").arg(__VERSION__));
    93     libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("<br>"));
    93 #endif
    94 #endif
    94 
    95 
    95     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL</a> version: %1.%2.%3<br>")
    96     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL</a> version: %1.%2.%3<br>")
    96         .arg(SDL_MAJOR_VERSION)
    97         .arg(SDL_MAJOR_VERSION)
    97         .arg(SDL_MINOR_VERSION)
    98         .arg(SDL_MINOR_VERSION)
   110         .arg(PHYSFS_VER_MAJOR)
   111         .arg(PHYSFS_VER_MAJOR)
   111         .arg(PHYSFS_VER_MINOR)
   112         .arg(PHYSFS_VER_MINOR)
   112         .arg(PHYSFS_VER_PATCH));
   113         .arg(PHYSFS_VER_PATCH));
   113 
   114 
   114     QLabel * lblLibInfo = new QLabel();
   115     QLabel * lblLibInfo = new QLabel();
       
   116     lblLibInfo->setOpenExternalLinks(true);
   115     lblLibInfo->setText(libinfo);
   117     lblLibInfo->setText(libinfo);
   116     lblLibInfo->setWordWrap(true);
   118     lblLibInfo->setWordWrap(true);
   117     lblLibInfo->setMaximumWidth(280);
   119     lblLibInfo->setMaximumWidth(280);
   118     leftLayout->addWidget(lblLibInfo, 0, Qt::AlignTop | Qt::AlignHCenter);
   120     leftLayout->addWidget(lblLibInfo, 0, Qt::AlignHCenter);
   119     leftLayout->addStretch(1);
   121     leftLayout->addStretch(1);
   120 
   122 
   121     setAcceptDrops(true);
   123     setAcceptDrops(true);
   122 }
   124 }
   123 
   125