[Kmyirc-cvs] kmyirc-ng/src kmigeneralcfg.cpp,1.2,1.3
Status: Alpha
Brought to you by:
shermann
|
From: <sta...@us...> - 2003-06-04 13:25:02
|
Update of /cvsroot/kmyirc/kmyirc-ng/src
In directory sc8-pr-cvs1:/tmp/cvs-serv9537
Modified Files:
kmigeneralcfg.cpp
Log Message:
* Modified Layout
Index: kmigeneralcfg.cpp
===================================================================
RCS file: /cvsroot/kmyirc/kmyirc-ng/src/kmigeneralcfg.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- kmigeneralcfg.cpp 2 Jun 2003 08:44:04 -0000 1.2
+++ kmigeneralcfg.cpp 4 Jun 2003 13:24:58 -0000 1.3
@@ -11,6 +11,7 @@
#include <qlayout.h>
#include <qimage.h>
#include <qpixmap.h>
+#include <qlayout.h>
/*
* Constructs a KMIGeneralCfg as a child of 'parent', with the
@@ -22,14 +23,17 @@
if ( !name )
setName( "KMIGeneralCfg" );
+ QVBoxLayout *layout = new QVBoxLayout(this);
systrayBtn = new QCheckBox( this, "systrayBtn" );
- systrayBtn->setGeometry( QRect( 9, 13, 170, 20 ) );
systrayBtn->setText( i18n( "Enable System Tray Icon" ) );
+ layout->addWidget( systrayBtn );
systrayLabel = new QLabel( this, "systrayLabel" );
- systrayLabel->setGeometry( QRect( 10, 30, 480, 50 ) );
- systrayLabel->setMargin( 0 );
systrayLabel->setText( i18n( "<font size=\"-1\">A System Tray Icon gives you quick access to common action, such as connecting to a server, or quitting KMyIRC.</font>" ) );
+ layout->addWidget( systrayLabel );
+
+ QSpacerItem *spacer = new QSpacerItem( 10, 10, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ layout->addItem( spacer );
resize( QSize(523, 410).expandedTo(minimumSizeHint()) );
}
|