Commit 46bd5924 authored by Michael Abrahams's avatar Michael Abrahams

Don't make lots of native windows

Summary:
I'm not sure whether this has any material impact.

http://blog.qt.io/blog/2007/08/09/qt-invaded-by-aliens-the-end-of-all-flicker/

Reviewers: rempt, #krita:_next

Differential Revision: https://phabricator.kde.org/D635
parent 3223500f
......@@ -27,7 +27,7 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2">
<widget class="KImageFrame" name="hist" native="true">
<widget class="KImageFrame" name="hist">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
......@@ -129,7 +129,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="shift" native="true">
<widget class="QSpinBox" name="shift">
<property name="minimum" stdset="0">
<number>0</number>
</property>
......@@ -142,7 +142,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="cutoff" native="true">
<widget class="QSpinBox" name="cutoff">
<property name="value" stdset="0">
<number>255</number>
</property>
......@@ -207,7 +207,7 @@
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QSpinBox" name="seed1" native="true">
<widget class="QSpinBox" name="seed1">
<property name="minimum" stdset="0">
<number>0</number>
</property>
......@@ -217,7 +217,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="seed2" native="true">
<widget class="QSpinBox" name="seed2">
<property name="minimum" stdset="0">
<number>0</number>
</property>
......@@ -227,7 +227,7 @@
</widget>
</item>
<item row="1" column="0">
<widget class="QSpinBox" name="seed3" native="true">
<widget class="QSpinBox" name="seed3">
<property name="minimum" stdset="0">
<number>0</number>
</property>
......@@ -237,7 +237,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="seed4" native="true">
<widget class="QSpinBox" name="seed4">
<property name="minimum" stdset="0">
<number>0</number>
</property>
......@@ -250,7 +250,7 @@
</widget>
</item>
<item row="0" column="1" rowspan="4">
<widget class="KImageFrame" name="view" native="true">
<widget class="KImageFrame" name="view">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
<horstretch>0</horstretch>
......
......@@ -187,7 +187,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="editorWidget" native="true"/>
<widget class="QWidget" name="editorWidget"/>
</widget>
</item>
</layout>
......
......@@ -15,7 +15,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="KisColorSpaceSelector" name="colorSpaceSelector" native="true"/>
<widget class="KisColorSpaceSelector" name="colorSpaceSelector"/>
</item>
<item>
<widget class="QGroupBox" name="grpIntent">
......
......@@ -297,7 +297,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_10">
<item>
<widget class="KisColorSpaceSelector" name="colorSpace" native="true">
<widget class="KisColorSpaceSelector" name="colorSpace">
<property name="enabled">
<bool>false</bool>
</property>
......@@ -1201,7 +1201,7 @@
</widget>
</item>
<item>
<widget class="QWidget" name="colorSliderOptions" native="true">
<widget class="QWidget" name="colorSliderOptions">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
......
......@@ -54,7 +54,7 @@
</layout>
</item>
<item>
<widget class="KisDoubleSliderSpinBox" name="doubleTintFactor" native="true">
<widget class="KisDoubleSliderSpinBox" name="doubleTintFactor">
<property name="minimumSize">
<size>
<width>50</width>
......
......@@ -52,7 +52,7 @@
</layout>
</item>
<item>
<widget class="KisColorSelector" name="colorSelector" native="true">
<widget class="KisColorSelector" name="colorSelector">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
......
......@@ -83,7 +83,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="KisSliderSpinBox" name="numPiecesSlider" native="true">
<widget class="KisSliderSpinBox" name="numPiecesSlider">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
......@@ -103,7 +103,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="KisSliderSpinBox" name="numRingsSlider" native="true">
<widget class="KisSliderSpinBox" name="numRingsSlider">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
......@@ -123,7 +123,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KisSliderSpinBox" name="numLightPiecesSlider" native="true">
<widget class="KisSliderSpinBox" name="numLightPiecesSlider">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
......
......@@ -94,7 +94,7 @@
</widget>
</item>
<item>
<widget class="KisDoubleSliderSpinBox" name="doubleOpacity" native="true">
<widget class="KisDoubleSliderSpinBox" name="doubleOpacity">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum">
<horstretch>0</horstretch>
......@@ -114,7 +114,7 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="KisNodeView" name="listLayers" native="true">
<widget class="KisNodeView" name="listLayers">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
<horstretch>0</horstretch>
......
......@@ -97,7 +97,7 @@
</layout>
</item>
<item>
<widget class="KisSliderSpinBox" name="zoomSlider" native="true"/>
<widget class="KisSliderSpinBox" name="zoomSlider"/>
</item>
</layout>
</widget>
......
......@@ -148,7 +148,7 @@
</widget>
</item>
<item row="7" column="1">
<widget class="KisDoubleWidget" name="m_exposureDoubleWidget" native="true">
<widget class="KisDoubleWidget" name="m_exposureDoubleWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
......@@ -243,7 +243,7 @@
</widget>
</item>
<item row="8" column="1">
<widget class="KisDoubleWidget" name="m_gammaDoubleWidget" native="true">
<widget class="KisDoubleWidget" name="m_gammaDoubleWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
......
......@@ -49,7 +49,7 @@
</widget>
</item>
<item row="1" column="0">
<widget class="KisPopupButton" name="chooserButton" native="true"/>
<widget class="KisPopupButton" name="chooserButton"/>
</item>
</layout>
</widget>
......
......@@ -14,7 +14,7 @@
<item row="0" column="0">
<layout class="QGridLayout" name="m_filterConfigLayout" columnstretch="1,0,0,0">
<item row="0" column="0" rowspan="3">
<widget class="KisGmicInputOutputWidget" name="m_inputOutputOptions" native="true"/>
<widget class="KisGmicInputOutputWidget" name="m_inputOutputOptions"/>
</item>
<item row="0" column="1">
<widget class="QTreeView" name="m_filterTree">
......
......@@ -12,7 +12,7 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2">
<widget class="KisFilterPreviewWidget" name="previewViewport" native="true">
<widget class="KisFilterPreviewWidget" name="previewViewport">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
......
......@@ -94,7 +94,7 @@
</widget>
</item>
<item>
<widget class="KisHistogramView" name="m_histogramView" native="true">
<widget class="KisHistogramView" name="m_histogramView">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
......
......@@ -47,7 +47,7 @@
<widget class="QComboBox" name="heightUnit"/>
</item>
<item row="0" column="4" rowspan="2">
<widget class="KoAspectButton" name="aspectRatioBtn" native="true"/>
<widget class="KoAspectButton" name="aspectRatioBtn"/>
</item>
<item row="1" column="2">
<widget class="QSpinBox" name="newHeight">
......@@ -331,7 +331,7 @@
<number>2</number>
</property>
<item>
<widget class="KCanvasPreview" name="canvasPreview" native="true"/>
<widget class="KCanvasPreview" name="canvasPreview"/>
</item>
</layout>
</widget>
......
......@@ -107,7 +107,7 @@
</widget>
</item>
<item row="0" column="4" rowspan="2">
<widget class="KoAspectButton" name="pixelAspectRatioBtn" native="true">
<widget class="KoAspectButton" name="pixelAspectRatioBtn">
<property name="text" stdset="0">
<string/>
</property>
......@@ -178,7 +178,7 @@
</spacer>
</item>
<item row="2" column="2" colspan="2">
<widget class="KisCmbIDList" name="pixelFilterCmb" native="true"/>
<widget class="KisCmbIDList" name="pixelFilterCmb"/>
</item>
</layout>
</widget>
......@@ -266,7 +266,7 @@
</widget>
</item>
<item row="0" column="4" rowspan="2">
<widget class="KoAspectButton" name="printAspectRatioBtn" native="true">
<widget class="KoAspectButton" name="printAspectRatioBtn">
<property name="text" stdset="0">
<string/>
</property>
......
......@@ -24,7 +24,7 @@
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="4" rowspan="2">
<widget class="KoAspectButton" name="aspectRatioBtn" native="true">
<widget class="KoAspectButton" name="aspectRatioBtn">
<property name="text" stdset="0">
<string/>
</property>
......@@ -136,7 +136,7 @@
</widget>
</item>
<item row="2" column="2" colspan="2">
<widget class="KisCmbIDList" name="filterCmb" native="true"/>
<widget class="KisCmbIDList" name="filterCmb"/>
</item>
<item row="2" column="1">
<widget class="QLabel" name="lblFilter">
......
......@@ -77,7 +77,7 @@
</widget>
</item>
<item row="6" column="1">
<widget class="KisSliderSpinBox" name="intFuzziness" native="true"/>
<widget class="KisSliderSpinBox" name="intFuzziness"/>
</item>
<item row="5" column="0">
<widget class="QCheckBox" name="chkDisregardOpacity">
......
......@@ -19,7 +19,7 @@
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QWidget" name="bundleOverviewContainer" native="true">
<widget class="QWidget" name="bundleOverviewContainer">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
......@@ -261,7 +261,7 @@
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QWidget" name="selectedBundleInfoContainer" native="true">
<widget class="QWidget" name="selectedBundleInfoContainer">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>10</horstretch>
......
......@@ -67,7 +67,7 @@
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QWidget" name="wdgAvailablePage" native="true">
<widget class="QWidget" name="wdgAvailablePage">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
......@@ -159,7 +159,7 @@
</layout>
</item>
<item>
<widget class="QWidget" name="wdgSelectedPage" native="true">
<widget class="QWidget" name="wdgSelectedPage">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
......
......@@ -25,7 +25,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="shearAngleX" native="true">
<widget class="QSpinBox" name="shearAngleX">
<property name="minimum" stdset="0">
<number>-45</number>
</property>
......@@ -48,7 +48,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="shearAngleY" native="true">
<widget class="QSpinBox" name="shearAngleY">
<property name="maximumSize">
<size>
<width>32767</width>
......
......@@ -17,7 +17,7 @@
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="KisDoubleSliderSpinBox" name="horizontalRadius" native="true"/>
<widget class="KisDoubleSliderSpinBox" name="horizontalRadius"/>
</item>
<item row="0" column="2" rowspan="2">
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="1,0,1">
......@@ -38,7 +38,7 @@
</spacer>
</item>
<item>
<widget class="KoAspectButton" name="aspectButton" native="true">
<widget class="KoAspectButton" name="aspectButton">
<property name="minimumSize">
<size>
<width>2</width>
......@@ -96,7 +96,7 @@
</spacer>
</item>
<item row="1" column="1">
<widget class="KisDoubleSliderSpinBox" name="verticalRadius" native="true">
<widget class="KisDoubleSliderSpinBox" name="verticalRadius">
<zorder>aspectButton</zorder>
</widget>
</item>
......
......@@ -168,7 +168,7 @@
</spacer>
</item>
<item row="0" column="2" rowspan="2">
<widget class="KoAspectButton" name="aspectButton" native="true"/>
<widget class="KoAspectButton" name="aspectButton"/>
</item>
</layout>
</widget>
......
......@@ -63,7 +63,7 @@
</layout>
</item>
<item>
<widget class="KoTriangleColorSelector" name="colorSelector" native="true">
<widget class="KoTriangleColorSelector" name="colorSelector">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
......@@ -139,7 +139,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="KisDoubleSliderSpinBox" name="intThreshold" native="true">
<widget class="KisDoubleSliderSpinBox" name="intThreshold">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
......
......@@ -153,7 +153,7 @@
<number>0</number>
</property>
<item>
<widget class="KisCurveWidget" name="curveWidget" native="true">
<widget class="KisCurveWidget" name="curveWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
......
......@@ -27,7 +27,7 @@
<number>5</number>
</property>
<item row="2" column="1">
<widget class="KisDoubleSliderSpinBox" name="hue" native="true">
<widget class="KisDoubleSliderSpinBox" name="hue">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
......@@ -92,7 +92,7 @@
</widget>
</item>
<item row="4" column="1">
<widget class="KisDoubleSliderSpinBox" name="value" native="true">
<widget class="KisDoubleSliderSpinBox" name="value">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
......@@ -167,7 +167,7 @@
</widget>
</item>
<item row="3" column="1">
<widget class="KisDoubleSliderSpinBox" name="saturation" native="true">
<widget class="KisDoubleSliderSpinBox" name="saturation">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
......
......@@ -99,7 +99,7 @@
<number>0</number>
</property>
<item>
<widget class="KisCurveWidget" name="curveWidget" native="true">
<widget class="KisCurveWidget" name="curveWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
......
......@@ -40,7 +40,7 @@
</widget>
</item>
<item>
<widget class="KisUrlRequester" name="fileNameURLRequester" native="true"/>
<widget class="KisUrlRequester" name="fileNameURLRequester"/>
</item>
<item>
<layout class="QHBoxLayout">
......
......@@ -24,7 +24,7 @@
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="0">
<widget class="QWidget" name="colorsBox" native="true">
<widget class="QWidget" name="colorsBox">
<property name="minimumSize">
<size>
<width>20</width>
......@@ -107,7 +107,7 @@
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QWidget" name="widget" native="true">
<widget class="QWidget" name="widget">
<property name="minimumSize">
<size>
<width>80</width>
......
......@@ -108,7 +108,7 @@
</layout>
</item>
<item>
<widget class="KisGradientSlider" name="ingradient" native="true">
<widget class="KisGradientSlider" name="ingradient">
<property name="minimumSize">
<size>
<width>256</width>
......@@ -219,7 +219,7 @@
</widget>
</item>
<item>
<widget class="KisGradientSlider" name="outgradient" native="true">
<widget class="KisGradientSlider" name="outgradient">
<property name="minimumSize">
<size>
<width>256</width>
......
......@@ -113,7 +113,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KisDoubleSliderSpinBox" name="specularReflectivityKisDoubleSliderSpinBox" native="true">
<widget class="KisDoubleSliderSpinBox" name="specularReflectivityKisDoubleSliderSpinBox">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>1</horstretch>
......@@ -145,7 +145,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="KisSliderSpinBox" name="shinynessExponentKisSliderSpinBox" native="true">
<widget class="KisSliderSpinBox" name="shinynessExponentKisSliderSpinBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>1</horstretch>
......@@ -226,7 +226,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KisDoubleSliderSpinBox" name="diffuseReflectivityKisDoubleSliderSpinBox" native="true">
<widget class="KisDoubleSliderSpinBox" name="diffuseReflectivityKisDoubleSliderSpinBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>1</horstretch>
......@@ -304,7 +304,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KisDoubleSliderSpinBox" name="ambientReflectivityKisDoubleSliderSpinBox" native="true">
<widget class="KisDoubleSliderSpinBox" name="ambientReflectivityKisDoubleSliderSpinBox">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>1</horstretch>
......
......@@ -41,7 +41,7 @@
<number>20</number>
</property>
<item row="0" column="1">
<widget class="KisDoubleSliderSpinBox" name="qualityLevel" native="true">
<widget class="KisDoubleSliderSpinBox" name="qualityLevel">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
......@@ -145,7 +145,7 @@
<number>20</number>
</property>
<item row="0" column="1">
<widget class="KisDoubleSliderSpinBox" name="smoothLevel" native="true">
<widget class="KisDoubleSliderSpinBox" name="smoothLevel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
......
......@@ -202,7 +202,7 @@
</layout>
</item>
<item>
<widget class="KoAspectButton" name="pixelAspectRatioBtn" native="true">
<widget class="KoAspectButton" name="pixelAspectRatioBtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
......
......@@ -52,7 +52,7 @@
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="KisDoubleSliderSpinBox" name="compressionLevel" native="true">
<widget class="KisDoubleSliderSpinBox" name="compressionLevel">
<property name="toolTip">
<string>Note: the compression level does not change the quality of the result</string>
</property>
......
......@@ -19,7 +19,7 @@
<widget class="QWidget" name="layoutWidget">
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="KDcrawIface::DcrawSettingsWidget" name="rawSettings" native="true"/>
<widget class="KDcrawIface::DcrawSettingsWidget" name="rawSettings"/>
</item>
<item row="2" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
......
......@@ -55,7 +55,7 @@
<widget class="KColorButton" name="bnColor"/>
</item>
<item row="0" column="1">
<widget class="KisPatternChooser" name="patternChooser" native="true">
<widget class="KisPatternChooser" name="patternChooser">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
......
......@@ -51,7 +51,7 @@
</widget>
</item>
<item>
<widget class="KisSliderSpinBox" name="radiusSpinBox" native="true"/>
<widget class="KisSliderSpinBox" name="radiusSpinBox"/>
</item>
</layout>
</item>
......