diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-02-18 17:18:27 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-02-24 09:58:03 +0000 |
commit | 30ed6a1d72f1a231e5c6cb7993239e95cd3c6038 (patch) | |
tree | 265a38525864c2514e81e998b0949562f6d1c131 /ui/qt/wireshark_application.h | |
parent | f9fc25241ca0c735c0945bebf04669f17c3ffbff (diff) | |
download | wireshark-30ed6a1d72f1a231e5c6cb7993239e95cd3c6038.tar.gz |
Qt: Apply recent settings.
Add PacketList::applyRecentColumnWidths which set the packet list
column widths from our recent settings. Make sure it gets called at
startup and when we change profiles.
Save the packet list header state so that we can restore it when we
reset the model (i.e. freezing and thawing) and load a new capture file.
Save the state when the user resizes a column. As a side effect this
works around a weird bug that adjusts the width of column 1 at an
inopportune time.
Add a profileChanging signal so that we can save the main window geometry
in each profile.
Get rid of MainWindow::configurationProfileChanged. It was unused.
Apply saved pane widths and heights. Note that we might want to add a
separate pair of recent settings for the Qt panes.
Use the last opened directory in the capture file dialog.
Git rid of some unneeded Q_UNUSEDs while we're here.
Bug: 10953
Change-Id: I812aff59818cf0b4d1598b580627d32728d2e9d7
Reviewed-on: https://code.wireshark.org/review/7247
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Michal Labedzki <michal.labedzki@tieto.com>
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index 239009cd8d..2255fd5ace 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -65,7 +65,7 @@ public: FilterExpressionsChanged, PacketDissectionChanged, PreferencesChanged, - StaticRecentFilesRead, + RecentFilesRead, FieldsChanged }; @@ -118,7 +118,8 @@ signals: void recentFilesRead(); void updateRecentItemStatus(const QString &filename, qint64 size, bool accessible); void splashUpdate(register_action_e action, const char *message); - void configurationProfileChanged(const gchar *profile_name); + void profileChanging(); + void profileNameChanged(const gchar *profile_name); void columnsChanged(); // XXX This recreates the packet list. We might want to rename it accordingly. void filterExpressionsChanged(); |