##// END OF EJS Templates
Use empty rect for gl series instead of small dummy rect...
Use empty rect for gl series instead of small dummy rect Empty rect triggers the changed signal just as well, and has less change of triggering other updates on the underlying scene. Change-Id: Ifa6a477c14ca74a178657464a1da0f765a880412 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>

File last commit:

r2810:2db41b8cb90b
r2830:1757b2dc576a
Show More
mainwindow.ui
983 lines | 26.9 KiB | text/plain | TextLexer
Miikka Heikkinen
Add Polar chart support...
r2483 <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
Miikka Heikkinen
Add API to specify plot area background....
r2498 <width>1193</width>
Titta Heikkala
Added minor ticks to value axis...
r2795 <height>1004</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="ChartView" name="chartView"/>
</item>
<item>
<widget class="QGroupBox" name="settingsBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="title">
<string>Settings</string>
</property>
<widget class="QComboBox" name="angularShadesComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>313</y>
<width>187</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<item>
<property name="text">
<string>No angular shades</string>
</property>
</item>
<item>
<property name="text">
<string>Gray angular shades</string>
</property>
</item>
<item>
<property name="text">
<string>Yellow ang. shades + custom pen</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="radialShadesComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>339</y>
<width>175</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<item>
<property name="text">
<string>No radial shades</string>
</property>
</item>
<item>
<property name="text">
<string>Green radial shades</string>
</property>
</item>
<item>
<property name="text">
<string>Blue rad. shades + custom pen</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="animationsComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>471</y>
<width>104</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<item>
<property name="text">
<string>No animations</string>
</property>
</item>
<item>
<property name="text">
<string>Series animation</string>
</property>
</item>
<item>
<property name="text">
<string>Grid animation</string>
</property>
</item>
<item>
<property name="text">
<string>All animations</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="labelComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>445</y>
<width>134</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<item>
<property name="text">
<string>No labels</string>
</property>
</item>
<item>
<property name="text">
<string>Black label</string>
</property>
</item>
<item>
<property name="text">
<string>White label + blue pen</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="titleComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>551</y>
<width>130</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex">
<number>3</number>
</property>
<item>
<property name="text">
<string>Invisible empty title</string>
</property>
</item>
<item>
<property name="text">
<string>Visible empty title</string>
</property>
</item>
<item>
<property name="text">
<string>Invisible title</string>
</property>
</item>
<item>
<property name="text">
<string>Black title</string>
</property>
</item>
<item>
<property name="text">
<string>White title + blue pen</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="gridComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>577</y>
<width>104</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<item>
<property name="text">
<string>Invisible grid</string>
</property>
</item>
<item>
<property name="text">
<string>Black grid</string>
</property>
</item>
<item>
<property name="text">
<string>Custom grid pen</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="arrowComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>603</y>
<width>114</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<item>
<property name="text">
<string>Invisible arrow</string>
</property>
</item>
<item>
<property name="text">
<string>Black arrow</string>
</property>
</item>
<item>
<property name="text">
<string>Custom arrow pen</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="angularAxisComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>23</y>
<width>134</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<item>
<property name="text">
<string>No Angular Axis</string>
</property>
</item>
<item>
<property name="text">
<string>Angular Value Axis</string>
</property>
</item>
<item>
<property name="text">
<string>Angular Log Axis</string>
</property>
</item>
<item>
<property name="text">
<string>Angular DateTime Axis</string>
</property>
</item>
<item>
<property name="text">
<string>Angular Category Axis</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="radialAxisComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>49</y>
<width>126</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<item>
<property name="text">
<string>No Radial Axis</string>
</property>
</item>
<item>
<property name="text">
<string>Radial Value Axis</string>
</property>
</item>
<item>
<property name="text">
<string>Radial Log Axis</string>
</property>
</item>
<item>
<property name="text">
<string>Radial DateTime Axis</string>
</property>
</item>
<item>
<property name="text">
<string>Radial Category Axis</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="themeComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added grid color property for value axis...
r2810 <y>810</y>
Titta Heikkala
Added minor ticks to value axis...
r2795 <width>131</width>
<height>20</height>
Miikka Heikkinen
Add Polar chart support...
r2483 </rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>Theme: Light</string>
</property>
</item>
<item>
<property name="text">
<string>Theme: Blue Cerulean</string>
</property>
</item>
<item>
<property name="text">
<string>Theme: Dark</string>
</property>
</item>
<item>
<property name="text">
<string>Theme: Brown Sand</string>
</property>
</item>
<item>
<property name="text">
<string>Theme: Blue Ncs</string>
</property>
</item>
<item>
<property name="text">
<string>Theme: High Contrast</string>
</property>
</item>
<item>
<property name="text">
<string>Theme: Blue Icy</string>
</property>
</item>
Titta Heikkala
Add the new Qt template to demos and tests...
r2631 <item>
<property name="text">
<string>Theme: Qt</string>
</property>
</item>
Miikka Heikkinen
Add Polar chart support...
r2483 </widget>
<widget class="QLabel" name="hoverLabel">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added grid color property for value axis...
r2810 <y>830</y>
Titta Heikkala
Added minor ticks to value axis...
r2795 <width>117</width>
Miikka Heikkinen
Add Polar chart support...
r2483 <height>16</height>
</rect>
</property>
<property name="text">
<string>Hover coordinates here!</string>
</property>
</widget>
Miikka Heikkinen
Add API to specify plot area background....
r2498 <widget class="QComboBox" name="backgroundComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>877</y>
<width>195</width>
<height>20</height>
Miikka Heikkinen
Add API to specify plot area background....
r2498 </rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>Background: White</string>
</property>
</item>
<item>
<property name="text">
<string>Background: Blue</string>
</property>
</item>
<item>
<property name="text">
<string>Background: Yellow + Black Border</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="plotAreaComboBox">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added minor ticks to value axis...
r2795 <y>903</y>
<width>165</width>
<height>20</height>
Miikka Heikkinen
Add API to specify plot area background....
r2498 </rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>PlotArea: Transparent</string>
</property>
</item>
<item>
<property name="text">
<string>PlotArea: Magenta</string>
</property>
</item>
<item>
<property name="text">
<string>PlotArea: Gray + Red Border</string>
</property>
</item>
</widget>
Titta Heikkala
Added minor ticks to value axis...
r2795 <widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>207</y>
<width>185</width>
<height>100</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="radialMinSpin">
<property name="decimals">
<number>5</number>
</property>
<property name="minimum">
<double>-999999999.000000000000000</double>
</property>
<property name="maximum">
<double>999999999.000000000000000</double>
</property>
<property name="singleStep">
<double>10.000000000000000</double>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Radial max</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Radial min</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Angular max</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="angularMinSpin">
<property name="decimals">
<number>5</number>
</property>
<property name="minimum">
<double>-999999999.000000000000000</double>
</property>
<property name="maximum">
<double>999999999.000000000000000</double>
</property>
<property name="singleStep">
<double>10.000000000000000</double>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Angular min</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="radialMaxSpin">
<property name="decimals">
<number>5</number>
</property>
<property name="minimum">
<double>-999999999.000000000000000</double>
</property>
<property name="maximum">
<double>999999999.000000000000000</double>
</property>
<property name="singleStep">
<double>10.000000000000000</double>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="angularMaxSpin">
<property name="decimals">
<number>5</number>
</property>
<property name="minimum">
<double>-999999999.000000000000000</double>
</property>
<property name="maximum">
<double>999999999.000000000000000</double>
</property>
<property name="singleStep">
<double>10.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>365</y>
<width>210</width>
<height>74</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label_13">
<property name="text">
<string>Label format</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="labelFormatEdit"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_14">
<property name="text">
<string>Label font size</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="labelFontSizeSpin">
<property name="minimum">
<number>-100000</number>
</property>
<property name="maximum">
<number>100000</number>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QFontComboBox" name="labelFontComboBox"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>497</y>
<width>190</width>
<height>48</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Title font size</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="titleFontSizeSpin">
<property name="minimum">
<number>-100000</number>
</property>
<property name="maximum">
<number>100000</number>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QFontComboBox" name="titleFontComboBox"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>655</y>
<width>168</width>
<height>22</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_16">
<property name="text">
<string>Log Base</string>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="logBaseSpin">
<property name="decimals">
<number>5</number>
</property>
<property name="minimum">
<double>-999999999.000000000000000</double>
</property>
<property name="maximum">
<double>999999999.000000000000000</double>
</property>
<property name="value">
<double>8.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
Miikka Heikkinen
Make category axis label positioning at value work for polar charts...
r2801 <y>680</y>
Titta Heikkala
Added grid color property for value axis...
r2810 <width>198</width>
Miikka Heikkinen
Make category axis label positioning at value work for polar charts...
r2801 <height>31</height>
Titta Heikkala
Added minor ticks to value axis...
r2795 </rect>
</property>
Miikka Heikkinen
Make category axis label positioning at value work for polar charts...
r2801 <layout class="QGridLayout" name="gridLayout_6">
<item row="0" column="1">
<widget class="QCheckBox" name="moreCategoriesCheckBox">
Titta Heikkala
Added minor ticks to value axis...
r2795 <property name="text">
Miikka Heikkinen
Make category axis label positioning at value work for polar charts...
r2801 <string>More Categories</string>
Titta Heikkala
Added minor ticks to value axis...
r2795 </property>
</widget>
</item>
Miikka Heikkinen
Make category axis label positioning at value work for polar charts...
r2801 <item row="0" column="0">
<widget class="QCheckBox" name="niceNumbersCheckBox">
Titta Heikkala
Added minor ticks to value axis...
r2795 <property name="text">
Miikka Heikkinen
Make category axis label positioning at value work for polar charts...
r2801 <string>Nice Numbers</string>
Titta Heikkala
Added minor ticks to value axis...
r2795 </property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added grid color property for value axis...
r2810 <y>730</y>
Titta Heikkala
Added minor ticks to value axis...
r2795 <width>221</width>
<height>22</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_17">
<property name="text">
<string>DateTime format</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="dateFormatEdit"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
Titta Heikkala
Added grid color property for value axis...
r2810 <y>760</y>
Titta Heikkala
Added minor ticks to value axis...
r2795 <width>136</width>
<height>42</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">
<widget class="QCheckBox" name="series1checkBox">
<property name="text">
<string>1</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="series2checkBox">
<property name="text">
<string>2</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QCheckBox" name="series3checkBox">
<property name="text">
<string>3</string>
</property>
</widget>
</item>
<item row="0" column="3" rowspan="2">
<widget class="QCheckBox" name="series7checkBox">
<property name="text">
<string>7</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="series4checkBox">
<property name="text">
<string>4</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="series5checkBox">
<property name="text">
<string>5</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QCheckBox" name="series6checkBox">
<property name="text">
<string>6</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>75</y>
<width>178</width>
<height>126</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Angular Tick count</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="anglesSpin">
<property name="minimum">
<number>-9999</number>
</property>
<property name="maximum">
<number>9999</number>
</property>
<property name="singleStep">
<number>5</number>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="radialMinorTicksSpin"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Radial Tick count</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Angular Minor Tick count</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="radialTicksSpin"/>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="angularMinorTicksSpin"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Radial Minor Tick count</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="angularTicksSpin"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Label angles</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QComboBox" name="minorGridComboBox">
<property name="geometry">
<rect>
<x>10</x>
<y>630</y>
<width>141</width>
<height>20</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<item>
<property name="text">
<string>Invisible minor grid</string>
</property>
</item>
<item>
<property name="text">
<string>Black minor grid</string>
</property>
</item>
<item>
<property name="text">
<string>Custom minor grid pen</string>
</property>
</item>
</widget>
Miikka Heikkinen
Make category axis label positioning at value work for polar charts...
r2801 <widget class="QCheckBox" name="categoryLabelLocationCheckBox">
<property name="geometry">
<rect>
<x>10</x>
<y>710</y>
<width>142</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Category Label On Tick</string>
</property>
</widget>
Titta Heikkala
Added grid color property for value axis...
r2810 <widget class="QComboBox" name="gridLineColorComboBox">
<property name="geometry">
<rect>
<x>10</x>
<y>850</y>
<width>133</width>
<height>20</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>Black grid line</string>
</property>
</item>
<item>
<property name="text">
<string>Green grid line</string>
</property>
</item>
<item>
<property name="text">
<string>Red grid line</string>
</property>
</item>
</widget>
Miikka Heikkinen
Add Polar chart support...
r2483 </widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
Miikka Heikkinen
Add API to specify plot area background....
r2498 <width>1193</width>
Miikka Heikkinen
Add Polar chart support...
r2483 <height>21</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>ChartView</class>
<extends>QGraphicsView</extends>
<header>chartview.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>