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

List:       kde-commits
Subject:    KDE/kdevelop/plugins/xtest/qtest
From:       Manuel Breugelmans <mbr.nxi () gmail ! com>
Date:       2008-08-31 21:46:54
Message-ID: 1220219214.390720.32138.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 855483 by mbreugel:

Woops, this wont build with unpatched istatus.

 M  +14 -14    kdevregister.cpp  


--- trunk/KDE/kdevelop/plugins/xtest/qtest/kdevregister.cpp #855482:855483
@@ -253,20 +253,20 @@
     // TODO get rid of this joke. Factually istatus should not be
     // limitted to plugins + backgroundparser, but exposed for all
 
-//     QWidget* mw = QApplication::activeWindow();
-//     if (!mw) { kDebug() << "No mw"; return; }
-//     QList<QStatusBar*> sbs = mw->findChildren<QStatusBar*>();
-//     if (sbs.isEmpty()) { kDebug() << "No statusbar"; return; }
-//     QStatusBar* sb = sbs[0];
-//     if (!sb) { kDebug() << "sb zero"; return; }
-//     connect(this, SIGNAL(showProgress(int,int,int)),
-//             sb, SLOT(showProgress(int,int,int)));
-//     connect(this, SIGNAL(hideProgress()),
-//             sb, SLOT(hideProgress()));
-//     connect(this, SIGNAL(showErrorMessage(QString,int)),
-//             sb, SLOT(showErrorMessage(QString,int)));
-    IUiController* uic = ICore::self()->uiController();
-    uic->registerStatus(this);
+    QWidget* mw = QApplication::activeWindow();
+    if (!mw) { kDebug() << "No mw"; return; }
+    QList<QStatusBar*> sbs = mw->findChildren<QStatusBar*>();
+    if (sbs.isEmpty()) { kDebug() << "No statusbar"; return; }
+    QStatusBar* sb = sbs[0];
+    if (!sb) { kDebug() << "sb zero"; return; }
+    connect(this, SIGNAL(showProgress(int,int,int)),
+            sb, SLOT(showProgress(int,int,int)));
+    connect(this, SIGNAL(hideProgress()),
+            sb, SLOT(hideProgress()));
+    connect(this, SIGNAL(showErrorMessage(QString,int)),
+            sb, SLOT(showErrorMessage(QString,int)));
+//     IUiController* uic = ICore::self()->uiController();
+//     uic->registerStatus(this);
 }
 
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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