mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 06:20:53 +01:00
ElementEditor: parttext.h code style
This commit is contained in:
committed by
Laurent Trinques
parent
3b4237f21f
commit
9bc6f7fa94
@@ -20,16 +20,15 @@
|
|||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
#include "customelementpart.h"
|
#include "customelementpart.h"
|
||||||
#include "qetapp.h"
|
#include "qetapp.h"
|
||||||
|
|
||||||
class TextEditor;
|
class TextEditor;
|
||||||
class ElementPrimitiveDecorator;
|
class ElementPrimitiveDecorator;
|
||||||
/**
|
/**
|
||||||
This class represents an static text primitive which may be used to compose
|
This class represents an static text primitive which may be used to compose
|
||||||
the drawing of an electrical element within the element editor.
|
the drawing of an electrical element within the element editor.
|
||||||
*/
|
*/
|
||||||
class PartText : public QGraphicsTextItem, public CustomElementPart
|
class PartText : public QGraphicsTextItem, public CustomElementPart {
|
||||||
{
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_PROPERTY(qreal real_size READ realSize WRITE setRealSize)
|
Q_PROPERTY(qreal real_size READ realSize WRITE setRealSize)
|
||||||
Q_PROPERTY(QColor color READ defaultTextColor WRITE setDefaultTextColor NOTIFY colorChanged)
|
Q_PROPERTY(QColor color READ defaultTextColor WRITE setDefaultTextColor NOTIFY colorChanged)
|
||||||
Q_PROPERTY(QString text READ toPlainText WRITE setPlainText NOTIFY plainTextChanged)
|
Q_PROPERTY(QString text READ toPlainText WRITE setPlainText NOTIFY plainTextChanged)
|
||||||
|
|||||||
Reference in New Issue
Block a user