Permalink
Browse files

Fix desktopswitch shrinking on panel resize

  • Loading branch information...
1 parent cf540d7 commit db2a9820710529f023d1ead63474f89b7d63e788 @amoskvin amoskvin committed Jan 31, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 razorqt-panel/plugin-desktopswitch/desktopswitch.cpp
@@ -150,11 +150,10 @@ void DesktopSwitch::realign()
bool isHorizontal = panel()->isHorizontal();
foreach (QAbstractButton *btn, m_buttons->buttons())
{
- btn->adjustSize();
if (isHorizontal)
- max = qMax(max, btn->width());
+ max = qMax(max, btn->sizeHint().width());
else
- max = qMax(max, btn->height());
+ max = qMax(max, btn->sizeHint().height());
}
foreach (QAbstractButton *btn, m_buttons->buttons())

0 comments on commit db2a982

Please sign in to comment.