summaryrefslogtreecommitdiff
path: root/ui/qt/main_status_bar.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-10-19 10:37:03 -0700
committerGerald Combs <gerald@wireshark.org>2015-10-19 17:39:28 +0000
commit6f9801a6279f01ec004f1796bc2fd9d8f1110a99 (patch)
tree32929030d0da1ee9658f425df7deff98fdc61309 /ui/qt/main_status_bar.cpp
parent3fe2c6eef4353f02363bbe547513f73384e2d598 (diff)
downloadwireshark-6f9801a6279f01ec004f1796bc2fd9d8f1110a99.tar.gz
Add a margin to the main statusbar layout.
Add a margin between the left edge of the window and the expert icon. This makes it easier to distinguish between clicking on the expert icon and resizing the window, at least on OS X. Change-Id: Ibe20f3112862dc72f3be5d31f50656d081bbc110 Reviewed-on: https://code.wireshark.org/review/11151 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_status_bar.cpp')
-rw-r--r--ui/qt/main_status_bar.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/qt/main_status_bar.cpp b/ui/qt/main_status_bar.cpp
index 47598e6615..da12e71905 100644
--- a/ui/qt/main_status_bar.cpp
+++ b/ui/qt/main_status_bar.cpp
@@ -93,6 +93,7 @@ packets_bar_update(void)
cur_main_status_bar_->updateCaptureStatistics(NULL);
}
+static const int icon_size = 14; // px
MainStatusBar::MainStatusBar(QWidget *parent) :
QStatusBar(parent),
cap_file_(NULL),
@@ -129,7 +130,7 @@ MainStatusBar::MainStatusBar(QWidget *parent) :
"}";
expert_button_ = new QToolButton(this);
- expert_button_->setIconSize(QSize(14, 14));
+ expert_button_->setIconSize(QSize(icon_size, icon_size));
expert_button_->setStyleSheet(button_ss);
expert_button_->hide();
@@ -138,7 +139,7 @@ MainStatusBar::MainStatusBar(QWidget *parent) :
StockIcon comment_icon("x-capture-comment-update");
comment_button_ = new QToolButton(this);
comment_button_->setIcon(comment_icon);
- comment_button_->setIconSize(QSize(14, 14));
+ comment_button_->setIconSize(QSize(icon_size, icon_size));
comment_button_->setStyleSheet(button_ss);
comment_button_->setToolTip(tr("Open the Capture File Properties dialog"));
@@ -146,7 +147,7 @@ MainStatusBar::MainStatusBar(QWidget *parent) :
connect(expert_button_, SIGNAL(clicked(bool)), this, SIGNAL(showExpertInfo()));
connect(comment_button_, SIGNAL(clicked(bool)), this, SIGNAL(editCaptureComment()));
- info_progress_hb->setContentsMargins(0, 0, 0, 0);
+ info_progress_hb->setContentsMargins(icon_size / 2, 0, 0, 0);
info_status_.setTemporaryContext(STATUS_CTX_TEMPORARY);
info_status_.setShrinkable(true);