aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-07-14 23:35:39 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2017-07-16 19:39:56 +0000
commit7f23b51868ce26e2b127ce6d329d9cd4157511e3 (patch)
treeabbc55a6db7e45bad82e83df811861255fd3b2d1 /ui/qt
parentd5c8145f54e8ec966f1ea1eab48e37fe248bf285 (diff)
Qt: Expand IO Graph text edit fields to column width
When editing a IO Graph the text edit field should fill the column. Change-Id: Idb5c9a7004d9be1b82e645ae2c1a3430c9c9e5f7 Reviewed-on: https://code.wireshark.org/review/22626 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')
-rw-r--r--ui/qt/io_graph_dialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/io_graph_dialog.cpp b/ui/qt/io_graph_dialog.cpp
index 2024d76684..f652d564d8 100644
--- a/ui/qt/io_graph_dialog.cpp
+++ b/ui/qt/io_graph_dialog.cpp
@@ -1274,15 +1274,18 @@ void IOGraphDialog::on_graphTreeWidget_itemActivated(QTreeWidgetItem *item, int
{
if (!item || name_line_edit_) return;
+ QTreeWidget *gtw = ui->graphTreeWidget;
QWidget *editor = NULL;
int cur_idx;
name_line_edit_ = new QLineEdit();
+ name_line_edit_->setFixedWidth(gtw->columnWidth(name_col_));
name_line_edit_->setText(item->text(name_col_));
dfilter_line_edit_ = new DisplayFilterEdit();
connect(dfilter_line_edit_, SIGNAL(textChanged(QString)),
dfilter_line_edit_, SLOT(checkDisplayFilter(QString)));
+ dfilter_line_edit_->setFixedWidth(gtw->columnWidth(dfilter_col_));
dfilter_line_edit_->setText(item->text(dfilter_col_));
color_combo_box_ = new QComboBox();
@@ -1329,6 +1332,7 @@ void IOGraphDialog::on_graphTreeWidget_itemActivated(QTreeWidgetItem *item, int
yfield_line_edit_ = new FieldFilterEdit();
connect(yfield_line_edit_, SIGNAL(textChanged(QString)),
yfield_line_edit_, SLOT(checkFieldName(QString)));
+ yfield_line_edit_->setFixedWidth(gtw->columnWidth(yfield_col_));
yfield_line_edit_->setText(item->text(yfield_col_));
sma_combo_box_ = new QComboBox();