Add unsaved changes indication to SQL tabs

This commit is contained in:
eelke 2021-04-10 09:49:54 +02:00
parent d12fb60af8
commit 50cd865b1a
2 changed files with 30 additions and 9 deletions

View file

@ -56,9 +56,10 @@ public:
QString title() const;
public slots:
void execute();
/// Save the document under its current name, a file save dialog will be shown if this is a new document
void execute();
/// Save the document under its current name, a file save dialog will be shown if this is a new document
bool save();
/// Saves the document under a new name and continue editing the document under this new name.
bool saveAs();
@ -103,6 +104,8 @@ private:
void clearResult();
void markError(const Pgsql::ErrorDetails &details);
void updateTitle();
void setQueryTextChanged(bool queryTextChanged);
private slots: