Diffstat (limited to 'noncore/settings/sysinfo/versioninfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/versioninfo.cpp | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp index 9a444df..801af29 100644 --- a/noncore/settings/sysinfo/versioninfo.cpp +++ b/noncore/settings/sysinfo/versioninfo.cpp @@ -29,2 +29,3 @@ #include <qpainter.h> +#include <qscrollview.h> #include <qtextstream.h> @@ -44,3 +45,11 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) - QVBoxLayout *vb = new QVBoxLayout( this, 4 ); + QVBoxLayout *tmpvb = new QVBoxLayout( this ); + QScrollView *sv = new QScrollView( this ); + tmpvb->addWidget( sv, 0, 0 ); + sv->setResizePolicy( QScrollView::AutoOneFit ); + sv->setFrameStyle( QFrame::NoFrame ); + QWidget *container = new QWidget( sv->viewport() ); + sv->addChild( container ); + + QVBoxLayout *vb = new QVBoxLayout( container, 4 ); @@ -80,3 +89,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) - QLabel *palmtopLogo = new QLabel( this ); + QLabel *palmtopLogo = new QLabel( container ); QImage logo1 = Resource::loadImage( "logo/opielogo" ); @@ -89,3 +98,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) - QLabel *palmtopVersion = new QLabel( this ); + QLabel *palmtopVersion = new QLabel( container ); palmtopVersion->setText( palmtopVersionString ); @@ -97,3 +106,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) - QLabel *linuxLogo = new QLabel( this ); + QLabel *linuxLogo = new QLabel( container ); QImage logo2 = Resource::loadImage( "logo/tux-logo" ); @@ -106,3 +115,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) - QLabel *kernelVersion = new QLabel( this ); + QLabel *kernelVersion = new QLabel( container ); kernelVersion->setText( kernelVersionString ); @@ -114,3 +123,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) - QLabel *palmtopLogo3 = new QLabel( this ); + QLabel *palmtopLogo3 = new QLabel( container ); QImage logo3 = Resource::loadImage( "sysinfo/pda" ); @@ -133,3 +142,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) - QLabel *systemVersion = new QLabel( this ); + QLabel *systemVersion = new QLabel( container ); systemVersion->setText( systemString ); |