From c4d6574e85f74d6086c1709ecf0d117df7417222 Mon Sep 17 00:00:00 2001 From: harlekin Date: Wed, 07 Jan 2004 22:59:40 +0000 Subject: bring over some enhancements I allready did in branch --- diff --git a/noncore/settings/sysinfo/detail.cpp b/noncore/settings/sysinfo/detail.cpp index 2c5fdc4..79daa2b 100644 --- a/noncore/settings/sysinfo/detail.cpp +++ b/noncore/settings/sysinfo/detail.cpp @@ -24,13 +24,7 @@ #include #include -#include #include -#include -#include -#include -#include -#include Detail::Detail( QWidget* parent, const char* name, WFlags ) : QWidget( parent, name, WStyle_ContextHelp ) diff --git a/noncore/settings/sysinfo/main.cpp b/noncore/settings/sysinfo/main.cpp index 02b1098..d071f71 100644 --- a/noncore/settings/sysinfo/main.cpp +++ b/noncore/settings/sysinfo/main.cpp @@ -20,7 +20,6 @@ #include "sysinfo.h" -#include #include diff --git a/noncore/settings/sysinfo/modulesinfo.cpp b/noncore/settings/sysinfo/modulesinfo.cpp index 0bf51e8..566b179 100644 --- a/noncore/settings/sysinfo/modulesinfo.cpp +++ b/noncore/settings/sysinfo/modulesinfo.cpp @@ -21,14 +21,9 @@ #include -#include #include -#include #include -#include #include -#include -#include #include #include diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp index 709158d..af0fe26 100644 --- a/noncore/settings/sysinfo/processinfo.cpp +++ b/noncore/settings/sysinfo/processinfo.cpp @@ -20,10 +20,7 @@ #include #include -#include -#include #include -#include #include #include #include diff --git a/noncore/settings/sysinfo/storage.cpp b/noncore/settings/sysinfo/storage.cpp index 4ef7122..fc583e3 100644 --- a/noncore/settings/sysinfo/storage.cpp +++ b/noncore/settings/sysinfo/storage.cpp @@ -24,7 +24,6 @@ #include #include #include -#include #include #include "graph.h" diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp index 1984823..c44a05a 100644 --- a/noncore/settings/sysinfo/versioninfo.cpp +++ b/noncore/settings/sysinfo/versioninfo.cpp @@ -22,14 +22,10 @@ #include #include -#include #include #include -#include -#include #include #include -#include #include #include "versioninfo.h" @@ -58,15 +54,15 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) if ( file.open( IO_ReadOnly ) ) { QTextStream t( &file ); - QString v; - t >> v; t >> v; t >> v; - v = v.left( 20 ); + QStringList strList; + + strList = QStringList::split( " " , t.read(), false ); + kernelVersionString = "" + tr( "Linux Kernel

Version: " ); - kernelVersionString.append( v ); + kernelVersionString.append( strList[2] ); kernelVersionString.append( "
" ); - t >> v; kernelVersionString.append( tr( "Compiled by: " ) ); - kernelVersionString.append( v ); + kernelVersionString.append( strList[3] ); kernelVersionString.append(""); file.close(); } -- cgit v0.9.0.2