[qet] [4344] Shape item propertie widget : hide filling group box when shape is a line or an opened polyline

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4344
Author:   blacksun
Date:     2016-02-15 17:15:05 +0100 (Mon, 15 Feb 2016)
Log Message:
-----------
Shape item propertie widget : hide filling group box when shape is a line or an opened polyline

Modified Paths:
--------------
    trunk/sources/ui/shapegraphicsitempropertieswidget.cpp
    trunk/sources/ui/shapegraphicsitempropertieswidget.ui

Modified: trunk/sources/ui/shapegraphicsitempropertieswidget.cpp
===================================================================
--- trunk/sources/ui/shapegraphicsitempropertieswidget.cpp	2016-02-13 12:51:56 UTC (rev 4343)
+++ trunk/sources/ui/shapegraphicsitempropertieswidget.cpp	2016-02-15 16:15:05 UTC (rev 4344)
@@ -63,6 +63,7 @@
 
 	m_shape = shape;
 	ui->m_close_polygon->setVisible(m_shape->shapeType() == QetShapeItem::Polygon);
+	ui->m_filling_gb->setHidden(m_shape->shapeType() == QetShapeItem::Line);
 
 	if (m_live_edit)
 	{
@@ -157,7 +158,11 @@
 	ui->m_style_cb->setCurrentIndex(static_cast<int>(m_shape->pen().style()) - 1);
 	ui->m_size_dsb ->setValue(m_shape->pen().widthF());
 	setPenColorButton(m_shape->pen().color());
+
 		//Brush
+	if (m_shape->shapeType() == QetShapeItem::Polygon)
+		ui->m_filling_gb->setVisible(m_shape->isClosed());
+
 	ui->m_brush_style_cb->setCurrentIndex(static_cast<int>(m_shape->brush().style()));
 	setBrushColorButton(m_shape->brush().color());
 

Modified: trunk/sources/ui/shapegraphicsitempropertieswidget.ui
===================================================================
--- trunk/sources/ui/shapegraphicsitempropertieswidget.ui	2016-02-13 12:51:56 UTC (rev 4343)
+++ trunk/sources/ui/shapegraphicsitempropertieswidget.ui	2016-02-15 16:15:05 UTC (rev 4344)
@@ -115,7 +115,7 @@
     </widget>
    </item>
    <item>
-    <widget class="QGroupBox" name="groupBox_2">
+    <widget class="QGroupBox" name="m_filling_gb">
      <property name="title">
       <string>Remplissage</string>
      </property>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/