Skip to content

Commit

Permalink
QgsTemporalMapSettingsWidget is a QgsPanelWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 13, 2020
1 parent 2dc4c34 commit 97cc157
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 19 deletions.
4 changes: 3 additions & 1 deletion src/gui/qgstemporalmapsettingswidget.cpp
Expand Up @@ -18,11 +18,13 @@
#include "qgstemporalmapsettingswidget.h"
#include "qgsgui.h"
#include "qgis.h"

///@cond PRIVATE
QgsTemporalMapSettingsWidget::QgsTemporalMapSettingsWidget( QWidget *parent )
: QWidget( parent )
: QgsPanelWidget( parent )
{
setupUi( this );
setPanelTitle( tr( "Temporal Settings" ) );

connect( mFrameSpinBox, qgis::overload<double>::of( &QDoubleSpinBox::valueChanged ), this, &QgsTemporalMapSettingsWidget::frameRateChange );
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgstemporalmapsettingswidget.h
Expand Up @@ -25,7 +25,7 @@
#define SIP_NO_FILE

///@cond PRIVATE
class GUI_EXPORT QgsTemporalMapSettingsWidget : public QWidget, private Ui::QgsTemporalMapSettingsWidgetBase
class GUI_EXPORT QgsTemporalMapSettingsWidget : public QgsPanelWidget, private Ui::QgsTemporalMapSettingsWidgetBase
{
Q_OBJECT
public:
Expand Down
45 changes: 28 additions & 17 deletions src/ui/qgstemporalmapsettingswidgetbase.ui
@@ -1,19 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>QgsTemporalMapSettingsWidgetBase</class>
<widget class="QWidget" name="QgsTemporalMapSettingsWidgetBase">
<widget class="QgsPanelWidget" name="QgsTemporalMapSettingsWidgetBase">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>354</width>
<height>194</height>
<width>409</width>
<height>63</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
Expand All @@ -24,20 +36,7 @@
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDoubleSpinBox" name="mFrameSpinBox"/>
<widget class="QgsDoubleSpinBox" name="mFrameSpinBox"/>
</item>
<item>
<spacer name="horizontalSpacer_2">
Expand Down Expand Up @@ -69,6 +68,18 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
<customwidget>
<class>QgsPanelWidget</class>
<extends>QWidget</extends>
<header>qgspanelwidget.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

0 comments on commit 97cc157

Please sign in to comment.