summaryrefslogtreecommitdiff
Unidiff
Diffstat (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
@@ -18,4 +18,6 @@
18**********************************************************************/ 18**********************************************************************/
19 19
20#include <qpe/qpeapplication.h>
21
20#include <qheader.h> 22#include <qheader.h>
21#include <qlistview.h> 23#include <qlistview.h>
@@ -40,5 +42,7 @@ ProcessInfo::ProcessInfo( QWidget* parent, const char* name, WFlags fl )
40 ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); 42 ProcessView->setColumnAlignment( colnum, Qt::AlignRight );
41 ProcessView->setAllColumnsShowFocus( TRUE ); 43 ProcessView->setAllColumnsShowFocus( TRUE );
42 connect( ProcessView, SIGNAL( doubleClicked(QListViewItem *) ), this, SLOT( viewProcess(QListViewItem *) ) ); 44 QPEApplication::setStylusOperation( ProcessView->viewport(), QPEApplication::RightOnHold );
45 connect( ProcessView, SIGNAL( rightButtonPressed( QListViewItem *, const QPoint &, int ) ),
46 this, SLOT( viewProcess( QListViewItem * ) ) );
43 47
44 layout->addWidget( ProcessView ); 48 layout->addWidget( ProcessView );
@@ -108,5 +112,5 @@ void ProcessInfo::updateData()
108} 112}
109 113
110void ProcessInfo::viewProcess(QListViewItem *process) 114void ProcessInfo::viewProcess( QListViewItem *process )
111{ 115{
112 QString pid= process->text( 0 ).stripWhiteSpace(); 116 QString pid= process->text( 0 ).stripWhiteSpace();
@@ -126,5 +130,4 @@ void ProcessInfo::viewProcess(QListViewItem *process)
126 fclose( statfile ); 130 fclose( statfile );
127 } 131 }
128
129 ProcessDtl->showMaximized(); 132 ProcessDtl->showMaximized();
130} 133}
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
@@ -35,5 +35,5 @@ public:
35private slots: 35private slots:
36 void updateData(); 36 void updateData();
37 void viewProcess(QListViewItem *); 37 void viewProcess( QListViewItem * );
38 38
39private: 39private: