projects
/
situare
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7b17a4
)
Changed the way how ZoomButtonPanel determines its size
author
Pekka Nissinen
<pekka.nissinen@ixonos.com>
Thu, 13 May 2010 20:46:05 +0000
(23:46 +0300)
committer
Pekka Nissinen
<pekka.nissinen@ixonos.com>
Thu, 13 May 2010 20:46:05 +0000
(23:46 +0300)
src/ui/zoombuttonpanel.cpp
patch
|
blob
|
history
diff --git
a/src/ui/zoombuttonpanel.cpp
b/src/ui/zoombuttonpanel.cpp
index
9eb7992
..
fa6ad64
100644
(file)
--- a/
src/ui/zoombuttonpanel.cpp
+++ b/
src/ui/zoombuttonpanel.cpp
@@
-38,12
+38,11
@@
ZoomButtonPanel::ZoomButtonPanel(QWidget *parent, int x, int y)
m_panelLayout.setMargin(0);
m_panelLayout.setSpacing(0);
m_panelLayout.setVerticalSpacing(ZOOM_BUTTON_PANEL_BUTTON_SPACING);
+ m_panelLayout.setSizeConstraint(QLayout::SetFixedSize);
m_panelLayout.addWidget(m_zoomInBtn, 0, 0);
m_panelLayout.addWidget(m_zoomOutBtn, 1, 0);
- setFixedSize(m_zoomInBtn->size().width(), m_zoomInBtn->height()
- + ZOOM_BUTTON_PANEL_BUTTON_SPACING + m_zoomInBtn->height());
move(m_x, m_y);
}