When files are dropped on a database window open them as sql files.
This commit is contained in:
parent
b04b947633
commit
6d08b40309
3 changed files with 55 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue