15 #ifndef QGSLEGENDPATCHSHAPEBUTTON_H 
   16 #define QGSLEGENDPATCHSHAPEBUTTON_H 
   21 #include <QToolButton> 
   49     QSize minimumSizeHint() 
const override;
 
   50     QSize sizeHint() 
const override;
 
   78     void setDialogTitle( 
const QString &title );
 
   84     QString dialogTitle() 
const;
 
  133     void changeEvent( QEvent *e ) 
override;
 
  134     void showEvent( QShowEvent *e ) 
override;
 
  135     void resizeEvent( QResizeEvent *event ) 
override;
 
  138     void mousePressEvent( QMouseEvent *e ) 
override;
 
  142     void showSettingsDialog();
 
  149     void loadPatchFromStyle( 
const QString &name );
 
  157     QString mDialogTitle;
 
  161     std::unique_ptr< QgsSymbol > mPreviewSymbol;
 
  165     QMenu *mMenu = 
nullptr;
 
  169     bool mIsDefault = 
true;
 
  174     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.