aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2018-03-23 13:22:58 +0900
committerTasuku Suzuki <tasuku.suzuki@qt.io>2018-03-26 23:00:58 +0000
commit4df12d1ae59da65c1338b1e3b894e8f88beded0f (patch)
tree7451072941c1ae4df8c205276025f9b79e4f9ea0
parent8ea6c34606d4afc0b408debd939d5e6d651adf05 (diff)
Fix current color is not set first time in ColorDialog
Task-number: QT3DS-1363 Change-Id: Id464f3373bdc486060dcd1e351ffe29c55d85696 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r--src/imports/platform/qquickplatformcolordialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/platform/qquickplatformcolordialog.cpp b/src/imports/platform/qquickplatformcolordialog.cpp
index 55957896..9b0283d0 100644
--- a/src/imports/platform/qquickplatformcolordialog.cpp
+++ b/src/imports/platform/qquickplatformcolordialog.cpp
@@ -185,6 +185,7 @@ void QQuickPlatformColorDialog::onCreate(QPlatformDialogHelper *dialog)
{
if (QPlatformColorDialogHelper *colorDialog = qobject_cast<QPlatformColorDialogHelper *>(dialog)) {
connect(colorDialog, &QPlatformColorDialogHelper::currentColorChanged, this, &QQuickPlatformColorDialog::currentColorChanged);
+ colorDialog->setCurrentColor(m_currentColor);
colorDialog->setOptions(m_options);
}
}