49 Q_PROPERTY( QString dialogTitle READ dialogTitle WRITE setDialogTitle )
60 QSize minimumSizeHint()
const override;
61 QSize sizeHint()
const override;
81 void setDialogTitle(
const QString &title );
87 QString dialogTitle()
const;
105 SymbolType *symbolCastToType =
dynamic_cast<SymbolType *
>( tmpSymbol );
107 if ( symbolCastToType )
109 return symbolCastToType->
clone();
192 bool showNull()
const;
216 void setColor(
const QColor &color );
251 void setShowNull(
bool showNull );
271 void setToDefaultSymbol();
284 void changeEvent( QEvent *e )
override;
285 void showEvent( QShowEvent *e )
override;
286 void resizeEvent( QResizeEvent *event )
override;
289 void mousePressEvent( QMouseEvent *e )
override;
291 void mouseMoveEvent( QMouseEvent *e )
override;
292 void mouseReleaseEvent( QMouseEvent *e )
override;
293 void keyPressEvent( QKeyEvent *e )
override;
295 void dragEnterEvent( QDragEnterEvent *e )
override;
298 void dragLeaveEvent( QDragLeaveEvent *e )
override;
301 void dropEvent( QDropEvent *e )
override;
303 void wheelEvent( QWheelEvent *event )
override;
307 void showSettingsDialog();
315 void addRecentColor(
const QColor &color );
320 void activatePicker();
326 QString mDialogTitle;
333 QPoint mDragStartPosition;
335 QMenu *mMenu =
nullptr;
337 QPointer< QgsVectorLayer > mLayer;
341 std::unique_ptr< QgsSymbol > mSymbol;
345 bool mPickingColor =
false;
347 bool mShowNull =
false;
349 std::unique_ptr< QgsSymbol > mDefaultSymbol;
355 void updatePreview(
const QColor &color = QColor(),
QgsSymbol *tempSymbol =
nullptr );
366 bool colorFromMimeData(
const QMimeData *mimeData, QColor &resultColor,
bool &hasAlpha );
371 QPixmap createColorIcon(
const QColor &color )
const;
379 void stopPicking( QPoint eventPos,
bool samplingColor =
true );
381 void showColorDialog();
383 void updateSizeHint();
Abstract interface for generating an expression context.