mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
parent
66f5a8736a
commit
49d2b87889
@ -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…
Reference in New Issue
Block a user