[PATCH] Fix 51731 - icon spacing
    Ravikiran Rajagopal 
    ravi at ee.eng.ohio-state.edu
       
    Sun Mar  9 00:24:24 GMT 2003
    
    
  
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
  Guess QMainWindow does not send signals about position changes when we dock 
back to the same position. The patch below fixes the issue for me. Is it OK 
to commit, Waldo?
Ravi
Index: ktoolbar.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/ktoolbar.cpp,v
retrieving revision 1.328
diff -u -p -r1.328 ktoolbar.cpp
- --- ktoolbar.cpp        2 Mar 2003 21:05:44 -0000       1.328
+++ ktoolbar.cpp        9 Mar 2003 00:19:56 -0000
@@ -233,6 +233,9 @@ void KToolBar::init( bool readConfig, bo
     if ( mainWindow() )
         connect( mainWindow(), SIGNAL( toolBarPositionChanged( QToolBar * ) 
),
                  this, SLOT( toolBarPosChanged( QToolBar * ) ) );
+
+    // Hack to make sure we recalculate our size when we dock.
+    connect( this, SIGNAL(placeChanged(QDockWindow::Place)), 
SLOT(rebuildLayout()) );
 }
 int KToolBar::insertButton(const QString& icon, int id, bool enabled,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+aom4bI8Y8y0oVXcRAp3vAJ9JCxmyFnVBFBRax29mfl+m86WDkQCeI8jj
Mc5zkSINTcT77RgyH6NlRfY=
=FwbV
-----END PGP SIGNATURE-----
    
    
More information about the kde-core-devel
mailing list