mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
QetShapeItem : add color and improve the GUI,.
the xml saving is break from previous version. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4303 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include "shapegraphicsitempropertieswidget.h"
|
#include "shapegraphicsitempropertieswidget.h"
|
||||||
#include "PropertiesEditor/propertieseditordialog.h"
|
#include "PropertiesEditor/propertieseditordialog.h"
|
||||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||||
|
#include "qetxml.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief QetShapeItem::QetShapeItem
|
* @brief QetShapeItem::QetShapeItem
|
||||||
@@ -38,7 +39,6 @@ QetShapeItem::QetShapeItem(QPointF p1, QPointF p2, ShapeType type, QGraphicsItem
|
|||||||
m_P2 (p2),
|
m_P2 (p2),
|
||||||
m_hovered(false),
|
m_hovered(false),
|
||||||
m_mouse_grab_handler(false),
|
m_mouse_grab_handler(false),
|
||||||
shape_size(1),
|
|
||||||
m_handler(10)
|
m_handler(10)
|
||||||
{
|
{
|
||||||
if (type == Polygon) m_polygon << m_P1 << m_P2;
|
if (type == Polygon) m_polygon << m_P1 << m_P2;
|
||||||
@@ -201,7 +201,7 @@ QPainterPath QetShapeItem::shape() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
QPainterPathStroker pps;
|
QPainterPathStroker pps;
|
||||||
pps.setWidth(m_hovered? 10 : 1);
|
pps.setWidth(m_hovered? m_pen.widthF()+10 : m_pen.widthF());
|
||||||
pps.setJoinStyle(Qt::RoundJoin);
|
pps.setJoinStyle(Qt::RoundJoin);
|
||||||
path = pps.createStroke(path);
|
path = pps.createStroke(path);
|
||||||
|
|
||||||
@@ -237,9 +237,8 @@ void QetShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
|
|||||||
Q_UNUSED(option); Q_UNUSED(widget);
|
Q_UNUSED(option); Q_UNUSED(widget);
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
painter -> setRenderHint(QPainter::Antialiasing, false);
|
painter->setRenderHint(QPainter::Antialiasing, true);
|
||||||
m_pen.setColor(isSelected()? Qt::red : Qt::black);
|
painter->setPen(m_pen);
|
||||||
painter -> setPen(m_pen);
|
|
||||||
|
|
||||||
//Draw hovered shadow
|
//Draw hovered shadow
|
||||||
if (m_hovered)
|
if (m_hovered)
|
||||||
@@ -458,11 +457,10 @@ bool QetShapeItem::fromXml(const QDomElement &e)
|
|||||||
if (e.tagName() != "shape") return (false);
|
if (e.tagName() != "shape") return (false);
|
||||||
|
|
||||||
is_movable_ = (e.attribute("is_movable").toInt());
|
is_movable_ = (e.attribute("is_movable").toInt());
|
||||||
m_pen.setStyle(Qt::PenStyle(e.attribute("style","0").toInt()));
|
m_pen = QETXML::penFromXml(e.firstChildElement("pen"));
|
||||||
m_pen.setWidthF(e.attribute("size", QString::number(shape_size)).toDouble());
|
|
||||||
|
|
||||||
QString type = e.attribute("type");
|
QString type = e.attribute("type");
|
||||||
//Compatibility for version older than N°4075, shape type was stored with an int
|
//@TODO Compatibility for version older than N°4075, shape type was stored with an int
|
||||||
if (type.size() == 1)
|
if (type.size() == 1)
|
||||||
{
|
{
|
||||||
switch(e.attribute("type","0").toInt())
|
switch(e.attribute("type","0").toInt())
|
||||||
@@ -507,8 +505,7 @@ QDomElement QetShapeItem::toXml(QDomDocument &document) const
|
|||||||
//write some attribute
|
//write some attribute
|
||||||
QMetaEnum me = metaObject()->enumerator(metaObject()->indexOfEnumerator("ShapeType"));
|
QMetaEnum me = metaObject()->enumerator(metaObject()->indexOfEnumerator("ShapeType"));
|
||||||
result.setAttribute("type", me.valueToKey(m_shapeType));
|
result.setAttribute("type", me.valueToKey(m_shapeType));
|
||||||
result.setAttribute("style", QString::number(m_pen.style()));
|
result.appendChild(QETXML::penToXml(document, m_pen));
|
||||||
result.setAttribute("size", QString::number(m_pen.widthF()));
|
|
||||||
result.setAttribute("is_movable", bool(is_movable_));
|
result.setAttribute("is_movable", bool(is_movable_));
|
||||||
if (m_shapeType != Polygon)
|
if (m_shapeType != Polygon)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -103,7 +103,6 @@ class QetShapeItem : public QetGraphicsItem
|
|||||||
bool m_hovered,
|
bool m_hovered,
|
||||||
m_mouse_grab_handler;
|
m_mouse_grab_handler;
|
||||||
int m_vector_index;
|
int m_vector_index;
|
||||||
double shape_size;
|
|
||||||
QetGraphicsHandlerUtility m_handler;
|
QetGraphicsHandlerUtility m_handler;
|
||||||
};
|
};
|
||||||
#endif // QETSHAPEITEM_H
|
#endif // QETSHAPEITEM_H
|
||||||
|
|||||||
73
sources/qetxml.cpp
Normal file
73
sources/qetxml.cpp
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2006-2015 The QElectroTech Team
|
||||||
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
QElectroTech is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include "qetxml.h"
|
||||||
|
#include <QPen>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief QETXML::penToXml
|
||||||
|
* Write attribute of a QPen in xml element
|
||||||
|
* @param parent_document : parent document for create the QDomElement
|
||||||
|
* @param pen : the pen to store
|
||||||
|
* @return : A QDomElement with the attribute stored. The tagName of QDomeElement is "pen".
|
||||||
|
*/
|
||||||
|
QDomElement QETXML::penToXml(QDomDocument &parent_document,QPen pen)
|
||||||
|
{
|
||||||
|
QDomElement element = parent_document.createElement("pen");
|
||||||
|
|
||||||
|
QString style;
|
||||||
|
switch(pen.style())
|
||||||
|
{
|
||||||
|
case Qt::SolidLine : style = "SolidLine"; break;
|
||||||
|
case Qt::DashLine : style = "DashLine"; break;
|
||||||
|
case Qt::DotLine : style = "DotLine"; break;
|
||||||
|
case Qt::DashDotLine : style = "DashDotLine"; break;
|
||||||
|
case Qt::DashDotDotLine : style = "DashDotDotLine"; break;
|
||||||
|
default : style = "Unknow"; break;
|
||||||
|
}
|
||||||
|
|
||||||
|
element.setAttribute("style", style);
|
||||||
|
element.setAttribute("color", pen.color().name());
|
||||||
|
element.setAttribute("widthF", pen.widthF());
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief QETXML::penFromXml
|
||||||
|
* Build a QPen from a xml description
|
||||||
|
* @param element, The QDomElement that describe the pen
|
||||||
|
* @return the created pen. If @element is null or tagName isn't "pen"
|
||||||
|
* return a default constructed QPen
|
||||||
|
*/
|
||||||
|
QPen QETXML::penFromXml(const QDomElement &element)
|
||||||
|
{
|
||||||
|
QPen pen;
|
||||||
|
|
||||||
|
if (!(!element.isNull() && element.tagName() == "pen")) return pen;
|
||||||
|
|
||||||
|
QString style = element.attribute("style", "DashLine");
|
||||||
|
if (style == "SolidLine") pen.setStyle(Qt::SolidLine);
|
||||||
|
else if (style == "DashLine") pen.setStyle(Qt::DashLine);
|
||||||
|
else if (style == "DotLine") pen.setStyle(Qt::DotLine);
|
||||||
|
else if (style == "DashDotLine") pen.setStyle(Qt::DashDotLine);
|
||||||
|
else if (style == "DashDotDotLine") pen.setStyle(Qt::DashDotDotLine);
|
||||||
|
else pen.setStyle(Qt::DashLine);
|
||||||
|
|
||||||
|
pen.setColor(QColor(element.attribute("color", "#000000")));
|
||||||
|
pen.setWidthF(element.attribute("widthF", "1").toDouble());
|
||||||
|
return pen;
|
||||||
|
}
|
||||||
34
sources/qetxml.h
Normal file
34
sources/qetxml.h
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2006-2015 The QElectroTech Team
|
||||||
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
QElectroTech is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#ifndef QETXML_H
|
||||||
|
#define QETXML_H
|
||||||
|
|
||||||
|
#include <QDomDocument>
|
||||||
|
#include <QPen>
|
||||||
|
|
||||||
|
/**
|
||||||
|
*This namespace contain some function to use xml with QET.
|
||||||
|
*/
|
||||||
|
namespace QETXML
|
||||||
|
{
|
||||||
|
QDomElement penToXml(QDomDocument &parent_document, QPen pen);
|
||||||
|
QPen penFromXml (const QDomElement &element);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // QETXML_H
|
||||||
@@ -55,14 +55,13 @@ void ShapeGraphicsItemPropertiesWidget::setItem(QetShapeItem *shape)
|
|||||||
if (!shape) return;
|
if (!shape) return;
|
||||||
if (shape == m_shape) return;
|
if (shape == m_shape) return;
|
||||||
|
|
||||||
if (m_shape)
|
if (m_shape && m_live_edit)
|
||||||
disconnect(m_shape, &QetShapeItem::penChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
disconnect(m_shape, &QetShapeItem::penChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
||||||
disconnect(m_shape, &QetShapeItem::widthChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
|
||||||
|
|
||||||
m_shape = shape;
|
m_shape = shape;
|
||||||
connect(m_shape, &QetShapeItem::penChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
|
||||||
connect(m_shape, &QetShapeItem::widthChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
|
||||||
|
|
||||||
|
if (m_live_edit)
|
||||||
|
connect(m_shape, &QetShapeItem::penChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
||||||
|
|
||||||
updateUi();
|
updateUi();
|
||||||
}
|
}
|
||||||
@@ -74,15 +73,9 @@ void ShapeGraphicsItemPropertiesWidget::setItem(QetShapeItem *shape)
|
|||||||
*/
|
*/
|
||||||
void ShapeGraphicsItemPropertiesWidget::apply()
|
void ShapeGraphicsItemPropertiesWidget::apply()
|
||||||
{
|
{
|
||||||
if (m_live_edit)
|
|
||||||
disconnect(m_shape, &QetShapeItem::penChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
|
||||||
|
|
||||||
if (m_shape->diagram())
|
if (m_shape->diagram())
|
||||||
if (QUndoCommand *undo = associatedUndo())
|
if (QUndoCommand *undo = associatedUndo())
|
||||||
m_shape->diagram()->undoStack().push(undo);
|
m_shape->diagram()->undoStack().push(undo);
|
||||||
|
|
||||||
if (m_live_edit)
|
|
||||||
connect(m_shape, &QetShapeItem::penChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -96,15 +89,18 @@ void ShapeGraphicsItemPropertiesWidget::reset() {
|
|||||||
/**
|
/**
|
||||||
* @brief ShapeGraphicsItemPropertiesWidget::associatedUndo
|
* @brief ShapeGraphicsItemPropertiesWidget::associatedUndo
|
||||||
* @return an undo command that represent the change edited by this widget.
|
* @return an undo command that represent the change edited by this widget.
|
||||||
* The returned undo command is a ChangeShapeStyleCommand.
|
* The returned undo command is a QPropertyUndoCommand with the properties "pen".
|
||||||
* If there isn't change, return nullptr
|
* If there isn't change, return nullptr
|
||||||
*/
|
*/
|
||||||
QUndoCommand* ShapeGraphicsItemPropertiesWidget::associatedUndo() const
|
QUndoCommand* ShapeGraphicsItemPropertiesWidget::associatedUndo() const
|
||||||
{
|
{
|
||||||
QPen old_pen = m_shape->pen();
|
QPen old_pen = m_shape->pen();
|
||||||
QPen new_pen = old_pen;
|
QPen new_pen = old_pen;
|
||||||
|
|
||||||
new_pen.setStyle(Qt::PenStyle(ui->m_style_cb->currentIndex() + 1));
|
new_pen.setStyle(Qt::PenStyle(ui->m_style_cb->currentIndex() + 1));
|
||||||
new_pen.setWidthF(ui->m_size_cb->value());
|
new_pen.setWidthF(ui->m_size_dsb->value());
|
||||||
|
new_pen.setColor(ui->m_color_pb->palette().color(QPalette::Button));
|
||||||
|
|
||||||
if (new_pen == old_pen) return nullptr;
|
if (new_pen == old_pen) return nullptr;
|
||||||
|
|
||||||
QPropertyUndoCommand *undo = new QPropertyUndoCommand(m_shape, "pen", old_pen, new_pen);
|
QPropertyUndoCommand *undo = new QPropertyUndoCommand(m_shape, "pen", old_pen, new_pen);
|
||||||
@@ -117,9 +113,13 @@ QUndoCommand* ShapeGraphicsItemPropertiesWidget::associatedUndo() const
|
|||||||
*/
|
*/
|
||||||
void ShapeGraphicsItemPropertiesWidget::updateUi()
|
void ShapeGraphicsItemPropertiesWidget::updateUi()
|
||||||
{
|
{
|
||||||
|
bool le = m_live_edit;
|
||||||
|
setLiveEdit(false); //Disable temporally live edit mode to avoid weird behavior
|
||||||
ui->m_style_cb->setCurrentIndex(static_cast<int>(m_shape->pen().style()) - 1);
|
ui->m_style_cb->setCurrentIndex(static_cast<int>(m_shape->pen().style()) - 1);
|
||||||
ui->m_size_cb ->setValue(m_shape->pen().widthF());
|
ui->m_size_dsb ->setValue(m_shape->pen().widthF());
|
||||||
|
setColorButton(m_shape->pen().color());
|
||||||
ui->m_lock_pos_cb->setChecked(!m_shape->isMovable());
|
ui->m_lock_pos_cb->setChecked(!m_shape->isMovable());
|
||||||
|
setLiveEdit(le);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -132,15 +132,46 @@ bool ShapeGraphicsItemPropertiesWidget::setLiveEdit(bool live_edit)
|
|||||||
if (live_edit == m_live_edit) return true;
|
if (live_edit == m_live_edit) return true;
|
||||||
m_live_edit = live_edit;
|
m_live_edit = live_edit;
|
||||||
|
|
||||||
if (m_live_edit){
|
if (m_live_edit)
|
||||||
|
{
|
||||||
connect (ui->m_style_cb, SIGNAL(activated(int)), this, SLOT(apply()));
|
connect (ui->m_style_cb, SIGNAL(activated(int)), this, SLOT(apply()));
|
||||||
connect (ui->m_size_cb, SIGNAL(valueChanged(double)), this, SLOT(apply()));
|
connect (ui->m_size_dsb, SIGNAL(valueChanged(double)), this, SLOT(apply()));
|
||||||
}else
|
connect (m_shape, &QetShapeItem::penChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
disconnect (ui->m_style_cb, SIGNAL(activated(int)), this, SLOT(apply()));
|
disconnect (ui->m_style_cb, SIGNAL(activated(int)), this, SLOT(apply()));
|
||||||
disconnect (ui->m_size_cb, SIGNAL(valueChanged(double)), this, SLOT(apply()));
|
disconnect (ui->m_size_dsb, SIGNAL(valueChanged(double)), this, SLOT(apply()));
|
||||||
|
disconnect (m_shape, &QetShapeItem::penChanged, this, &ShapeGraphicsItemPropertiesWidget::updateUi);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief ShapeGraphicsItemPropertiesWidget::setColorButton
|
||||||
|
* Set the color of the push button to the current color of the shape
|
||||||
|
* @param color
|
||||||
|
*/
|
||||||
|
void ShapeGraphicsItemPropertiesWidget::setColorButton(const QColor &color)
|
||||||
|
{
|
||||||
|
QPalette palette;
|
||||||
|
palette.setColor(QPalette::Button, color);
|
||||||
|
ui -> m_color_pb -> setStyleSheet(QString("background-color: %1; min-height: 1.5em; border-style: outset; border-width: 2px; border-color: gray; border-radius: 4px;").arg(color.name()));
|
||||||
|
}
|
||||||
|
|
||||||
void ShapeGraphicsItemPropertiesWidget::on_m_lock_pos_cb_clicked() {
|
void ShapeGraphicsItemPropertiesWidget::on_m_lock_pos_cb_clicked() {
|
||||||
m_shape->setMovable(!ui->m_lock_pos_cb->isChecked());
|
m_shape->setMovable(!ui->m_lock_pos_cb->isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief ShapeGraphicsItemPropertiesWidget::on_m_color_pb_clicked
|
||||||
|
* Color button was clicked, we open a QColorDialog for select the color to apply to the shape.
|
||||||
|
*/
|
||||||
|
void ShapeGraphicsItemPropertiesWidget::on_m_color_pb_clicked()
|
||||||
|
{
|
||||||
|
QColor color = QColorDialog::getColor(m_shape->pen().color(), this);
|
||||||
|
if (color.isValid())
|
||||||
|
setColorButton(color);
|
||||||
|
if(m_live_edit)
|
||||||
|
apply();
|
||||||
|
}
|
||||||
|
|||||||
@@ -49,8 +49,12 @@ class ShapeGraphicsItemPropertiesWidget : public PropertiesEditorWidget
|
|||||||
virtual void updateUi();
|
virtual void updateUi();
|
||||||
virtual bool setLiveEdit(bool live_edit);
|
virtual bool setLiveEdit(bool live_edit);
|
||||||
|
|
||||||
|
private:
|
||||||
|
void setColorButton(const QColor &color);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_m_lock_pos_cb_clicked();
|
void on_m_lock_pos_cb_clicked();
|
||||||
|
void on_m_color_pb_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::ShapeGraphicsItemPropertiesWidget *ui;
|
Ui::ShapeGraphicsItemPropertiesWidget *ui;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>242</width>
|
<width>261</width>
|
||||||
<height>183</height>
|
<height>170</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -15,15 +15,19 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<widget class="QGroupBox" name="groupBox">
|
||||||
<item>
|
<property name="title">
|
||||||
<widget class="QLabel" name="label">
|
<string>Trait</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Type de trait</string>
|
<string>Épaisseur</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="0" column="1">
|
||||||
<widget class="QComboBox" name="m_style_cb">
|
<widget class="QComboBox" name="m_style_cb">
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -52,27 +56,16 @@
|
|||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
<item row="1" column="1">
|
||||||
</item>
|
<widget class="QDoubleSpinBox" name="m_size_dsb">
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>Epaisseur de trait</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QDoubleSpinBox" name="m_size_cb">
|
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16777212</width>
|
<width>16777212</width>
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="wrapping">
|
<property name="buttonSymbols">
|
||||||
<bool>true</bool>
|
<enum>QAbstractSpinBox::UpDownArrows</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="accelerated">
|
<property name="accelerated">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@@ -94,7 +87,29 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string>Type</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>Couleur</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QPushButton" name="m_color_pb">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="m_lock_pos_cb">
|
<widget class="QCheckBox" name="m_lock_pos_cb">
|
||||||
|
|||||||
Reference in New Issue
Block a user