Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Dynamically updated hex color input value

Luna Lovecraftc400bba56757
diff --git a/libs/widgets/kis_color_input.cpp b/libs/widgets/kis_color_input.cpp
index 92b1090e27..7e981ec790 100644
--- a/libs/widgets/kis_color_input.cpp
+++ b/libs/widgets/kis_color_input.cpp
@@ -347,6 +347,8 @@ KisHexColorInput::KisHexColorInput(QWidget* parent, KoColor* color, KoColorDispl
m_layout->addWidget(m_colorPreview);
}
+ connect(m_input, SIGNAL(textChanged(const QString&)), SLOT(setValue()));
+
m_layout->addWidget(m_input);
}