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:
eelke 2020-04-04 13:23:43 +02:00
parent adb44fc157
commit dea76e17c5
7 changed files with 59 additions and 10 deletions

17
pglab/ManagedPage.h Normal file
View 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