author | tille <tille> | 2002-05-01 15:49:08 (UTC) |
---|---|---|
committer | tille <tille> | 2002-05-01 15:49:08 (UTC) |
commit | da94bce203afca412336a7793ff8e58e18d59108 (patch) (unidiff) | |
tree | 0bc25fd1145459656d8cc7a4897bad51f123daf9 /noncore/unsupported/oipkg/mainwindow.cpp | |
parent | fcc0cee7ae337e8179b8ba4d4b6c46b519129daa (diff) | |
download | opie-da94bce203afca412336a7793ff8e58e18d59108.zip opie-da94bce203afca412336a7793ff8e58e18d59108.tar.gz opie-da94bce203afca412336a7793ff8e58e18d59108.tar.bz2 |
handles different versions of the same package
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/mainwindow.cpp | 5 |
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 ) : | |||
54 | if (section->text(i)=="opie") | 54 | if (section->text(i)=="opie") |
55 | section->setCurrentItem(i); | 55 | section->setCurrentItem(i); |
56 | sectionChanged(); | 56 | sectionChanged(); |
57 | 57 | ||
58 | connect( section, SIGNAL(activated(int)), SLOT(sectionChanged()) ); | 58 | connect( section, SIGNAL(activated(int)), SLOT(sectionChanged()) ); |
59 | connect( subsection, SIGNAL(activated(int)), SLOT(subSectionChanged()) ); | 59 | connect( subsection, SIGNAL(activated(int)), SLOT(subSectionChanged()) ); |
60 | 60 | ||
61 | connect( settings->removeLinksButton, SIGNAL( clicked()), | 61 | connect( settings->removeLinksButton, SIGNAL( clicked()), |
62 | SLOT(removeLinks()) ); | 62 | SLOT(removeLinks()) ); |
63 | connect( settings->createLinksButton, SIGNAL( clicked()), | 63 | connect( settings->createLinksButton, SIGNAL( clicked()), |
64 | SLOT(createLinks()) ); | 64 | SLOT(createLinks()) ); |
65 | 65 | ||
66 | //rootLocal = new QCheckListItem(listViewPackages,tr("local")); | ||
67 | //rootSearch = new QCheckListItem(listViewPackages,tr("ipkgfind")); | ||
68 | displayList(); | 66 | displayList(); |
69 | } | 67 | } |
70 | 68 | ||
71 | void MainWindow::makeMenu() | 69 | void MainWindow::makeMenu() |
72 | { | 70 | { |
73 | 71 | ||
74 | QPEToolBar *toolBar = new QPEToolBar( this ); | 72 | QPEToolBar *toolBar = new QPEToolBar( this ); |
75 | QPEMenuBar *menuBar = new QPEMenuBar( toolBar ); | 73 | QPEMenuBar *menuBar = new QPEMenuBar( toolBar ); |
76 | QPopupMenu *srvMenu = new QPopupMenu( menuBar ); | 74 | QPopupMenu *srvMenu = new QPopupMenu( menuBar ); |
77 | QPopupMenu *viewMenu = new QPopupMenu( menuBar ); | 75 | QPopupMenu *viewMenu = new QPopupMenu( menuBar ); |
78 | QPopupMenu *cfgMenu = new QPopupMenu( menuBar ); | 76 | QPopupMenu *cfgMenu = new QPopupMenu( menuBar ); |
79 | // QPopupMenu *sectMenu = new QPopupMenu( menuBar ); | 77 | // QPopupMenu *sectMenu = new QPopupMenu( menuBar ); |
@@ -277,26 +275,29 @@ void MainWindow::filterList() | |||
277 | packageList.filterPackages( f ); | 275 | packageList.filterPackages( f ); |
278 | //wait->hide(); | 276 | //wait->hide(); |
279 | } | 277 | } |
280 | 278 | ||
281 | void MainWindow::displayList() | 279 | void MainWindow::displayList() |
282 | { | 280 | { |
283 | //wait->hide(); | 281 | //wait->hide(); |
284 | filterList(); | 282 | filterList(); |
285 | listViewPackages->clear(); | 283 | listViewPackages->clear(); |
286 | Package *pack = packageList.first(); | 284 | Package *pack = packageList.first(); |
287 | PackageListItem *item; | 285 | PackageListItem *item; |
288 | 286 | ||
287 | // if (!rootLocal) | ||
288 | // { | ||
289 | QCheckListItem *rootLocal = new QCheckListItem(listViewPackages,tr("local")); | 289 | QCheckListItem *rootLocal = new QCheckListItem(listViewPackages,tr("local")); |
290 | QCheckListItem *rootSearch = new QCheckListItem(listViewPackages,tr("ipkgfind")); | 290 | QCheckListItem *rootSearch = new QCheckListItem(listViewPackages,tr("ipkgfind")); |
291 | // } | ||
291 | while( pack ) | 292 | while( pack ) |
292 | { | 293 | { |
293 | item = new PackageListItem( rootLocal, pack, settings ); | 294 | item = new PackageListItem( rootLocal, pack, settings ); |
294 | pack = packageList.next(); | 295 | pack = packageList.next(); |
295 | } | 296 | } |
296 | pack = packageListSearch.first(); | 297 | pack = packageListSearch.first(); |
297 | while( pack ) | 298 | while( pack ) |
298 | { | 299 | { |
299 | item = new PackageListItem( rootSearch, pack, settings ); | 300 | item = new PackageListItem( rootSearch, pack, settings ); |
300 | pack = packageListSearch.next(); | 301 | pack = packageListSearch.next(); |
301 | } | 302 | } |
302 | } | 303 | } |