summaryrefslogtreecommitdiff
path: root/ui/qt/main_window.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-01-11 10:46:02 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2016-01-12 14:20:25 +0000
commitda798683de1743589bd94dfaab9beed23feb0720 (patch)
treeee5b9072922f80de3f43356372bfe4db77f09c07 /ui/qt/main_window.h
parentd6ca6cbe7421a3eb75494c3aa955ff5d7c07a52a (diff)
downloadwireshark-da798683de1743589bd94dfaab9beed23feb0720.tar.gz
Qt: Refactor testCaptureFileClose
Cleanup arguments and simplify code for button texts. Change-Id: Ie505650889212082e088a525f4b82e62b9177b0d Reviewed-on: https://code.wireshark.org/review/13180 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/main_window.h')
-rw-r--r--ui/qt/main_window.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h
index 3291ee33d7..6d0a610aea 100644
--- a/ui/qt/main_window.h
+++ b/ui/qt/main_window.h
@@ -120,6 +120,12 @@ private:
CopySelectedValue
};
+ enum FileCloseButtons {
+ DefaultButtons,
+ QuitButtons,
+ RestartButtons
+ };
+
Ui::MainWindow *main_ui_;
QMenu *open_recent_menu_;
QSplitter master_split_;
@@ -179,7 +185,7 @@ private:
void exportDissections(export_type_e export_type);
void fileAddExtension(QString &file_name, int file_type, bool compressed);
- bool testCaptureFileClose(bool from_quit = false, QString before_what = QString(), bool restart = false);
+ bool testCaptureFileClose(QString before_what = QString(), FileCloseButtons buttons = DefaultButtons);
void captureStop();
void initMainToolbarIcons();