15 #ifndef QGSLEGENDPATCHSHAPEBUTTON_H
16 #define QGSLEGENDPATCHSHAPEBUTTON_H
22 #include <QToolButton>
48 QSize minimumSizeHint()
const override;
49 QSize sizeHint()
const override;
77 void setDialogTitle(
const QString &title );
83 QString dialogTitle()
const;
132 void changeEvent( QEvent *e )
override;
133 void showEvent( QShowEvent *e )
override;
134 void resizeEvent( QResizeEvent *event )
override;
137 void mousePressEvent( QMouseEvent *e )
override;
141 void showSettingsDialog();
148 void loadPatchFromStyle(
const QString &name );
156 QString mDialogTitle;
160 std::unique_ptr< QgsSymbol > mPreviewSymbol;
164 QMenu *mMenu =
nullptr;
168 bool mIsDefault =
true;
173 void updatePreview();
Represents a patch shape for use in map legends.
A bar for displaying non-blocking messages to the user.
Abstract base class for all rendered symbols.
SymbolType
Type of the symbol.