pgLab/pglab/ManagedPage.h
eelke dea76e17c5 ft: Closing windows asks to save queries before closing the window.
fix: closetab did incorrectly close when cancel was choosen.
2020-04-04 13:23:43 +02:00

17 lines
250 B
C++

#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