mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-19 18:19:58 +01:00
Merge branch 'XMLPropertiesNew'
This commit is contained in:
@@ -38,11 +38,11 @@ class HelperCell : public QGraphicsObject, public QGraphicsLayoutItem {
|
||||
|
||||
// attributes
|
||||
public:
|
||||
QColor background_color; ///< Background color when rendering this cell
|
||||
QColor foreground_color; ///< Text color when rendering this cell
|
||||
QString label; ///< Label displayed in this cell
|
||||
Qt::Orientation orientation; ///< Orientation of this cell
|
||||
int index; ///< Index of this cell
|
||||
QColor background_color{Qt::white}; ///< Background color when rendering this cell
|
||||
QColor foreground_color{Qt::black}; ///< Text color when rendering this cell
|
||||
QString label; ///< Label displayed in this cell
|
||||
Qt::Orientation orientation{Qt::Horizontal}; ///< Orientation of this cell
|
||||
int index{-1}; ///< Index of this cell
|
||||
|
||||
// methods
|
||||
public:
|
||||
|
||||
@@ -36,10 +36,11 @@ class SplittedHelperCell : public HelperCell {
|
||||
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget * = nullptr) override;
|
||||
|
||||
// attributes
|
||||
// colors are set in the constructor
|
||||
QColor split_background_color; ///< Background color on the split side
|
||||
QColor split_foreground_color; ///< Text color on the split side
|
||||
QString split_label; ///< Text displayed on the split side
|
||||
int split_size; ///< Length of the split side
|
||||
QString split_label; ///< Text displayed on the split side
|
||||
int split_size; ///< Length of the split side
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user