author | drw <drw> | 2002-03-15 16:25:53 (UTC) |
---|---|---|
committer | drw <drw> | 2002-03-15 16:25:53 (UTC) |
commit | eb338502c03edbfc8b9b9f00bd95c0c0d4317003 (patch) (unidiff) | |
tree | 36a0a6fb3a193a526bc0f7f748c404b621ea2224 /noncore | |
parent | a0d6c8fdac4e8644c31d1b2e2a321131be4b57c2 (diff) | |
download | opie-eb338502c03edbfc8b9b9f00bd95c0c0d4317003.zip opie-eb338502c03edbfc8b9b9f00bd95c0c0d4317003.tar.gz opie-eb338502c03edbfc8b9b9f00bd95c0c0d4317003.tar.bz2 |
Click & hold, not double click, to bring up detail
-rw-r--r-- | noncore/settings/sysinfo/processinfo.cpp | 7 | ||||
-rw-r--r-- | noncore/settings/sysinfo/processinfo.h | 0 |
2 files changed, 5 insertions, 2 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 | |||
@@ -14,12 +14,14 @@ | |||
14 | ** | 14 | ** |
15 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 15 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
16 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 16 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
17 | ** | 17 | ** |
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> |
22 | #include <qlayout.h> | 24 | #include <qlayout.h> |
23 | #include <qtimer.h> | 25 | #include <qtimer.h> |
24 | #include <qfile.h> | 26 | #include <qfile.h> |
25 | #include <qdir.h> | 27 | #include <qdir.h> |
@@ -36,13 +38,15 @@ ProcessInfo::ProcessInfo( QWidget* parent, const char* name, WFlags fl ) | |||
36 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); | 38 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); |
37 | colnum = ProcessView->addColumn( tr( "Command" ),96 ); | 39 | colnum = ProcessView->addColumn( tr( "Command" ),96 ); |
38 | colnum = ProcessView->addColumn( tr( "Status" ) ); | 40 | colnum = ProcessView->addColumn( tr( "Status" ) ); |
39 | colnum = ProcessView->addColumn( tr( "Time" ) ); | 41 | colnum = ProcessView->addColumn( tr( "Time" ) ); |
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 ); |
45 | 49 | ||
46 | QTimer *t = new QTimer( this ); | 50 | QTimer *t = new QTimer( this ); |
47 | connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) ); | 51 | connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) ); |
48 | t->start( 5000 ); | 52 | t->start( 5000 ); |
@@ -122,9 +126,8 @@ void ProcessInfo::viewProcess(QListViewItem *process) | |||
122 | while ( fgets( line, 81, statfile ) ) | 126 | while ( fgets( line, 81, statfile ) ) |
123 | { | 127 | { |
124 | ProcessDtl->ProcessView->append( line ); | 128 | ProcessDtl->ProcessView->append( line ); |
125 | } | 129 | } |
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 | |||