From f59be5cd53017317967658b5d7cdce847b50970b Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Tue, 10 Apr 2018 16:54:23 +0800 Subject: 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 Reviewed-by: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Martin Kaiser --- ui/qt/capture_file_properties_dialog.cpp | 4 ++ ui/qt/capture_file_properties_dialog.ui | 74 +++++++++++++++++++++----------- 2 files changed, 52 insertions(+), 26 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")); diff --git a/ui/qt/capture_file_properties_dialog.ui b/ui/qt/capture_file_properties_dialog.ui index 72b875bf9a..bf5cd634b3 100644 --- a/ui/qt/capture_file_properties_dialog.ui +++ b/ui/qt/capture_file_properties_dialog.ui @@ -19,36 +19,57 @@ - + - - - Details + + + Qt::Vertical - - - - - - true - - - - - - - Capture file comments + + false - - - - - - - 0 - 10 - + + false + + + + + + Details + + + + + + + true + + + + + + + + + + + Capture file comments + + + + + + + + 0 + 10 + + + + + + @@ -60,5 +81,6 @@ + -- cgit v1.2.3