From 1a716800e37ae482901e9cce36c40005742dd78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Sun, 28 Feb 2016 19:23:20 +0100 Subject: Qt: Add dialog geometry restore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ui/qt/wlan_statistics_dialog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ui/qt/wlan_statistics_dialog.cpp') diff --git a/ui/qt/wlan_statistics_dialog.cpp b/ui/qt/wlan_statistics_dialog.cpp index 6ebf4b82ec..02cb0f6c37 100644 --- a/ui/qt/wlan_statistics_dialog.cpp +++ b/ui/qt/wlan_statistics_dialog.cpp @@ -467,9 +467,7 @@ WlanStatisticsDialog::WlanStatisticsDialog(QWidget &parent, CaptureFile &cf, con packet_count_(0) { setWindowSubtitle(tr("Wireless LAN Statistics")); - - // XXX Use recent settings instead - resize(parent.width() * 4 / 5, parent.height() * 3 / 4); + loadGeometry(parent.width() * 4 / 5, parent.height() * 3 / 4, "WlanStatisticsDialog"); QStringList header_labels = QStringList() << "" << tr("Channel") << tr("SSID") << tr("Percent Packets") << "" << "" -- cgit v1.2.1