diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-11-17 11:47:56 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-11-17 21:59:57 +0000 |
commit | ec68330053267c6c368013f761d0cf7efe5a0cf3 (patch) | |
tree | a6b5991bcad71c8a89bc96acbdcc054ba1196052 | |
parent | 8383cb923b63535b46d52f00f430f784cbbb9014 (diff) |
Qt: Fixup the I/O Graph color menu width on Windows.
Change-Id: I2032709fe62810a292121e8624a4b51f40070c36
Reviewed-on: https://code.wireshark.org/review/11921
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r-- | ui/qt/io_graph_dialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/io_graph_dialog.cpp b/ui/qt/io_graph_dialog.cpp index 6b870c9ec9..e4264b774a 100644 --- a/ui/qt/io_graph_dialog.cpp +++ b/ui/qt/io_graph_dialog.cpp @@ -1223,6 +1223,13 @@ void IOGraphDialog::on_graphTreeWidget_itemActivated(QTreeWidgetItem *item, int item->setIcon(color_col_, QIcon()); color_combo_box_->setFocusPolicy(Qt::StrongFocus); +#ifdef Q_OS_WIN + // QTBUG-3097 + color_combo_box_->view()->setMinimumWidth( + style()->pixelMetric(QStyle::PM_ListViewIconSize) + // Not entirely correct but close enough. + style()->pixelMetric(QStyle::PM_ScrollBarExtent)); +#endif + style_combo_box_ = new QComboBox(); cur_idx = item->data(style_col_, Qt::UserRole).toInt(); for (int i = 0; i < plot_style_to_name_.size(); i++) { |