summaryrefslogtreecommitdiff
path: root/noncore/apps/confedit/mainwindow.cpp
authortille <tille>2002-06-29 20:53:42 (UTC)
committer tille <tille>2002-06-29 20:53:42 (UTC)
commitcbb1662a1c3bca476294100ce5e0d0eeb3655639 (patch) (side-by-side diff)
treee7deb5afdba0d5fa843675669ae3e089c168d022 /noncore/apps/confedit/mainwindow.cpp
parent5960b3a2823037c63afba09ca83dbcc0943cd082 (diff)
downloadopie-cbb1662a1c3bca476294100ce5e0d0eeb3655639.zip
opie-cbb1662a1c3bca476294100ce5e0d0eeb3655639.tar.gz
opie-cbb1662a1c3bca476294100ce5e0d0eeb3655639.tar.bz2
makes backups, but does not save the file yet
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
@@ -86,13 +86,12 @@ MainWindow::~MainWindow()
void MainWindow::setCurrent(QListViewItem *item)
{
- qDebug("MainWindow::setCurrent(");
if (!item) return;
- qDebug("cast ListViewItemConf");
ListViewItemConf *i = (ListViewItemConf*) item;
if (!i) return;
if (i->getType() == ListViewItemConf::File)
{
+ qDebug("start timer");
popupTimer->start( 750, true );
editor->hide();
updateGeometry();
@@ -100,7 +99,6 @@ void MainWindow::setCurrent(QListViewItem *item)
_fileItem = (ListViewItemConfFile*)item;
return;
}else editor->show();
- qDebug("cast ListViewItemConfigEntry");
_fileItem = 0;
_currentItem = (ListViewItemConfigEntry*)item;
if (!_currentItem) return;
@@ -165,31 +163,6 @@ void MainWindow::showPopup()
connect( popupAction, SIGNAL( activated() ),
this , SLOT( saveConfFile() ) );
-// 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() );
}