AboutDialog::AboutDialog(QWidget* parent):QDialog(parent) { setupUi(this); createBanner(&BannerPixmap,getPixmap("keepassx"),QString("%1 %2").arg(APP_DISPLAY_NAME, APP_VERSION),width()); labelAppName->setText(APP_DISPLAY_NAME); labelAppFunc->setText(QString(" - ").append(APP_LONG_FUNC)); QString AboutTr=QString("<b>%1: %2</b><br><br>").arg(tr("Current Translation")).arg(tr("None","Please replace 'None' with the language of your translation")); if(isTranslationActive()){ AboutTr+=QString("<b>%1:</b> %2<br>").arg(tr("Author")).arg(QApplication::translate("Translation", "$TRANSLATION_AUTHOR")); QString mail=QApplication::translate("Translation", "$TRANSLATION_AUTHOR_EMAIL","Here you can enter your email or homepage if you want."); if(!mail.isEmpty()){ AboutTr+=mail+"<br>"; } AboutTr+="<br>"; } Edit_Translation->setHtml(AboutTr+tr("Information on how to translate KeePassX can be found under:") +"<br>http://www.keepassx.org/"); QString str; str+="<b>"+tr("Team")+"</b><br>"; str+="<div style='margin-left:10px;'>"; str+="<u>Tarek Saidi</u><br>"+tr("Developer, Project Admin")+"<br>[email protected]<br>"; str+="<br>"; str+="<u>Felix Geyer</u><br>"+tr("Developer, Project Admin")+"<br>[email protected]<br>"; str+="<br>"; str+="<u>Brandon Mayes</u><br>"+tr("Developer")+"<br>[email protected]<br>"; str+="<br>"; str+="<u>Eugen Gorschenin</u><br>"+tr("Web Designer")+"<br>[email protected]<br>"; str+="<br>"; str+="<u>Juan J González Cárdenas [Jota Jota]</u><br>"+tr("Developer")+"<br>[email protected]<br>"; str+="</div><br><div style='margin-left:0px;'>"; str+="<b>"+tr("Thanks To")+"</b><br>"; str+="</div><div style='margin-left:10px;'>"; str+="<u>Matthias Miller</u><br>"+tr("Patches for better MacOS X support")+"<br>www.outofhanwell.com<br>"; str+="<br>"; str+="<u>James Nicholls</u><br>"+tr("Main Application Icon")/*+"<br>"+tr("mailto:???")*/+"<br>"; str+="<br>"; str+="<u>Constantin Makshin</u><br>"+tr("Various fixes and improvements")+"<br>[email protected]<br>"; str+="<br>"; str+="<u>Lev Shamardin</u><br>"+tr("Lock with dialogs option")+"<br>[email protected]<br>"; str += "</div>"; Edit_Thanks->setHtml(str); QFile gpl(DataDir+"/license.html"); if (!gpl.open(QIODevice::ReadOnly)){ QMessageBox::critical(this,tr("Error"),tr("File '%1' could not be found.") .arg("'license.html'")+"\n"+tr("Make sure that the program is installed correctly.") ,tr("OK"),0,0,2,1); } Edit_License->setHtml(QString::fromUtf8(gpl.readAll())); connect(ButtonBox, SIGNAL(rejected()), SLOT(close())); }
void conditions() { gpl(2); }
void warranty() { gpl(15); }