Dynamic text field editor : move kcolorbutton from ui file to cpp file

Kcolorbutton is not available in Qt6 for now.
We move it from the ui file to the cpp file for choose at compilation if
qet must use kcolorbutton or not.
This commit is contained in:
joshua
2021-01-07 18:56:25 +01:00
parent 58b7097748
commit 0a616088ea
3 changed files with 33 additions and 15 deletions

View File

@@ -13,7 +13,7 @@
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<layout class="QGridLayout" name="m_main_grid_layout">
<item row="2" column="1" colspan="2">
<widget class="QComboBox" name="m_text_from_cb">
<item>
@@ -206,18 +206,8 @@
</property>
</widget>
</item>
<item row="7" column="1" colspan="2">
<widget class="KColorButton" name="m_color_kpb"/>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KColorButton</class>
<extends>QPushButton</extends>
<header>kcolorbutton.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>