summaryrefslogtreecommitdiff
path: root/noncore/apps/confedit/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/confedit/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/confedit/mainwindow.cpp31
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
@@ -88,5 +88,3 @@ void MainWindow::setCurrent(QListViewItem *item)
{
- qDebug("MainWindow::setCurrent(");
if (!item) return;
- qDebug("cast ListViewItemConf");
ListViewItemConf *i = (ListViewItemConf*) item;
@@ -95,2 +93,3 @@ void MainWindow::setCurrent(QListViewItem *item)
{
+ qDebug("start timer");
popupTimer->start( 750, true );
@@ -102,3 +101,2 @@ void MainWindow::setCurrent(QListViewItem *item)
}else editor->show();
- qDebug("cast ListViewItemConfigEntry");
_fileItem = 0;
@@ -167,28 +165,3 @@ void MainWindow::showPopup()
-// if ( !activePackage->installed() )
-// {
-// popupMenu->insertItem( tr("Install to"), destsMenu );
-// QStringList dests = settings->getDestinationNames();
-// QString ad = settings->getDestinationName();
-// for (uint i = 0; i < dests.count(); i++ )
-// {
-// popupAction = new QAction( dests[i], QString::null, 0, this, 0 );
-// popupAction->addTo( destsMenu );
-// if ( dests[i] == ad && activePackage->toInstall() )
-// {
-// popupAction->setToggleAction( true );
-// popupAction->setOn(true);
-// };
-// }
-// connect( destsMenu, SIGNAL( activated( int ) ),
-// this, SLOT( changePackageDest( int ) ) );
-// }else{
-// popupAction = new QAction( tr("Remove"),QString::null, 0, this, 0 );
-// popupAction->addTo( popupMenu );
-// connect( popupAction, SIGNAL( activated() ),
-// this , SLOT( toggleProcess() ) );
-// popupAction = new QAction( tr("Reinstall"),QString::null, 0, this, 0 );
-// popupAction->addTo( popupMenu );
-// popupAction->setEnabled( false );
-// }
+
popupMenu->popup( QCursor::pos() );