Browse Source

Fix build of callbacks.cpp: missed QApplication::eventLoop()->processEvents => QCoreApplication::processEvents replacement, KProgressDialog API changes.

git-svn-id: file:///var/svn/tigccpp/trunk@953 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
17a69f18ff
1 changed files with 5 additions and 5 deletions
  1. 5 5
      ktigcc/callbacks.cpp

+ 5 - 5
ktigcc/callbacks.cpp

@@ -20,7 +20,7 @@
 
 #include "callbacks.h"
 #include <cstdlib>
-#include <kprogress.h>
+#include <kprogressdialog.h>
 #include <ticalcs.h>
 #include <qapplication.h>
 #include <qeventloop.h>
@@ -51,8 +51,8 @@ static void callback_ticalcs_stop(void)
 
 static void callback_ticalcs_pbar(void)
 {
-  sendingProgress->progressBar()->setTotalSteps(ticalcsUpdate.max1);
-  sendingProgress->progressBar()->setProgress(ticalcsUpdate.cnt1);
+  sendingProgress->progressBar()->setRange(0,ticalcsUpdate.max1);
+  sendingProgress->progressBar()->setValue(ticalcsUpdate.cnt1);
   callback_ticalcs_refresh();
 }
 
@@ -79,7 +79,7 @@ CalcUpdate ticalcsUpdate=CalcUpdateInitialized();
 
 void callbacksInit(QWidget *parent)
 {
-  sendingProgress=new KProgressDialog(parent,0,"Sending Variable",
+  sendingProgress=new KProgressDialog(parent,"Sending Variable",
                                       QString::null,TRUE);
   sendingProgress->show();
   callback_ticalcs_refresh();
@@ -92,5 +92,5 @@ void callbacksCleanup(void)
     delete sendingProgress;
     sendingProgress=static_cast<KProgressDialog *>(NULL);
   }
-  QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput,100);
+  QCoreApplication::processEvents(QEventLoop::ExcludeUserInput,100);
 }