Skip to content
Permalink
Browse files

Cleanup QgsTemporalMapSettingsWidget/dialog, hide from stable API/python

  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 2959276 commit 66e8ef298abc42c0bf2a5eff00f8aa331578c172

This file was deleted.

This file was deleted.

@@ -196,8 +196,6 @@
%Include auto_generated/qgstablewidgetitem.sip
%Include auto_generated/qgstabwidget.sip
%Include auto_generated/qgstaskmanagerwidget.sip
%Include auto_generated/qgstemporalmapsettingsdialog.sip
%Include auto_generated/qgstemporalmapsettingswidget.sip
%Include auto_generated/qgstemporalcontrollerdockwidget.sip
%Include auto_generated/qgstextformatwidget.sip
%Include auto_generated/qgstextpreview.sip
@@ -19,32 +19,26 @@
#include "qgsgui.h"
#include "qgstemporalmapsettingswidget.h"

///@cond PRIVATE

QgsTemporalMapSettingsDialog::QgsTemporalMapSettingsDialog( QWidget *parent, Qt::WindowFlags flags )
: QDialog( parent, flags )
{
setupUi( this );

connect( this, &QDialog::accepted, this, &QgsTemporalMapSettingsDialog::apply );
connect( this, &QDialog::rejected, this, &QgsTemporalMapSettingsDialog::onCancel );
connect( this, &QDialog::accepted, this, &QgsTemporalMapSettingsDialog::accept );
connect( this, &QDialog::rejected, this, &QgsTemporalMapSettingsDialog::reject );

mTemporalMapSettingsWidget = new QgsTemporalMapSettingsWidget( this );
QVBoxLayout *layout = new QVBoxLayout( frame );
layout->addWidget( mTemporalMapSettingsWidget );

setWindowTitle( tr( "Temporal Map Settings" ) );

mTemporalMapSettingsWidget->setFrameRateValue( 1 );
}

void QgsTemporalMapSettingsDialog::apply()
{
}

void QgsTemporalMapSettingsDialog::onCancel()
{
}

QgsTemporalMapSettingsWidget *QgsTemporalMapSettingsDialog::mapSettingsWidget()
{
return mTemporalMapSettingsWidget;
}

///@endcond
@@ -23,20 +23,17 @@

class QgsTemporalMapSettingsWidget;

/**
* \ingroup gui
* The QgsTemporalMapSettingsDialog class
*
* \since QGIS 3.14
*/
#define SIP_NO_FILE

///@cond PRIVATE

class GUI_EXPORT QgsTemporalMapSettingsDialog : public QDialog, private Ui::QgsTemporalMapSettingsDialogBase
{
Q_OBJECT
public:

/**
* Constructor for QgsTemporalMapSettingsDialog
*
* Constructor for QgsTemporalMapSettingsDialog, with the specified \a parent widget.
*/
QgsTemporalMapSettingsDialog( QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );

@@ -45,17 +42,12 @@ class GUI_EXPORT QgsTemporalMapSettingsDialog : public QDialog, private Ui::QgsT
*/
QgsTemporalMapSettingsWidget *mapSettingsWidget();

private slots:

//! \brief Applies the settings made in the dialog.
void apply();
//! \brief Called when cancel button is pressed
void onCancel();

private:

//! Widget for handling temporal map settings
QgsTemporalMapSettingsWidget *mTemporalMapSettingsWidget = nullptr;
};

///@endcond

#endif // QGSTEMPORALMAPSETTINGSDIALOG_H
@@ -18,7 +18,7 @@
#include "qgstemporalmapsettingswidget.h"
#include "qgsgui.h"
#include "qgis.h"

///@cond PRIVATE
QgsTemporalMapSettingsWidget::QgsTemporalMapSettingsWidget( QWidget *parent )
: QWidget( parent )
{
@@ -41,3 +41,5 @@ void QgsTemporalMapSettingsWidget::frameRateChange()
{
emit frameRateChanged();
}

///@endcond
@@ -22,21 +22,16 @@

#include "qgis_gui.h"

#define SIP_NO_FILE

/**
* \ingroup gui
* The QgsTemporalMapSettingsWidget class
*
* \since QGIS 3.14
*/
///@cond PRIVATE
class GUI_EXPORT QgsTemporalMapSettingsWidget : public QWidget, private Ui::QgsTemporalMapSettingsWidgetBase
{
Q_OBJECT
public:

/**
* Constructor for QgsTemporalMapSettingsWidget
*
* Constructor for QgsTemporalMapSettingsWidget, with the specified \a parent widget.
*/
QgsTemporalMapSettingsWidget( QWidget *parent = nullptr );

@@ -70,5 +65,6 @@ class GUI_EXPORT QgsTemporalMapSettingsWidget : public QWidget, private Ui::QgsT


};
///@endcond

#endif // QGSTEMPORALMAPSETTINGSWIDGET_H

0 comments on commit 66e8ef2

Please sign in to comment.
You can’t perform that action at this time.