author | tille <tille> | 2002-04-23 22:41:02 (UTC) |
---|---|---|
committer | tille <tille> | 2002-04-23 22:41:02 (UTC) |
commit | f90935204b16126b40d4c562b26e37148ca03536 (patch) (side-by-side diff) | |
tree | 40a3e25d9e5078a3871ae7ba5b1fb86245ead187 /noncore/unsupported/oipkg/mainwindow.cpp | |
parent | ab7037fb8c10cc2ee37a3728caab7d4da4cdc1b3 (diff) | |
download | opie-f90935204b16126b40d4c562b26e37148ca03536.zip opie-f90935204b16126b40d4c562b26e37148ca03536.tar.gz opie-f90935204b16126b40d4c562b26e37148ca03536.tar.bz2 |
fixes: update and link creation
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(); } |