Skip to content
Permalink
Browse files

QgsTemporalMapSettingsWidget is a QgsPanelWidget

  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 2dc4c34 commit 97cc157a675237d9bd954c2271478e28dd7e4bcf
@@ -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 );
}
@@ -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:
@@ -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>
@@ -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">
@@ -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.
You can’t perform that action at this time.