Revision: 6576
Author: nogu.dev
Date: Fri Jul 23 22:31:35 2010
Log: * qt4/toolbar/standalone-qt4.cpp
  - (UimStandaloneToolbar::slotToolbarDoubleClicked):
    Fix bug in toolbar size.
http://code.google.com/p/uim/source/detail?r=6576

Modified:
 /trunk/qt4/toolbar/standalone-qt4.cpp

=======================================
--- /trunk/qt4/toolbar/standalone-qt4.cpp       Fri Jul 23 18:58:16 2010
+++ /trunk/qt4/toolbar/standalone-qt4.cpp       Fri Jul 23 22:31:35 2010
@@ -111,11 +111,12 @@
 {
     if (toolbar->isVisible()) {
         toolbar->hide();
+        // shrink this toolbar
+        int width = maximumWidth();
         setFixedWidth(handler->width());
+        setMaximumWidth(width);
     } else {
-        toolbar->show();
-        toolbar->adjustSize();
-        setFixedWidth(handler->width() + toolbar->width());
+        slotToolbarResized();
     }
 }

Reply via email to