Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/mainwindow.cpp | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp index b485a03..cb2b4cd 100644 --- a/noncore/unsupported/oipkg/mainwindow.cpp +++ b/noncore/unsupported/oipkg/mainwindow.cpp @@ -53,3 +53,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) : packageList.setSettings( settings ); - newList(); + getList(); setSections(); @@ -68,2 +68,9 @@ void MainWindow::makeMenu() +//#define TOOLBAR +#ifdef TOOLBAR + QPEToolBar *secBar = new QPEToolBar( this ); + QComboBox *sections = new QComboBox( false, this ); + secBar->addTo( sections ); +#endif + contextMenu = new QPopupMenu( this ); @@ -136,4 +143,3 @@ void MainWindow::runIpkg() ipkg->commit( packageList ); - ipkg->runIpkg("update"); - packageList.update(); + updateList(); } @@ -142,9 +148,11 @@ void MainWindow::updateList() { - ipkg->runIpkg("update"); - packageList.update(); + // todo: packageList.clear(); + ipkg->update(); + getList(); } -void MainWindow::newList() +void MainWindow::getList() { packageList.update(); + displayList(); } @@ -219,3 +227,3 @@ void MainWindow::showSettings() if ( settings->showDialog( 0 ) ) - newList(); + getList(); } @@ -224,3 +232,3 @@ void MainWindow::showSettingsSrv() if ( settings->showDialog( 1 ) ) - newList(); + getList(); } @@ -229,3 +237,3 @@ void MainWindow::showSettingsDst() if ( settings->showDialog( 2 ) ) - newList(); + getList(); } |