diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2018-04-10 16:54:23 +0800 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2018-04-11 02:16:34 +0000 |
commit | f59be5cd53017317967658b5d7cdce847b50970b (patch) | |
tree | 9c6d667ba20917d971705a7e5ae83651b8217650 /ui/qt/capture_file_properties_dialog.cpp | |
parent | caea93df95ec507d09371ab232e61c0122cb044c (diff) |
qt: capture file properties: add a splitter
Add a splitter to the capture file properties dialog. This allows for
modifying the relative sizes of the details vs comment boxes. People who
paste lots of text into the capture file comment may want a lager box
for it.
Change-Id: Id79d9f5fd7e589a2ba88aa5f16b52bb37d7c47ae
Reviewed-on: https://code.wireshark.org/review/26845
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Reviewed-by: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'ui/qt/capture_file_properties_dialog.cpp')
-rw-r--r-- | ui/qt/capture_file_properties_dialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/capture_file_properties_dialog.cpp b/ui/qt/capture_file_properties_dialog.cpp index 0c4a72e1ad..2876f0fd64 100644 --- a/ui/qt/capture_file_properties_dialog.cpp +++ b/ui/qt/capture_file_properties_dialog.cpp @@ -37,6 +37,10 @@ CaptureFilePropertiesDialog::CaptureFilePropertiesDialog(QWidget &parent, Captur ui->detailsTextEdit->setAcceptRichText(true); + // make the details box larger than the comments + ui->splitter->setStretchFactor(0, 6); + ui->splitter->setStretchFactor(1, 1); + QPushButton *button = ui->buttonBox->button(QDialogButtonBox::Reset); if (button) { button->setText(tr("Refresh")); |