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++
Fix layout of display settings on Qt5
Dmitry Kazakov1fc39e8fa586
diff --git a/libs/ui/forms/wdgdisplaysettings.ui b/libs/ui/forms/wdgdisplaysettings.uiindex bb90c70b1c..3803a3cc83 100644--- a/libs/ui/forms/wdgdisplaysettings.ui+++ b/libs/ui/forms/wdgdisplaysettings.ui@@ -60,8 +60,8 @@<property name="checkable"><bool>true</bool></property>- <layout class="QGridLayout">- <item row="1" column="0">+ <layout class="QFormLayout" name="formLayout_4">+ <item row="0" column="0"><widget class="QLabel" name="label_6"><property name="text"><string>Current Renderer:</string>@@ -71,69 +71,67 @@</property></widget></item>- <item row="8" column="1">- <widget class="KisWarningBlock" name="grpOpenGLWarnings">- <property name="title">- <string/>+ <item row="0" column="1">+ <widget class="QLabel" name="lblCurrentRenderer">+ <property name="text">+ <string>Unknown</string></property></widget></item>- <item row="9" column="0" colspan="2">- <spacer name="verticalSpacer_3">- <property name="orientation">- <enum>Qt::Orientation::Vertical</enum>+ <item row="1" column="0">+ <widget class="QLabel" name="lblPreferredRenderer">+ <property name="sizePolicy">+ <sizepolicy hsizetype="Fixed" vsizetype="Minimum">+ <horstretch>0</horstretch>+ <verstretch>0</verstretch>+ </sizepolicy></property>- <property name="sizeHint" stdset="0">- <size>- <width>20</width>- <height>40</height>- </size>+ <property name="text">+ <string>Preferred Renderer (needs restart):</string></property>- </spacer>+ <property name="wordWrap">+ <bool>true</bool>+ </property>+ </widget></item>- <item row="5" column="1">- <widget class="QComboBox" name="cmbAssistantsDrawMode">+ <item row="1" column="1">+ <widget class="QComboBox" name="cmbPreferredRenderer"><property name="sizePolicy"><sizepolicy hsizetype="Preferred" vsizetype="Fixed"><horstretch>0</horstretch><verstretch>0</verstretch></sizepolicy></property>- <property name="toolTip">- <string><html><head/><body><p>Can be used to troubleshoot performance or artifacting problems with drawing assistants.- </p><p>Changing the pixmap cache size requires a restart.</p></body></html></string>- </property>- <property name="currentIndex">- <number>0</number>+ </widget>+ </item>+ <item row="2" column="0">+ <widget class="QLabel" name="lblPreferredXcbGlApi">+ <property name="text">+ <string>Preferred openGL interface+(needs restart):</string></property>- <item>- <property name="text">- <string>Direct (Recommended)</string>- </property>- </item>- <item>- <property name="text">- <string>Pixmap Cache</string>- </property>- </item>- <item>- <property name="text">- <string>Large Pixmap Cache</string>- </property>- </item></widget></item><item row="2" column="1">- <widget class="QComboBox" name="cmbPreferredRenderer">+ <widget class="QComboBox" name="cmbPreferredXcbGlApi"/>+ </item>+ <item row="3" column="0">+ <widget class="QLabel" name="label"><property name="sizePolicy">- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">+ <sizepolicy hsizetype="Minimum" vsizetype="Minimum"><horstretch>0</horstretch><verstretch>0</verstretch></sizepolicy></property>+ <property name="text">+ <string>Scaling Mode:</string>+ </property>+ <property name="wordWrap">+ <bool>true</bool>+ </property></widget></item>- <item row="4" column="1">+ <item row="3" column="1"><widget class="QComboBox" name="cmbFilterMode"><property name="sizePolicy"><sizepolicy hsizetype="Preferred" vsizetype="Fixed">@@ -166,31 +164,24 @@</item></widget></item>- <item row="1" column="1">- <widget class="QLabel" name="lblCurrentRenderer">- <property name="text">- <string>Unknown</string>- </property>- </widget>- </item>- <item row="2" column="0">- <widget class="QLabel" name="lblPreferredRenderer">+ <item row="4" column="0">+ <widget class="QLabel" name="lblAssistantsDrawMode"><property name="sizePolicy">- <sizepolicy hsizetype="Fixed" vsizetype="Minimum">+ <sizepolicy hsizetype="Minimum" vsizetype="Minimum"><horstretch>0</horstretch><verstretch>0</verstretch></sizepolicy></property><property name="text">- <string>Preferred Renderer (needs restart):</string>+ <string>Assistants Mode:</string></property><property name="wordWrap"><bool>true</bool></property></widget></item>- <item row="7" column="1">- <widget class="QCheckBox" name="chkUseTextureBuffer">+ <item row="4" column="1">+ <widget class="QComboBox" name="cmbAssistantsDrawMode"><property name="sizePolicy"><sizepolicy hsizetype="Preferred" vsizetype="Fixed"><horstretch>0</horstretch>@@ -198,55 +189,64 @@</sizepolicy></property><property name="toolTip">- <string><html><head/><body><p>Use Texture Buffering. This can be faster on some GPU/Driver combinations (like Intel) or broken on some others (like AMD/Radeon).</p></body></html></string>+ <string><html><head/><body><p>Can be used to troubleshoot performance or artifacting problems with drawing assistants.+ </p><p>Changing the pixmap cache size requires a restart.</p></body></html></string></property>- <property name="text">- <string>Use texture buffer</string>+ <property name="currentIndex">+ <number>0</number></property>+ <item>+ <property name="text">+ <string>Direct (Recommended)</string>+ </property>+ </item>+ <item>+ <property name="text">+ <string>Pixmap Cache</string>+ </property>+ </item>+ <item>+ <property name="text">+ <string>Large Pixmap Cache</string>+ </property>+ </item></widget></item>- <item row="4" column="0">- <widget class="QLabel" name="label">+ <item row="5" column="1">+ <widget class="QCheckBox" name="chkUseTextureBuffer"><property name="sizePolicy">- <sizepolicy hsizetype="Minimum" vsizetype="Minimum">+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed"><horstretch>0</horstretch><verstretch>0</verstretch></sizepolicy></property>- <property name="text">- <string>Scaling Mode:</string>- </property>- <property name="wordWrap">- <bool>true</bool>- </property>- </widget>- </item>- <item row="5" column="0">- <widget class="QLabel" name="lblAssistantsDrawMode">- <property name="sizePolicy">- <sizepolicy hsizetype="Minimum" vsizetype="Minimum">- <horstretch>0</horstretch>- <verstretch>0</verstretch>- </sizepolicy>+ <property name="toolTip">+ <string><html><head/><body><p>Use Texture Buffering. This can be faster on some GPU/Driver combinations (like Intel) or broken on some others (like AMD/Radeon).</p></body></html></string></property><property name="text">- <string>Assistants Mode:</string>- </property>- <property name="wordWrap">- <bool>true</bool>+ <string>Use texture buffer</string></property></widget></item>- <item row="3" column="0">- <widget class="QLabel" name="lblPreferredXcbGlApi">- <property name="text">- <string>Preferred openGL interface-(needs restart):</string>+ <item row="6" column="1">+ <widget class="KisWarningBlock" name="grpOpenGLWarnings">+ <property name="title">+ <string/></property></widget></item>- <item row="3" column="1">- <widget class="QComboBox" name="cmbPreferredXcbGlApi"/>+ <item row="7" column="0" colspan="2">+ <spacer name="verticalSpacer">+ <property name="orientation">+ <enum>Qt::Orientation::Vertical</enum>+ </property>+ <property name="sizeHint" stdset="0">+ <size>+ <width>20</width>+ <height>40</height>+ </size>+ </property>+ </spacer></item></layout></widget>