Mercurial > octave-antonio
changeset 16953:eb6fb224bda5
gui: Reduce size of the dock/undock and close buttons of the octave-dock-widget
* octave-dock-widget.cc: set the size of the dock/undock and close buttons of
the octave-dock-widget to 12x12, making them smaller then their default size.
author | Catalin Codreanu <codreanu.catalin@gmail.com> |
---|---|
date | Thu, 11 Jul 2013 10:57:18 +0200 |
parents | 3c20fb2aa419 |
children | 2ee5109d5914 |
files | libgui/src/octave-dock-widget.cc |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/octave-dock-widget.cc Thu Jul 11 10:31:32 2013 -0700 +++ b/libgui/src/octave-dock-widget.cc Thu Jul 11 10:57:18 2013 +0200 @@ -55,6 +55,7 @@ QToolButton *dock_button = new QToolButton (this); dock_button->setDefaultAction (_dock_action); dock_button->setFocusPolicy(Qt::NoFocus); + dock_button->setIconSize(QSize(12,12)); QAction *close_action = new QAction (QIcon (":/actions/icons/widget-close.png"), "", this ); @@ -64,6 +65,7 @@ QToolButton *close_button = new QToolButton (this); close_button->setDefaultAction (close_action); close_button->setFocusPolicy(Qt::NoFocus); + close_button->setIconSize(QSize(12,12)); QHBoxLayout *h_layout = new QHBoxLayout (); h_layout->addStretch (100);