48 Q_PROPERTY( QString dialogTitle READ dialogTitle WRITE setDialogTitle )
58 QSize minimumSizeHint()
const override;
59 QSize sizeHint()
const override;
79 void setDialogTitle(
const QString &title );
85 QString dialogTitle()
const;
103 SymbolType *symbolCastToType =
dynamic_cast<SymbolType *
>( tmpSymbol );
105 if ( symbolCastToType )
107 return symbolCastToType->
clone();
190 bool showNull()
const;
214 void setColor(
const QColor &color );
249 void setShowNull(
bool showNull );
269 void setToDefaultSymbol();
281 void changeEvent( QEvent *e )
override;
282 void showEvent( QShowEvent *e )
override;
283 void resizeEvent( QResizeEvent *event )
override;
286 void mousePressEvent( QMouseEvent *e )
override;
288 void mouseMoveEvent( QMouseEvent *e )
override;
289 void mouseReleaseEvent( QMouseEvent *e )
override;
290 void keyPressEvent( QKeyEvent *e )
override;
292 void dragEnterEvent( QDragEnterEvent *e )
override;
295 void dragLeaveEvent( QDragLeaveEvent *e )
override;
298 void dropEvent( QDropEvent *e )
override;
300 void wheelEvent( QWheelEvent *event )
override;
304 void showSettingsDialog();
312 void addRecentColor(
const QColor &color );
317 void activatePicker();
322 QString mDialogTitle;
329 QPoint mDragStartPosition;
331 QMenu *mMenu =
nullptr;
333 QPointer<QgsVectorLayer> mLayer;
337 std::unique_ptr<QgsSymbol> mSymbol;
341 bool mPickingColor =
false;
343 bool mShowNull =
false;
345 std::unique_ptr<QgsSymbol> mDefaultSymbol;
351 void updatePreview(
const QColor &color = QColor(),
QgsSymbol *tempSymbol =
nullptr );
362 bool colorFromMimeData(
const QMimeData *mimeData, QColor &resultColor,
bool &hasAlpha );
367 QPixmap createColorIcon(
const QColor &color )
const;
375 void stopPicking( QPoint eventPos,
bool samplingColor =
true );
377 void showColorDialog();
379 void updateSizeHint();
Abstract interface for generating an expression context.