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

List:       kde-commits
Subject:    kdevelop/vcs/cvsservice
From:       Alexander Dymo <cloudtemple () mksat ! net>
Date:       2004-08-29 23:35:28
Message-ID: 20040829233528.7D536E60 () office ! kde ! org
[Download RAW message or body]

CVS commit by dymo: 

reduce startup time


  M +6 -5      cvspart.cpp   1.47
  M +3 -1      cvspart.h   1.15


--- kdevelop/vcs/cvsservice/cvspart.cpp  #1.46:1.47
@@ -15,4 +15,5 @@
 #include <qpopupmenu.h>
 #include <qwhatsthis.h>
+#include <qtimer.h>
 
 #include <kpopupmenu.h>
@@ -92,9 +93,5 @@ CvsServicePart::CvsServicePart( QObject 
     setInstance( CvsFactory::instance() );
 
-    init();
-
-    /// \FIXME (at all costs!), Ok, this is a crime but for now CvsServicePart is \
                the only implementation
-    /// of KDevVersionControl
-    setVersionControl( this );
+    QTimer::singleShot(0, this, SLOT(init()));
 }
 
@@ -133,4 +130,8 @@ void CvsServicePart::init()
     m_impl->processWidget()->setCaption(i18n("CvsService Output"));
     mainWindow()->embedOutputView( m_impl->processWidget(), i18n("CvsService"), \
i18n("cvs output") ); +    
+    /// \FIXME (at all costs!), Ok, this is a crime but for now CvsServicePart is \
the only implementation +    /// of KDevVersionControl
+    setVersionControl( this );
 }
 

--- kdevelop/vcs/cvsservice/cvspart.h  #1.14:1.15
@@ -124,6 +124,8 @@ private slots:
     void slotStopButtonClicked( KDevPlugin* );
 
-private:
+private slots:
     void init();
+
+private:
     void setupActions();
     //! Returns the KURL for the currently focused document, if there is any


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

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