mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-24 15:25:31 -04:00
Make DatabaseOpenWidget a bit prettier.
This commit is contained in:
parent
d0fd9af5e6
commit
909e01bde5
2 changed files with 116 additions and 53 deletions
|
@ -35,6 +35,11 @@ DatabaseOpenWidget::DatabaseOpenWidget(QWidget* parent)
|
|||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
QFont font = m_ui->labelHeadline->font();
|
||||
font.setBold(true);
|
||||
font.setPointSize(font.pointSize() + 2);
|
||||
m_ui->labelHeadline->setFont(font);
|
||||
|
||||
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
||||
|
||||
connect(m_ui->buttonTogglePassword, SIGNAL(toggled(bool)), SLOT(togglePassword(bool)));
|
||||
|
@ -60,6 +65,8 @@ void DatabaseOpenWidget::load(QFile* file, const QString& filename)
|
|||
m_file = file;
|
||||
m_filename = filename;
|
||||
|
||||
m_ui->labelFilename->setText(filename);
|
||||
|
||||
QHash<QString, QVariant> lastKeyFiles = config()->get("LastKeyFiles").toHash();
|
||||
if (lastKeyFiles.contains(m_filename)) {
|
||||
m_ui->checkKeyFile->setChecked(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue