summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtMUCConfigurationWindow.h')
-rw-r--r--Swift/QtUI/QtMUCConfigurationWindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/QtMUCConfigurationWindow.h b/Swift/QtUI/QtMUCConfigurationWindow.h
index 2be126b..f6a22be 100644
--- a/Swift/QtUI/QtMUCConfigurationWindow.h
+++ b/Swift/QtUI/QtMUCConfigurationWindow.h
@@ -14,6 +14,7 @@
#include <Swiften/Elements/Form.h>
class QBoxLayout;
+class QCloseEvent;
namespace Swift {
class QtFormWidget;
@@ -23,12 +24,16 @@ namespace Swift {
QtMUCConfigurationWindow(Form::ref form);
virtual ~QtMUCConfigurationWindow();
boost::signal<void (Form::ref)> onFormComplete;
+ boost::signal<void ()> onFormCancelled;
private slots:
void handleCancelClicked();
void handleOKClicked();
+ protected:
+ virtual void closeEvent(QCloseEvent* event);
private:
QtFormWidget* formWidget_;
QPushButton* okButton_;
QPushButton* cancelButton_;
+ bool closed_;
};
}