diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2015-02-11 16:34:08 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-06-25 15:51:29 +0000 |
commit | 1810112f2d93d862c8b558279f5537e4db0fa4ad (patch) | |
tree | e2c8326805442c123511fb31ca1af28a1dd7f575 /ui/qt | |
parent | 7e62a038304c8aee01b732ffcf89b205ad730a3d (diff) | |
download | wireshark-1810112f2d93d862c8b558279f5537e4db0fa4ad.tar.gz |
Add minimize and maximize buttons to the TCP stream dialogs.
The first thing I generally do when I open a graph is to maximize it.
Having a maximize button makes that a lot easier. Call QDialog(NULL,
Qt::Window) similar to g80342e4.
Call QDialog(NULL) in the about box.
Change-Id: I4f229ab579d0912cb03ba8f8d0300d933d0ba914
Reviewed-on: https://code.wireshark.org/review/7072
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/about_dialog.cpp | 2 | ||||
-rw-r--r-- | ui/qt/tcp_stream_dialog.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/about_dialog.cpp b/ui/qt/about_dialog.cpp index a1acfe5d7d..8715b73b61 100644 --- a/ui/qt/about_dialog.cpp +++ b/ui/qt/about_dialog.cpp @@ -116,7 +116,7 @@ const QString AboutDialog::plugins_scan() } AboutDialog::AboutDialog(QWidget *parent) : - QDialog(parent), + QDialog(NULL), ui(new Ui::AboutDialog) { ui->setupUi(this); diff --git a/ui/qt/tcp_stream_dialog.cpp b/ui/qt/tcp_stream_dialog.cpp index 85236d8a87..40e307aefa 100644 --- a/ui/qt/tcp_stream_dialog.cpp +++ b/ui/qt/tcp_stream_dialog.cpp @@ -81,7 +81,7 @@ const QString time_s_label_ = QObject::tr("Time (s)"); const QString window_size_label_ = QObject::tr("Window Size (B)"); TCPStreamDialog::TCPStreamDialog(QWidget *parent, capture_file *cf, tcp_graph_type graph_type) : - QDialog(parent), + QDialog(NULL, Qt::Window), ui(new Ui::TCPStreamDialog), cap_file_(cf), ts_origin_conn_(true), |