Implement drag&drop support in main form to open database files

This commit is contained in:
frostasm 2017-12-05 09:44:01 +02:00
parent cdaf25cb3e
commit 7b9b23b143
2 changed files with 42 additions and 0 deletions

View file

@ -107,6 +107,10 @@ private:
void updateTrayIcon();
bool isTrayIconEnabled() const;
static QStringList kdbxFilesFromUrls(const QList<QUrl>& urls);
void dragEnterEvent(QDragEnterEvent* event) override;
void dropEvent(QDropEvent* event) override;
const QScopedPointer<Ui::MainWindow> m_ui;
SignalMultiplexer m_actionMultiplexer;
QAction* m_clearHistoryAction;