summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/edit3d/backgroundcolorselection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/edit3d/backgroundcolorselection.h')
-rw-r--r--src/plugins/qmldesigner/components/edit3d/backgroundcolorselection.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/plugins/qmldesigner/components/edit3d/backgroundcolorselection.h b/src/plugins/qmldesigner/components/edit3d/backgroundcolorselection.h
index d8832f40fd..f7df55b8e3 100644
--- a/src/plugins/qmldesigner/components/edit3d/backgroundcolorselection.h
+++ b/src/plugins/qmldesigner/components/edit3d/backgroundcolorselection.h
@@ -25,9 +25,13 @@
#pragma once
-#include <QColorDialog>
+#include <QByteArray>
+#include <view3dactioncommand.h>
+
+QT_FORWARD_DECLARE_CLASS(QColorDialog)
namespace QmlDesigner {
+
class BackgroundColorSelection : public QObject
{
Q_OBJECT
@@ -37,10 +41,13 @@ public:
: QObject{parent}
{}
- static void showBackgroundColorSelectionWidget(QWidget *parent);
+ static void showBackgroundColorSelectionWidget(QWidget *parent, const QByteArray &key,
+ View3DActionCommand::Type cmdType);
private:
- static QColorDialog *createDialog(QWidget *parent);
+ static QColorDialog *createColorDialog(QWidget *parent, const QByteArray &key,
+ View3DActionCommand::Type cmdType);
+
inline static QColorDialog *m_dialog = nullptr;
};