When files are dropped on a database window open them as sql files.

This commit is contained in:
eelke 2021-06-16 19:20:03 +02:00
parent b04b947633
commit 6d08b40309
3 changed files with 55 additions and 22 deletions

View file

@ -128,6 +128,8 @@ private:
void newCatalogInspectorPage(QString caption, NamespaceFilter filter);
void newServerInspectorPage();
void closeTab(int index);
void openSqlFile(QString file_name);
private slots:
void catalogLoaded();
void tableSelected(Oid tableoid);
@ -167,6 +169,11 @@ public:
virtual void setIconForWidget(QWidget *widget, QIcon icon) override;
virtual std::shared_ptr<OpenDatabase> openDatabase() override;
virtual void showStatusBarMessage(QString message) override;
// QWidget interface
protected:
virtual void dragEnterEvent(QDragEnterEvent *event) override;
virtual void dropEvent(QDropEvent *event) override;
};
#endif // MAINWINDOW_H