mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-24 15:25:31 -04:00
parent
66f5a8736a
commit
49d2b87889
1 changed files with 7 additions and 0 deletions
|
@ -20,12 +20,19 @@
|
|||
#include "DatabaseWidget.h"
|
||||
#include "core/Database.h"
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <QtPlatformHeaders/QWindowsWindowFunctions>
|
||||
#endif
|
||||
|
||||
DatabaseOpenDialog::DatabaseOpenDialog(QWidget* parent)
|
||||
: QDialog(parent)
|
||||
, m_view(new DatabaseOpenWidget(this))
|
||||
{
|
||||
setWindowTitle(tr("Unlock Database - KeePassXC"));
|
||||
setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint);
|
||||
#ifdef Q_OS_WIN
|
||||
QWindowsWindowFunctions::setWindowActivationBehavior(QWindowsWindowFunctions::AlwaysActivateWindow);
|
||||
#endif
|
||||
connect(m_view, SIGNAL(dialogFinished(bool)), this, SLOT(complete(bool)));
|
||||
auto* layout = new QVBoxLayout();
|
||||
layout->setMargin(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue