Add KeePassX icon to about dialog.

This commit is contained in:
Felix Geyer
2012-05-02 16:21:59 +02:00
parent 31ab2677f8
commit 98a2950941
2 changed files with 24 additions and 7 deletions

View File

@@ -19,18 +19,22 @@
#include "ui_AboutDialog.h"
#include "config-keepassx.h"
#include "core/DataPath.h"
AboutDialog::AboutDialog(QWidget* parent)
: QDialog(parent)
, m_ui(new Ui::AboutDialog())
{
m_ui->setupUi(this);
m_ui->nameLabel->setText(m_ui->nameLabel->text() + " " + KEEPASSX_VERSION);
QFont nameLabelFont = m_ui->nameLabel->font();
nameLabelFont.setBold(true);
nameLabelFont.setPointSize(nameLabelFont.pointSize() + 4);
m_ui->nameLabel->setFont(nameLabelFont);
m_ui->iconLabel->setPixmap(dataPath()->applicationIcon().pixmap(48));
setAttribute(Qt::WA_DeleteOnClose);
connect(m_ui->buttonBox, SIGNAL(rejected()), SLOT(close()));
}