ft: Closing windows asks to save queries before closing the window.
fix: closetab did incorrectly close when cancel was choosen.
This commit is contained in:
parent
adb44fc157
commit
dea76e17c5
7 changed files with 59 additions and 10 deletions
17
pglab/ManagedPage.h
Normal file
17
pglab/ManagedPage.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef MANAGEDPAGE_H
|
||||
#define MANAGEDPAGE_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class ManagedPage: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
using QWidget::QWidget;
|
||||
|
||||
virtual ~ManagedPage() {}
|
||||
|
||||
virtual bool CanClose(bool prompt_user) = 0;
|
||||
};
|
||||
|
||||
#endif // MANAGEDPAGE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue