summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp16
1 files changed, 15 insertions, 1 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
@@ -21,4 +21,5 @@
#include <qtabwidget.h>
#include <qcombobox.h>
+#include <qmessagebox.h>
#include <qlayout.h>
@@ -26,4 +27,5 @@
#include "packagelistitem.h"
+
MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) :
QMainWindow( parent, name, f )
@@ -36,4 +38,8 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) :
setCaption( tr("Package Manager") );
+// 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 );
connect( channel, SIGNAL(received(const QCString&, const QByteArray&)),
@@ -195,4 +201,5 @@ void MainWindow::runIpkg()
void MainWindow::updateList()
{
+ wait->show();
QTimer *t = new QTimer( this );
connect( t, SIGNAL(timeout()), SLOT( rotateUpdateIcon() ) );
@@ -201,22 +208,29 @@ void MainWindow::updateList()
ipkg->update();
getList();
- t->stop();
+ t->stop();
+ wait->hide();
+
}
void MainWindow::getList()
{
+ wait->show();
packageList.update();
displayList();
+ wait->hide();
}
void MainWindow::filterList()
{
+ wait->show();
QString f = "";
if ( findAction->isOn() ) f = findEdit->text();
packageList.filterPackages( f );
+ wait->hide();
}
void MainWindow::displayList()
{
+ wait->hide();
filterList();
listViewPackages->clear();