summaryrefslogtreecommitdiff
path: root/noncore
authordrw <drw>2002-03-15 16:25:53 (UTC)
committer drw <drw>2002-03-15 16:25:53 (UTC)
commiteb338502c03edbfc8b9b9f00bd95c0c0d4317003 (patch) (side-by-side diff)
tree36a0a6fb3a193a526bc0f7f748c404b621ea2224 /noncore
parenta0d6c8fdac4e8644c31d1b2e2a321131be4b57c2 (diff)
downloadopie-eb338502c03edbfc8b9b9f00bd95c0c0d4317003.zip
opie-eb338502c03edbfc8b9b9f00bd95c0c0d4317003.tar.gz
opie-eb338502c03edbfc8b9b9f00bd95c0c0d4317003.tar.bz2
Click & hold, not double click, to bring up detail
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/processinfo.cpp9
-rw-r--r--noncore/settings/sysinfo/processinfo.h2
2 files changed, 7 insertions, 4 deletions
diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp
index ad81d7b..0512141 100644
--- a/noncore/settings/sysinfo/processinfo.cpp
+++ b/noncore/settings/sysinfo/processinfo.cpp
@@ -17,6 +17,8 @@
**
**********************************************************************/
+#include <qpe/qpeapplication.h>
+
#include <qheader.h>
#include <qlistview.h>
#include <qlayout.h>
@@ -39,7 +41,9 @@ ProcessInfo::ProcessInfo( QWidget* parent, const char* name, WFlags fl )
colnum = ProcessView->addColumn( tr( "Time" ) );
ProcessView->setColumnAlignment( colnum, Qt::AlignRight );
ProcessView->setAllColumnsShowFocus( TRUE );
- connect( ProcessView, SIGNAL( doubleClicked(QListViewItem *) ), this, SLOT( viewProcess(QListViewItem *) ) );
+ QPEApplication::setStylusOperation( ProcessView->viewport(), QPEApplication::RightOnHold );
+ connect( ProcessView, SIGNAL( rightButtonPressed( QListViewItem *, const QPoint &, int ) ),
+ this, SLOT( viewProcess( QListViewItem * ) ) );
layout->addWidget( ProcessView );
@@ -107,7 +111,7 @@ void ProcessInfo::updateData()
delete procdir;
}
-void ProcessInfo::viewProcess(QListViewItem *process)
+void ProcessInfo::viewProcess( QListViewItem *process )
{
QString pid= process->text( 0 ).stripWhiteSpace();
QString command = process->text( 1 );
@@ -125,6 +129,5 @@ void ProcessInfo::viewProcess(QListViewItem *process)
}
fclose( statfile );
}
-
ProcessDtl->showMaximized();
}
diff --git a/noncore/settings/sysinfo/processinfo.h b/noncore/settings/sysinfo/processinfo.h
index 89d1a93..24b190e 100644
--- a/noncore/settings/sysinfo/processinfo.h
+++ b/noncore/settings/sysinfo/processinfo.h
@@ -34,7 +34,7 @@ public:
private slots:
void updateData();
- void viewProcess(QListViewItem *);
+ void viewProcess( QListViewItem * );
private:
QListView* ProcessView;