diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2021-11-04 16:34:18 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2021-11-05 09:04:27 +0100 |
commit | 6ab73adf460794c6b218da4bfd67e342fe83df8b (patch) | |
tree | 67a4953d7de6be4dc5d8d813e16c5c6c64960fb8 /src/shared/qtgradienteditor/qtcolorbutton.h | |
parent | fef09af893f0d6cc473c93f54ab3e42d10508001 (diff) |
Gradient editor: replace string-based connections with typed connections
This fixes some already broken connection due to removal of some
signals in Qt 6.
Pick-to: 6.2
Change-Id: I7dbe44c3d9307539530cd74c1f1658e2a58954c7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/shared/qtgradienteditor/qtcolorbutton.h')
-rw-r--r-- | src/shared/qtgradienteditor/qtcolorbutton.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/qtgradienteditor/qtcolorbutton.h b/src/shared/qtgradienteditor/qtcolorbutton.h index 892b7d465..ae7095bef 100644 --- a/src/shared/qtgradienteditor/qtcolorbutton.h +++ b/src/shared/qtgradienteditor/qtcolorbutton.h @@ -58,11 +58,11 @@ public: QColor color() const; public slots: - void setColor(const QColor &color); signals: void colorChanged(const QColor &color); + protected: void paintEvent(QPaintEvent *event) override; void mousePressEvent(QMouseEvent *event) override; @@ -72,11 +72,11 @@ protected: void dragLeaveEvent(QDragLeaveEvent *event) override; void dropEvent(QDropEvent *event) override; #endif + private: QScopedPointer<class QtColorButtonPrivate> d_ptr; Q_DECLARE_PRIVATE(QtColorButton) Q_DISABLE_COPY_MOVE(QtColorButton) - Q_PRIVATE_SLOT(d_func(), void slotEditColor()) }; QT_END_NAMESPACE |