Commit d3f9eb39 authored by Pierre Kraemer's avatar Pierre Kraemer

SCHNApps: Surface_render: update color buttons max height

parent dad70cf4
......@@ -25,6 +25,18 @@
</item>
<item>
<widget class="QPushButton" name="scolorButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="text">
<string>Color</string>
</property>
......@@ -146,6 +158,18 @@
</item>
<item>
<widget class="QPushButton" name="dcolorButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="palette">
<palette>
<active>
......@@ -282,6 +306,18 @@
</item>
<item>
<widget class="QPushButton" name="vcolorButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="text">
<string>Color</string>
</property>
......
......@@ -314,16 +314,14 @@ void Surface_Render_DockTab::updateMapParameters()
radio_flatShading->setChecked(p.faceStyle == MapParameters::FLAT);
radio_phongShading->setChecked(p.faceStyle == MapParameters::PHONG);
m_diffuseColor = QColor(255*p.diffuseColor[0],255*p.diffuseColor[1],255*p.diffuseColor[2]);
dcolorButton->setStyleSheet("QPushButton { background-color:"+m_diffuseColor.name()+ " }");
m_simpleColor = QColor(255*p.simpleColor[0],255*p.simpleColor[1],255*p.simpleColor[2]);
scolorButton->setStyleSheet("QPushButton { background-color:"+m_simpleColor.name()+ " }");
m_vertexColor = QColor(255*p.vertexColor[0],255*p.vertexColor[1],255*p.vertexColor[2]);
vcolorButton->setStyleSheet("QPushButton { background-color:"+m_vertexColor.name()+ " }");
m_diffuseColor = QColor(255 * p.diffuseColor[0], 255 * p.diffuseColor[1], 255 * p.diffuseColor[2]);
dcolorButton->setStyleSheet("QPushButton { background-color:" + m_diffuseColor.name() + " }");
m_simpleColor = QColor(255 * p.simpleColor[0], 255 * p.simpleColor[1], 255 * p.simpleColor[2]);
scolorButton->setStyleSheet("QPushButton { background-color:" + m_simpleColor.name() + " }");
m_vertexColor = QColor(255 * p.vertexColor[0], 255 * p.vertexColor[1], 255 * p.vertexColor[2]);
vcolorButton->setStyleSheet("QPushButton { background-color:" + m_vertexColor.name() + " }");
}
b_updatingUI = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment