48 Q_PROPERTY( QString dialogTitle READ dialogTitle WRITE setDialogTitle )
59 QSize minimumSizeHint()
const override;
60 QSize sizeHint()
const override;
80 void setDialogTitle(
const QString &title );
86 QString dialogTitle()
const;
104 SymbolType *symbolCastToType =
dynamic_cast<SymbolType *
>( tmpSymbol );
106 if ( symbolCastToType )
108 return symbolCastToType->
clone();
191 bool showNull()
const;
215 void setColor(
const QColor &color );
250 void setShowNull(
bool showNull );
270 void setToDefaultSymbol();
283 void changeEvent( QEvent *e )
override;
284 void showEvent( QShowEvent *e )
override;
285 void resizeEvent( QResizeEvent *event )
override;
288 void mousePressEvent( QMouseEvent *e )
override;
290 void mouseMoveEvent( QMouseEvent *e )
override;
291 void mouseReleaseEvent( QMouseEvent *e )
override;
292 void keyPressEvent( QKeyEvent *e )
override;
294 void dragEnterEvent( QDragEnterEvent *e )
override;
297 void dragLeaveEvent( QDragLeaveEvent *e )
override;
300 void dropEvent( QDropEvent *e )
override;
302 void wheelEvent( QWheelEvent *event )
override;
306 void showSettingsDialog();
314 void addRecentColor(
const QColor &color );
319 void activatePicker();
325 QString mDialogTitle;
332 QPoint mDragStartPosition;
334 QMenu *mMenu =
nullptr;
336 QPointer< QgsVectorLayer > mLayer;
340 std::unique_ptr< QgsSymbol > mSymbol;
344 bool mPickingColor =
false;
346 bool mShowNull =
false;
348 std::unique_ptr< QgsSymbol > mDefaultSymbol;
354 void updatePreview(
const QColor &color = QColor(),
QgsSymbol *tempSymbol =
nullptr );
365 bool colorFromMimeData(
const QMimeData *mimeData, QColor &resultColor,
bool &hasAlpha );
370 QPixmap createColorIcon(
const QColor &color )
const;
378 void stopPicking( QPoint eventPos,
bool samplingColor =
true );
380 void showColorDialog();
382 void updateSizeHint();
Abstract interface for generating an expression context.