Diffstat (limited to 'noncore/apps/confedit/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/confedit/mainwindow.cpp | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/noncore/apps/confedit/mainwindow.cpp b/noncore/apps/confedit/mainwindow.cpp index 5eeeb90..30dfdf7 100644 --- a/noncore/apps/confedit/mainwindow.cpp +++ b/noncore/apps/confedit/mainwindow.cpp | |||
@@ -86,13 +86,12 @@ MainWindow::~MainWindow() | |||
86 | 86 | ||
87 | void MainWindow::setCurrent(QListViewItem *item) | 87 | void MainWindow::setCurrent(QListViewItem *item) |
88 | { | 88 | { |
89 | qDebug("MainWindow::setCurrent("); | ||
90 | if (!item) return; | 89 | if (!item) return; |
91 | qDebug("cast ListViewItemConf"); | ||
92 | ListViewItemConf *i = (ListViewItemConf*) item; | 90 | ListViewItemConf *i = (ListViewItemConf*) item; |
93 | if (!i) return; | 91 | if (!i) return; |
94 | if (i->getType() == ListViewItemConf::File) | 92 | if (i->getType() == ListViewItemConf::File) |
95 | { | 93 | { |
94 | qDebug("start timer"); | ||
96 | popupTimer->start( 750, true ); | 95 | popupTimer->start( 750, true ); |
97 | editor->hide(); | 96 | editor->hide(); |
98 | updateGeometry(); | 97 | updateGeometry(); |
@@ -100,7 +99,6 @@ void MainWindow::setCurrent(QListViewItem *item) | |||
100 | _fileItem = (ListViewItemConfFile*)item; | 99 | _fileItem = (ListViewItemConfFile*)item; |
101 | return; | 100 | return; |
102 | }else editor->show(); | 101 | }else editor->show(); |
103 | qDebug("cast ListViewItemConfigEntry"); | ||
104 | _fileItem = 0; | 102 | _fileItem = 0; |
105 | _currentItem = (ListViewItemConfigEntry*)item; | 103 | _currentItem = (ListViewItemConfigEntry*)item; |
106 | if (!_currentItem) return; | 104 | if (!_currentItem) return; |
@@ -165,31 +163,6 @@ void MainWindow::showPopup() | |||
165 | connect( popupAction, SIGNAL( activated() ), | 163 | connect( popupAction, SIGNAL( activated() ), |
166 | this , SLOT( saveConfFile() ) ); | 164 | this , SLOT( saveConfFile() ) ); |
167 | 165 | ||
168 | // if ( !activePackage->installed() ) | 166 | |
169 | // { | ||
170 | // popupMenu->insertItem( tr("Install to"), destsMenu ); | ||
171 | // QStringList dests = settings->getDestinationNames(); | ||
172 | // QString ad = settings->getDestinationName(); | ||
173 | // for (uint i = 0; i < dests.count(); i++ ) | ||
174 | // { | ||
175 | // popupAction = new QAction( dests[i], QString::null, 0, this, 0 ); | ||
176 | // popupAction->addTo( destsMenu ); | ||
177 | // if ( dests[i] == ad && activePackage->toInstall() ) | ||
178 | // { | ||
179 | // popupAction->setToggleAction( true ); | ||
180 | // popupAction->setOn(true); | ||
181 | // }; | ||
182 | // } | ||
183 | // connect( destsMenu, SIGNAL( activated( int ) ), | ||
184 | // this, SLOT( changePackageDest( int ) ) ); | ||
185 | // }else{ | ||
186 | // popupAction = new QAction( tr("Remove"),QString::null, 0, this, 0 ); | ||
187 | // popupAction->addTo( popupMenu ); | ||
188 | // connect( popupAction, SIGNAL( activated() ), | ||
189 | // this , SLOT( toggleProcess() ) ); | ||
190 | // popupAction = new QAction( tr("Reinstall"),QString::null, 0, this, 0 ); | ||
191 | // popupAction->addTo( popupMenu ); | ||
192 | // popupAction->setEnabled( false ); | ||
193 | // } | ||
194 | popupMenu->popup( QCursor::pos() ); | 167 | popupMenu->popup( QCursor::pos() ); |
195 | } | 168 | } |