[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    [PATCH] Fix sidebar layout in kivio
From:       Peter Simonsson <psn () linux ! se>
Date:       2003-10-03 10:12:47
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!
This fixes the layout of the stencilbar in kivio when loading stencils on 
start up. I'll commit tomorrow if none objects (or earlier if I get some 
agreement :))
- -- 
LLaP
Peter Simonsson

Kivio (KOffice Flowcharting Application) - http://www.koffice.org/kivio/
Kexi - http://www.koffice.org/kexi/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/fUujjR6JKcrOq3sRAkmeAJ0Twnz2091si3iifhtZ4mpuWaTM2ACg0wTG
5BNEjQ2sxvWIU5U97awB1Iw=
=77UW
-----END PGP SIGNATURE-----

["kivio.diff" (text/x-diff)]

? filedump.xml
Index: kiviopart/kivio_view.cpp
===================================================================
RCS file: /home/kde/koffice/kivio/kiviopart/kivio_view.cpp,v
retrieving revision 1.111
diff -u -p -r1.111 kivio_view.cpp
--- kiviopart/kivio_view.cpp	14 Sep 2003 07:44:16 -0000	1.111
+++ kiviopart/kivio_view.cpp	3 Oct 2003 10:03:19 -0000
@@ -154,17 +154,6 @@ KivioView::KivioView( QWidget *_parent, 
   QGridLayout *viewGrid = new QGridLayout(this);
   viewGrid->addWidget(m_pDockManager, 0, 0);
 
-  // Load any already-loaded stencils into the stencil dock
-  if( m_pDoc->isReadWrite() ) // only if not embedded in Konqueror
-  {
-    KivioStencilSpawnerSet *pSet;
-    pSet = m_pDoc->spawnerSets()->first();
-    while( pSet )
-    {
-      addSpawnerToStackBar( pSet );
-      pSet = m_pDoc->spawnerSets()->next();
-    }
-  }
   // A widget to hold the entire right side (old view)
   QWidget *pRightSide = new QWidget(m_pDockManager);
   m_pDockManager->setView(pRightSide);
@@ -290,6 +279,18 @@ KivioView::KivioView( QWidget *_parent, 
   connect( m_pDoc, SIGNAL( sig_updateGrid()),SLOT(slotUpdateGrid()));
 
   initActions();
+
+  // Load any already-loaded stencils into the stencil dock
+  if( m_pDoc->isReadWrite() ) // only if not embedded in Konqueror
+  {
+    KivioStencilSpawnerSet *pSet;
+    pSet = m_pDoc->spawnerSets()->first();
+    while( pSet )
+    {
+      addSpawnerToStackBar( pSet );
+      pSet = m_pDoc->spawnerSets()->next();
+    }
+  }
 
   m_pDoc->setModified(isModified);
 }


_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic