-rw-r--r-- | noncore/settings/sysinfo/processinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp index bd954c8..f95d9cc 100644 --- a/noncore/settings/sysinfo/processinfo.cpp +++ b/noncore/settings/sysinfo/processinfo.cpp | |||
@@ -13,49 +13,49 @@ | |||
13 | ** packaging of this file. | 13 | ** packaging of this file. |
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 <qheader.h> | 20 | #include <qheader.h> |
21 | #include <qlistview.h> | 21 | #include <qlistview.h> |
22 | #include <qlayout.h> | 22 | #include <qlayout.h> |
23 | #include <qtimer.h> | 23 | #include <qtimer.h> |
24 | #include <qfile.h> | 24 | #include <qfile.h> |
25 | #include <qdir.h> | 25 | #include <qdir.h> |
26 | 26 | ||
27 | #include "processinfo.h" | 27 | #include "processinfo.h" |
28 | 28 | ||
29 | ProcessInfo::ProcessInfo( QWidget* parent, const char* name, WFlags fl ) | 29 | ProcessInfo::ProcessInfo( QWidget* parent, const char* name, WFlags fl ) |
30 | : QWidget( parent, name, fl ) | 30 | : QWidget( parent, name, fl ) |
31 | { | 31 | { |
32 | QVBoxLayout *vb = new QVBoxLayout( this, 5 ); | 32 | QVBoxLayout *vb = new QVBoxLayout( this, 5 ); |
33 | 33 | ||
34 | ProcessView = new QListView( this, "ProcessView" ); | 34 | ProcessView = new QListView( this, "ProcessView" ); |
35 | int colnum = ProcessView->addColumn( tr( "PID" ) ); | 35 | int colnum = ProcessView->addColumn( tr( "PID" ) ); |
36 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); | 36 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); |
37 | colnum = ProcessView->addColumn( tr( "Command" ),90 ); | 37 | colnum = ProcessView->addColumn( tr( "Command" ),96 ); |
38 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); | 38 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); |
39 | colnum = ProcessView->addColumn( tr( "Status" ) ); | 39 | colnum = ProcessView->addColumn( tr( "Status" ) ); |
40 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); | 40 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); |
41 | colnum = ProcessView->addColumn( tr( "Time" ) ); | 41 | colnum = ProcessView->addColumn( tr( "Time" ) ); |
42 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); | 42 | ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); |
43 | ProcessView->setAllColumnsShowFocus( TRUE ); | 43 | ProcessView->setAllColumnsShowFocus( TRUE ); |
44 | connect( ProcessView, SIGNAL( doubleClicked(QListViewItem *) ), this, SLOT( viewProcess(QListViewItem *) ) ); | 44 | connect( ProcessView, SIGNAL( doubleClicked(QListViewItem *) ), this, SLOT( viewProcess(QListViewItem *) ) ); |
45 | 45 | ||
46 | vb->addWidget( ProcessView ); | 46 | vb->addWidget( ProcessView ); |
47 | 47 | ||
48 | QTimer *t = new QTimer( this ); | 48 | QTimer *t = new QTimer( this ); |
49 | connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) ); | 49 | connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) ); |
50 | t->start( 5000 ); | 50 | t->start( 5000 ); |
51 | 51 | ||
52 | updateData(); | 52 | updateData(); |
53 | } | 53 | } |
54 | 54 | ||
55 | ProcessInfo::~ProcessInfo() | 55 | ProcessInfo::~ProcessInfo() |
56 | { | 56 | { |
57 | } | 57 | } |
58 | 58 | ||
59 | void ProcessInfo::updateData() | 59 | void ProcessInfo::updateData() |
60 | { | 60 | { |
61 | QString processnum(""); | 61 | QString processnum(""); |