Qt: Add a splitter to the I/O Graphs dialog.
Add a vertical splitter, with the graph and hint label in the top part and the graph list in the bottom. Change-Id: Ib297b5c9c7da121b86bf3c5c4299985882ca5b8d Reviewed-on: https://code.wireshark.org/review/35765 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
3579779dd6
commit
e7a8c94aa7
|
@ -295,14 +295,14 @@ static void io_graph_free_cb(void* p) {
|
||||||
IOGraphDialog::IOGraphDialog(QWidget &parent, CaptureFile &cf, QString displayFilter) :
|
IOGraphDialog::IOGraphDialog(QWidget &parent, CaptureFile &cf, QString displayFilter) :
|
||||||
WiresharkDialog(parent, cf),
|
WiresharkDialog(parent, cf),
|
||||||
ui(new Ui::IOGraphDialog),
|
ui(new Ui::IOGraphDialog),
|
||||||
uat_model_(NULL),
|
uat_model_(nullptr),
|
||||||
uat_delegate_(NULL),
|
uat_delegate_(nullptr),
|
||||||
base_graph_(NULL),
|
base_graph_(nullptr),
|
||||||
tracer_(NULL),
|
tracer_(nullptr),
|
||||||
start_time_(0.0),
|
start_time_(0.0),
|
||||||
mouse_drags_(true),
|
mouse_drags_(true),
|
||||||
rubber_band_(NULL),
|
rubber_band_(nullptr),
|
||||||
stat_timer_(NULL),
|
stat_timer_(nullptr),
|
||||||
need_replot_(false),
|
need_replot_(false),
|
||||||
need_retap_(false),
|
need_retap_(false),
|
||||||
auto_axes_(true),
|
auto_axes_(true),
|
||||||
|
@ -424,6 +424,9 @@ IOGraphDialog::IOGraphDialog(QWidget &parent, CaptureFile &cf, QString displayFi
|
||||||
|
|
||||||
ui->clearToolButton->setEnabled(uat_model_->rowCount() != 0);
|
ui->clearToolButton->setEnabled(uat_model_->rowCount() != 0);
|
||||||
|
|
||||||
|
ui->splitter->setStretchFactor(0, 95);
|
||||||
|
ui->splitter->setStretchFactor(1, 5);
|
||||||
|
|
||||||
//XXX - resize columns?
|
//XXX - resize columns?
|
||||||
|
|
||||||
ProgressFrame::addToButtonBox(ui->buttonBox, &parent);
|
ProgressFrame::addToButtonBox(ui->buttonBox, &parent);
|
||||||
|
|
|
@ -13,21 +13,28 @@
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Dialog</string>
|
<string>Dialog</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCustomPlot" name="ioPlot" native="true">
|
<widget class="QSplitter" name="splitter">
|
||||||
<property name="sizePolicy">
|
<property name="orientation">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
<enum>Qt::Vertical</enum>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>4</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<widget class="QWidget" name="">
|
||||||
</item>
|
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0">
|
||||||
<item>
|
<item>
|
||||||
<widget class="ElidedLabel" name="hintLabel">
|
<widget class="QCustomPlot" name="ioPlot" native="true">
|
||||||
<property name="toolTip">
|
<property name="sizePolicy">
|
||||||
<string><html><head/><body>
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>90</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="ElidedLabel" name="hintLabel">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body>
|
||||||
|
|
||||||
<h3>Valuable and amazing time-saving keyboard shortcuts</h3>
|
<h3>Valuable and amazing time-saving keyboard shortcuts</h3>
|
||||||
<table><tbody>
|
<table><tbody>
|
||||||
|
@ -57,20 +64,22 @@
|
||||||
|
|
||||||
</tbody></table>
|
</tbody></table>
|
||||||
</body></html></string>
|
</body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
</layout>
|
||||||
<widget class="TabnavTreeView" name="graphUat">
|
</widget>
|
||||||
<property name="sizePolicy">
|
<widget class="TabnavTreeView" name="graphUat">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<property name="sizePolicy">
|
||||||
<horstretch>0</horstretch>
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
<verstretch>1</verstretch>
|
<horstretch>0</horstretch>
|
||||||
</sizepolicy>
|
<verstretch>0</verstretch>
|
||||||
</property>
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|
Loading…
Reference in New Issue