QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Factory class for creating custom developer/debugging tool pages. More...
#include <qgsdevtoolwidgetfactory.h>
Public Member Functions | |
QgsDevToolWidgetFactory (const QString &title=QString(), const QIcon &icon=QIcon()) | |
Constructor for a QgsDevToolWidgetFactory with the specified title and icon. | |
virtual | ~QgsDevToolWidgetFactory ()=default |
virtual QgsDevToolWidget * | createWidget (QWidget *parent=nullptr) const =0 |
Factory function to create the widget on demand as needed by the dock. | |
virtual QIcon | icon () const |
Returns the icon that will be shown in the tool in the panel. | |
void | setIcon (const QIcon &icon) |
Sets the icon for the factory object, which will be shown for the tool in the panel. | |
void | setTitle (const QString &title) |
Set the translated title for the tool. | |
virtual QString | title () const |
Returns the (translated) title of the tool. | |
Factory class for creating custom developer/debugging tool pages.
Definition at line 33 of file qgsdevtoolwidgetfactory.h.
QgsDevToolWidgetFactory::QgsDevToolWidgetFactory | ( | const QString & | title = QString() , |
const QIcon & | icon = QIcon() |
||
) |
Constructor for a QgsDevToolWidgetFactory with the specified title and icon.
Definition at line 18 of file qgsdevtoolwidgetfactory.cpp.
|
virtualdefault |
|
pure virtual |
Factory function to create the widget on demand as needed by the dock.
The parent argument gives the correct parent for the newly created widget.
|
inlinevirtual |
Returns the icon that will be shown in the tool in the panel.
Definition at line 47 of file qgsdevtoolwidgetfactory.h.
|
inline |
Sets the icon for the factory object, which will be shown for the tool in the panel.
Definition at line 53 of file qgsdevtoolwidgetfactory.h.
|
inline |
Set the translated title for the tool.
Definition at line 64 of file qgsdevtoolwidgetfactory.h.
|
inlinevirtual |
Returns the (translated) title of the tool.
Definition at line 59 of file qgsdevtoolwidgetfactory.h.