author | drw <drw> | 2002-11-17 21:36:55 (UTC) |
---|---|---|
committer | drw <drw> | 2002-11-17 21:36:55 (UTC) |
commit | 2f87d2f9155285d853b66bb08e43b275f6284226 (patch) (side-by-side diff) | |
tree | 5f829b21ae5c60e9264d29378349f1c83e521284 /noncore/settings/sysinfo/processinfo.cpp | |
parent | d94c9d39ab6e744f848a04c07eac03f20c91987c (diff) | |
download | opie-2f87d2f9155285d853b66bb08e43b275f6284226.zip opie-2f87d2f9155285d853b66bb08e43b275f6284226.tar.gz opie-2f87d2f9155285d853b66bb08e43b275f6284226.tar.bz2 |
Finish What's This and some additional code clean-up
Diffstat (limited to 'noncore/settings/sysinfo/processinfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/processinfo.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp index 0512141..86133a9 100644 --- a/noncore/settings/sysinfo/processinfo.cpp +++ b/noncore/settings/sysinfo/processinfo.cpp @@ -10,51 +10,52 @@ ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** **********************************************************************/ #include <qpe/qpeapplication.h> +#include <qdir.h> +#include <qfile.h> #include <qheader.h> -#include <qlistview.h> #include <qlayout.h> +#include <qlistview.h> #include <qtimer.h> -#include <qfile.h> -#include <qdir.h> +#include <qwhatsthis.h> #include "processinfo.h" ProcessInfo::ProcessInfo( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { QVBoxLayout *layout = new QVBoxLayout( this, 5 ); ProcessView = new QListView( this, "ProcessView" ); int colnum = ProcessView->addColumn( tr( "PID" ) ); ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); colnum = ProcessView->addColumn( tr( "Command" ),96 ); colnum = ProcessView->addColumn( tr( "Status" ) ); colnum = ProcessView->addColumn( tr( "Time" ) ); ProcessView->setColumnAlignment( colnum, Qt::AlignRight ); ProcessView->setAllColumnsShowFocus( TRUE ); QPEApplication::setStylusOperation( ProcessView->viewport(), QPEApplication::RightOnHold ); connect( ProcessView, SIGNAL( rightButtonPressed( QListViewItem *, const QPoint &, int ) ), this, SLOT( viewProcess( QListViewItem * ) ) ); - layout->addWidget( ProcessView ); + QWhatsThis::add( ProcessView, tr( "This is a list of all the processes on this handheld device.\n\nClick and hold on a process to see additional information about the process, or to send a signal to it." ) ); QTimer *t = new QTimer( this ); connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) ); t->start( 5000 ); updateData(); ProcessDtl = new ProcessDetail( 0, 0, 0 ); ProcessDtl->ProcessView->setTextFormat( RichText ); } ProcessInfo::~ProcessInfo() |