[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdeedu/kalzium/src
From: Pino Toscano <toscano.pino () tiscali ! it>
Date: 2005-07-30 17:32:22
Message-ID: 1122744742.807127.21345.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 440494 by pino:
Layout fix.
M +17 -9 timewidget.ui
M +4 -9 timewidget_impl.cpp
--- branches/KDE/3.5/kdeedu/kalzium/src/timewidget.ui #440493:440494
@@ -15,11 +15,11 @@
<property name="caption">
<string>TimeWidget</string>
</property>
- <grid>
+ <vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <spacer row="0" column="1">
+ <spacer>
<property name="name">
<cstring>spacer3</cstring>
</property>
@@ -36,7 +36,7 @@
</size>
</property>
</spacer>
- <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="QLayoutWidget">
<property name="name">
<cstring>layout3</cstring>
</property>
@@ -48,6 +48,14 @@
<property name="name">
<cstring>lbl1_2</cstring>
</property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="text">
<string>Year:</string>
</property>
@@ -71,7 +79,7 @@
</spacer>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="QLayoutWidget">
<property name="name">
<cstring>layout5</cstring>
</property>
@@ -108,7 +116,7 @@
</property>
<property name="sizeHint">
<size>
- <width>21</width>
+ <width>5</width>
<height>21</height>
</size>
</property>
@@ -129,9 +137,9 @@
</widget>
</hbox>
</widget>
- <spacer row="3" column="0">
+ <spacer>
<property name="name">
- <cstring>spacer2</cstring>
+ <cstring>verticalSpacer</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
@@ -146,7 +154,7 @@
</size>
</property>
</spacer>
- <widget class="QTextEdit" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="QTextEdit">
<property name="name">
<cstring>text</cstring>
</property>
@@ -165,7 +173,7 @@
<enum>WidgetWidth</enum>
</property>
</widget>
- </grid>
+ </vbox>
</widget>
<customwidgets>
</customwidgets>
--- branches/KDE/3.5/kdeedu/kalzium/src/timewidget_impl.cpp #440493:440494
@@ -1,18 +1,12 @@
#include "timewidget_impl.h"
+#include <qlayout.h>
+#include <qsizepolicy.h>
#include <qslider.h>
#include <qtextedit.h>
-#include <qvaluelist.h>
-#include <kdebug.h>
#include <knuminput.h>
-#include <klocale.h>
-#include <math.h>
-
-#include "element.h"
-#include "kalziumdataobject.h"
-
TimeWidgetIMPL::TimeWidgetIMPL( QWidget *parent, const char* name )
: TimeWidget( parent, name )
{
@@ -26,7 +20,8 @@
void TimeWidgetIMPL::slotChanged( int value )
{
( void )value;
- text->hide( );
+ text->hide();
+ verticalSpacer->changeSize( 21, 5, QSizePolicy::Fixed, QSizePolicy::Expanding );
}
#include "timewidget_impl.moc"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic