summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/modulesinfo.cpp
authordrw <drw>2002-11-17 21:36:55 (UTC)
committer drw <drw>2002-11-17 21:36:55 (UTC)
commit2f87d2f9155285d853b66bb08e43b275f6284226 (patch) (side-by-side diff)
tree5f829b21ae5c60e9264d29378349f1c83e521284 /noncore/settings/sysinfo/modulesinfo.cpp
parentd94c9d39ab6e744f848a04c07eac03f20c91987c (diff)
downloadopie-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/modulesinfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sysinfo/modulesinfo.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/settings/sysinfo/modulesinfo.cpp b/noncore/settings/sysinfo/modulesinfo.cpp
index 7a32c20..a0d26c7 100644
--- a/noncore/settings/sysinfo/modulesinfo.cpp
+++ b/noncore/settings/sysinfo/modulesinfo.cpp
@@ -12,50 +12,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 <qfile.h>
#include <qheader.h>
-#include <qlistview.h>
#include <qlayout.h>
+#include <qlistview.h>
#include <qtimer.h>
-#include <qfile.h>
+#include <qwhatsthis.h>
#include "modulesinfo.h"
ModulesInfo::ModulesInfo( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
QVBoxLayout *layout = new QVBoxLayout( this, 5 );
ModulesView = new QListView( this, "ModulesView" );
int colnum = ModulesView->addColumn( tr( "Module" ) );
colnum = ModulesView->addColumn( tr( "Size" ) );
ModulesView->setColumnAlignment( colnum, Qt::AlignRight );
colnum = ModulesView->addColumn( tr( "Use#" ) );
ModulesView->setColumnAlignment( colnum, Qt::AlignRight );
colnum = ModulesView->addColumn( tr( "Used By" ) );
ModulesView->setAllColumnsShowFocus( TRUE );
QPEApplication::setStylusOperation( ModulesView->viewport(), QPEApplication::RightOnHold );
connect( ModulesView, SIGNAL( rightButtonPressed( QListViewItem *, const QPoint &, int ) ),
this, SLOT( viewModules( QListViewItem * ) ) );
-
layout->addWidget( ModulesView );
+ QWhatsThis::add( ModulesView, tr( "This is a list of all the kernel modules currently loaded on this handheld device.\n\nClick and hold on a module to see additional information about the module, or to unload it." ) );
+
QTimer *t = new QTimer( this );
connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) );
t->start( 5000 );
updateData();
ModulesDtl = new ModulesDetail( 0, 0, 0 );
ModulesDtl->ModulesView->setTextFormat( PlainText );
}
ModulesInfo::~ModulesInfo()
{