Diffstat (limited to 'noncore/settings/sysinfo/processinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/processinfo.cpp | 9 |
1 files changed, 6 insertions, 3 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 @@ -16,8 +16,10 @@ ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** **********************************************************************/ +#include <qpe/qpeapplication.h> + #include <qheader.h> #include <qlistview.h> #include <qlayout.h> #include <qtimer.h> @@ -38,9 +40,11 @@ ProcessInfo::ProcessInfo( QWidget* parent, const char* name, WFlags fl ) colnum = ProcessView->addColumn( tr( "Status" ) ); 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 ); QTimer *t = new QTimer( this ); @@ -106,9 +110,9 @@ void ProcessInfo::updateData() delete proclist; delete procdir; } -void ProcessInfo::viewProcess(QListViewItem *process) +void ProcessInfo::viewProcess( QListViewItem *process ) { QString pid= process->text( 0 ).stripWhiteSpace(); QString command = process->text( 1 ); ProcessDtl->setCaption( pid + " - " + command ); @@ -124,7 +128,6 @@ void ProcessInfo::viewProcess(QListViewItem *process) ProcessDtl->ProcessView->append( line ); } fclose( statfile ); } - ProcessDtl->showMaximized(); } |