[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Mon Apr 26 12:29:06 CEST 2010
SVN commit 1118989 by jmhoffmann:
TileLevelRangeWidget: Fix initial invisibility by providing a sizeHint.
Also remove horizontal offset to align it with the peer widgets.
M +5 -0 TileLevelRangeWidget.cpp
M +2 -0 TileLevelRangeWidget.h
M +2 -2 TileLevelRangeWidget.ui
--- trunk/KDE/kdeedu/marble/src/lib/TileLevelRangeWidget.cpp #1118988:1118989
@@ -47,6 +47,11 @@
delete d;
}
+QSize TileLevelRangeWidget::sizeHint() const
+{
+ return size();
+}
+
void TileLevelRangeWidget::setAllowedLevelRange( int const minimumLevel, int const maximumLevel )
{
d->m_ui.topSpinBox->setRange( minimumLevel, qMin( d->m_ui.bottomSpinBox->value(),
--- trunk/KDE/kdeedu/marble/src/lib/TileLevelRangeWidget.h #1118988:1118989
@@ -29,6 +29,8 @@
explicit TileLevelRangeWidget( QWidget * const parent = 0, Qt::WindowFlags const f = 0 );
~TileLevelRangeWidget();
+ virtual QSize sizeHint() const;
+
void setAllowedLevelRange( int const minimumLevel, int const maximumLevel );
void setDefaultLevel( int const );
--- trunk/KDE/kdeedu/marble/src/lib/TileLevelRangeWidget.ui #1118988:1118989
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>400</width>
- <height>300</height>
+ <height>88</height>
</rect>
</property>
<property name="windowTitle">
@@ -16,7 +16,7 @@
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
- <x>10</x>
+ <x>0</x>
<y>0</y>
<width>450</width>
<height>68</height>
More information about the Marble-commits
mailing list