Some clean-up

- Changed the color of the plane
- Aligned all the ui elements on the same row.
This commit is contained in:
Maxime Gimeno 2016-01-12 15:11:12 +01:00
parent 63a4bdb252
commit 7c49ab9473
2 changed files with 22 additions and 42 deletions

View File

@ -129,7 +129,12 @@ public :
}
bool applicable(QAction*) const
{
return true;
Q_FOREACH(int id, scene->selectionIndices())
{
if(qobject_cast<Scene_polyhedron_item*>(scene->item(id)))
return true;
}
return false;
}
QList<QAction*> actions() const {
return QList<QAction*>() << actionClipPolyhedra;
@ -155,7 +160,7 @@ public Q_SLOTS:
plane->setNormal(0., 0., 1.);
plane->setManipulatable(true);
plane->setClonable(false);
plane->setColor(Qt::green);
plane->setColor(QColor(0,126,255));
plane->setFlatMode();
plane->setName(tr("Clipping plane"));
connect(plane, SIGNAL(destroyed()),

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>322</width>
<height>264</height>
<height>85</height>
</rect>
</property>
<property name="windowTitle">
@ -32,6 +32,19 @@
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QCheckBox" name="close_checkBox">
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string>Keep Closed</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
@ -55,45 +68,7 @@
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QCheckBox" name="close_checkBox">
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>(Only if volume is closed)</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
<layout class="QHBoxLayout" name="horizontalLayout_2"/>
</item>
</layout>
</item>