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.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index 06828e0..4865c39 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -54,26 +54,24 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) :
if (section->text(i)=="opie")
section->setCurrentItem(i);
sectionChanged();
connect( section, SIGNAL(activated(int)), SLOT(sectionChanged()) );
connect( subsection, SIGNAL(activated(int)), SLOT(subSectionChanged()) );
connect( settings->removeLinksButton, SIGNAL( clicked()),
SLOT(removeLinks()) );
connect( settings->createLinksButton, SIGNAL( clicked()),
SLOT(createLinks()) );
-// rootLocal = new QCheckListItem(listViewPackages,tr("local"));
-// rootSearch = new QCheckListItem(listViewPackages,tr("ipkgfind"));
displayList();
}
void MainWindow::makeMenu()
{
QPEToolBar *toolBar = new QPEToolBar( this );
QPEMenuBar *menuBar = new QPEMenuBar( toolBar );
QPopupMenu *srvMenu = new QPopupMenu( menuBar );
QPopupMenu *viewMenu = new QPopupMenu( menuBar );
QPopupMenu *cfgMenu = new QPopupMenu( menuBar );
// QPopupMenu *sectMenu = new QPopupMenu( menuBar );
@@ -277,26 +275,29 @@ void MainWindow::filterList()
packageList.filterPackages( f );
// wait->hide();
}
void MainWindow::displayList()
{
// wait->hide();
filterList();
listViewPackages->clear();
Package *pack = packageList.first();
PackageListItem *item;
+// if (!rootLocal)
+// {
QCheckListItem *rootLocal = new QCheckListItem(listViewPackages,tr("local"));
QCheckListItem *rootSearch = new QCheckListItem(listViewPackages,tr("ipkgfind"));
+// }
while( pack )
{
item = new PackageListItem( rootLocal, pack, settings );
pack = packageList.next();
}
pack = packageListSearch.first();
while( pack )
{
item = new PackageListItem( rootSearch, pack, settings );
pack = packageListSearch.next();
}
}