From f90935204b16126b40d4c562b26e37148ca03536 Mon Sep 17 00:00:00 2001 From: tille Date: Tue, 23 Apr 2002 22:41:02 +0000 Subject: fixes: update and link creation --- (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') 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 @@ -51,7 +51,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) : ipkg = new PmIpkg( settings, this ); packageList.setSettings( settings ); - newList(); + getList(); setSections(); setSubSections(); displayList(); @@ -66,6 +66,13 @@ void MainWindow::makeMenu() QPopupMenu *cfgMenu = new QPopupMenu( menuBar ); // QPopupMenu *sectMenu = new QPopupMenu( menuBar ); +//#define TOOLBAR +#ifdef TOOLBAR + QPEToolBar *secBar = new QPEToolBar( this ); + QComboBox *sections = new QComboBox( false, this ); + secBar->addTo( sections ); +#endif + contextMenu = new QPopupMenu( this ); setToolBarsMovable( false ); @@ -134,19 +141,20 @@ MainWindow::~MainWindow() void MainWindow::runIpkg() { ipkg->commit( packageList ); - ipkg->runIpkg("update"); - packageList.update(); + updateList(); } void MainWindow::updateList() { - ipkg->runIpkg("update"); - packageList.update(); + // todo: packageList.clear(); + ipkg->update(); + getList(); } -void MainWindow::newList() +void MainWindow::getList() { packageList.update(); + displayList(); } void MainWindow::filterList() @@ -217,17 +225,17 @@ void MainWindow::setSubSections() void MainWindow::showSettings() { if ( settings->showDialog( 0 ) ) - newList(); + getList(); } void MainWindow::showSettingsSrv() { if ( settings->showDialog( 1 ) ) - newList(); + getList(); } void MainWindow::showSettingsDst() { if ( settings->showDialog( 2 ) ) - newList(); + getList(); } -- cgit v0.9.0.2