aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/wireshark_dialog.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-02-28 19:23:20 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2016-02-28 18:25:50 +0000
commit1a716800e37ae482901e9cce36c40005742dd78e (patch)
tree6dc88f72f082fa795646442e086363ff3d2f1b9f /ui/qt/wireshark_dialog.h
parentf0425e83a16acabfec103f52099a3f20ea7b35c2 (diff)
Qt: Add dialog geometry restore
Add GeometryStateDialog class to handle load and save dialog geometry. The QDialog class name will be used as window name. For shared classes the UAT name or the statistics title or abbr will be used. Change-Id: I5a019598307fb3861518f41e733de834788184d8 Reviewed-on: https://code.wireshark.org/review/14139 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/wireshark_dialog.h')
-rw-r--r--ui/qt/wireshark_dialog.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt/wireshark_dialog.h b/ui/qt/wireshark_dialog.h
index 8296d72053..4bb816fdc2 100644
--- a/ui/qt/wireshark_dialog.h
+++ b/ui/qt/wireshark_dialog.h
@@ -1,4 +1,4 @@
-/* wireshark_dialog.cpp
+/* wireshark_dialog.h
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
@@ -39,10 +39,9 @@
// TapDialog might make sense as well.
#include "capture_file.h"
+#include "geometry_state_dialog.h"
-#include <QDialog>
-
-class WiresharkDialog : public QDialog
+class WiresharkDialog : public GeometryStateDialog
{
Q_OBJECT
@@ -134,6 +133,7 @@ protected slots:
private:
void setWindowTitleFromSubtitle();
+
void tryDeleteLater();
QString subtitle_;