Diffstat (limited to 'noncore/unsupported/oipkg/packagelistview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelistview.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/packagelistview.cpp b/noncore/unsupported/oipkg/packagelistview.cpp index 610a0e1..36d081b 100644 --- a/noncore/unsupported/oipkg/packagelistview.cpp +++ b/noncore/unsupported/oipkg/packagelistview.cpp | |||
@@ -43,48 +43,47 @@ void PackageListView::setCurrent( QListViewItem* p ) | |||
43 | void PackageListView::showPopup() | 43 | void PackageListView::showPopup() |
44 | { | 44 | { |
45 | popupMenu->clear(); | 45 | popupMenu->clear(); |
46 | destsMenu->clear(); | 46 | destsMenu->clear(); |
47 | 47 | ||
48 | QAction *popupAction; | 48 | QAction *popupAction; |
49 | if ( !activePackage->installed() ) | 49 | if ( !activePackage->installed() ) |
50 | { | 50 | { |
51 | popupMenu->insertItem( QObject::tr("Install to"), destsMenu ); | 51 | popupMenu->insertItem( QObject::tr("Install to"), destsMenu ); |
52 | QStringList dests = settings->getDestinationNames(); | 52 | QStringList dests = settings->getDestinationNames(); |
53 | QString ad = settings->getDestinationName(); | 53 | QString ad = settings->getDestinationName(); |
54 | for (uint i = 0; i < dests.count(); i++ ) | 54 | for (uint i = 0; i < dests.count(); i++ ) |
55 | { | 55 | { |
56 | popupAction = new QAction( dests[i], QString::null, 0, this, 0 ); | 56 | popupAction = new QAction( dests[i], QString::null, 0, this, 0 ); |
57 | popupAction->addTo( destsMenu ); | 57 | popupAction->addTo( destsMenu ); |
58 | if ( dests[i] == ad && activePackage->toInstall() ) | 58 | if ( dests[i] == ad && activePackage->toInstall() ) |
59 | { | 59 | { |
60 | popupAction->setToggleAction( true ); | 60 | popupAction->setToggleAction( true ); |
61 | popupAction->setOn(true); | 61 | popupAction->setOn(true); |
62 | }; | 62 | }; |
63 | } | 63 | } |
64 | connect( destsMenu, SIGNAL( activated( int ) ), | 64 | connect( destsMenu, SIGNAL( activated( int ) ), |
65 | this, SLOT( changePackageDest( int ) ) ); | 65 | this, SLOT( changePackageDest( int ) ) ); |
66 | }else{ | 66 | }else{ |
67 | // popupActcat setOn( activePackage->toProcess() ); | ||
68 | } | 67 | } |
69 | popupMenu->popup( QCursor::pos() ); | 68 | popupMenu->popup( QCursor::pos() ); |
70 | } | 69 | } |
71 | 70 | ||
72 | void PackageListView::stopTimer( QListViewItem* ) | 71 | void PackageListView::stopTimer( QListViewItem* ) |
73 | { | 72 | { |
74 | popupTimer->stop(); | 73 | popupTimer->stop(); |
75 | } | 74 | } |
76 | 75 | ||
77 | 76 | ||
78 | void PackageListView::changePackageDest( int i ) | 77 | void PackageListView::changePackageDest( int i ) |
79 | { | 78 | { |
80 | activePackage->setDest( destsMenu->text(i) ); | 79 | activePackage->setDest( destsMenu->text(i) ); |
81 | activePackage->setOn(); | 80 | activePackage->setOn(); |
82 | activePackage->setLink( settings->createLinks() ); | 81 | activePackage->setLink( settings->createLinks() ); |
83 | activePackageListItem->displayDetails(); | 82 | activePackageListItem->displayDetails(); |
84 | } | 83 | } |
85 | 84 | ||
86 | void PackageListView::toggleProcess() | 85 | void PackageListView::toggleProcess() |
87 | { | 86 | { |
88 | activePackage->toggleProcess() ; | 87 | activePackage->toggleProcess() ; |
89 | activePackageListItem->displayDetails(); | 88 | activePackageListItem->displayDetails(); |
90 | } | 89 | } |