Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/mainwindow.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp index 6bf9a7a..c95f482 100644 --- a/noncore/unsupported/oipkg/mainwindow.cpp +++ b/noncore/unsupported/oipkg/mainwindow.cpp @@ -22,2 +22,3 @@ #include <qcombobox.h> +#include <qmessagebox.h> #include <qlayout.h> @@ -27,2 +28,3 @@ + MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) : @@ -37,2 +39,6 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) : +// wait = new QMessageBox(tr("oipkg"),tr("Please wait")//,QMessageBox::Information,QMessageBox::NoButton,QMessageBox::NoButton,QMessageBox::NoButton); + wait = new QMessageBox(this); + wait->setText(tr("Please wait")); + channel = new QCopChannel( "QPE/Application/oipkg", this ); @@ -196,2 +202,3 @@ void MainWindow::updateList() { + wait->show(); QTimer *t = new QTimer( this ); @@ -203,2 +210,4 @@ void MainWindow::updateList() t->stop(); + wait->hide(); + } @@ -207,4 +216,6 @@ void MainWindow::getList() { + wait->show(); packageList.update(); displayList(); + wait->hide(); } @@ -213,2 +224,3 @@ void MainWindow::filterList() { + wait->show(); QString f = ""; @@ -216,2 +228,3 @@ void MainWindow::filterList() packageList.filterPackages( f ); + wait->hide(); } @@ -220,2 +233,3 @@ void MainWindow::displayList() { + wait->hide(); filterList(); |