mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-04 00:06:46 -05:00
[api] Add QgsLayoutDesignerInterface.layoutExported signal
Emitted whenever the layout is exported from the designer
This commit is contained in:
parent
e62714484f
commit
6bd24e5d17
@ -457,6 +457,16 @@ Toggles whether or not the rulers should be ``visible`` in the designer.
|
|||||||
.. versionadded:: 3.4
|
.. versionadded:: 3.4
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
void layoutExported();
|
||||||
|
%Docstring
|
||||||
|
Emitted whenever a layout is exported from the layout designer.
|
||||||
|
|
||||||
|
The results of the export can be retrieved by calling :py:func:`~QgsLayoutDesignerInterface.lastExportResults`.
|
||||||
|
|
||||||
|
.. versionadded:: 3.20
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -113,7 +113,9 @@ bool QgsLayoutDesignerDialog::sInitializedRegistry = false;
|
|||||||
QgsAppLayoutDesignerInterface::QgsAppLayoutDesignerInterface( QgsLayoutDesignerDialog *dialog )
|
QgsAppLayoutDesignerInterface::QgsAppLayoutDesignerInterface( QgsLayoutDesignerDialog *dialog )
|
||||||
: QgsLayoutDesignerInterface( dialog )
|
: QgsLayoutDesignerInterface( dialog )
|
||||||
, mDesigner( dialog )
|
, mDesigner( dialog )
|
||||||
{}
|
{
|
||||||
|
connect( mDesigner, &QgsLayoutDesignerDialog::layoutExported, this, &QgsLayoutDesignerInterface::layoutExported );
|
||||||
|
}
|
||||||
|
|
||||||
QWidget *QgsAppLayoutDesignerInterface::window()
|
QWidget *QgsAppLayoutDesignerInterface::window()
|
||||||
{
|
{
|
||||||
@ -4904,6 +4906,8 @@ void QgsLayoutDesignerDialog::storeExportResults( QgsLayoutExporter::ExportResul
|
|||||||
qDeleteAll( mLastExportLabelingResults );
|
qDeleteAll( mLastExportLabelingResults );
|
||||||
mLastExportLabelingResults.clear();
|
mLastExportLabelingResults.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit layoutExported();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsLayoutDesignerDialog::selectItems( const QList<QgsLayoutItem *> &items )
|
void QgsLayoutDesignerDialog::selectItems( const QList<QgsLayoutItem *> &items )
|
||||||
|
|||||||
@ -338,6 +338,12 @@ class QgsLayoutDesignerDialog: public QMainWindow, public Ui::QgsLayoutDesignerB
|
|||||||
*/
|
*/
|
||||||
void aboutToClose();
|
void aboutToClose();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Emitted whenever a layout is exported from the layout designer.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void layoutExported();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void closeEvent( QCloseEvent * ) override;
|
void closeEvent( QCloseEvent * ) override;
|
||||||
|
|||||||
@ -398,6 +398,16 @@ class GUI_EXPORT QgsLayoutDesignerInterface: public QObject
|
|||||||
*/
|
*/
|
||||||
virtual void showRulers( bool visible ) = 0;
|
virtual void showRulers( bool visible ) = 0;
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Emitted whenever a layout is exported from the layout designer.
|
||||||
|
*
|
||||||
|
* The results of the export can be retrieved by calling lastExportResults().
|
||||||
|
*
|
||||||
|
* \since QGIS 3.20
|
||||||
|
*/
|
||||||
|
void layoutExported();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user