Add the new element type : thumbnail

This type must be used for element who goal is to display a
thumbnail/front view of an element, notably used for cabinet contents
view and placement.
This commit is contained in:
joshua
2022-05-13 20:02:29 +02:00
parent 1f4dfdba3f
commit 021aea1d8b
5 changed files with 22 additions and 2 deletions

View File

@@ -40,7 +40,8 @@ class ElementData : public PropertiesInterface
AllReport = 6,
Master = 8,
Slave = 16,
Terminale = 32};
Terminale = 32,
Thumbnail = 64};
Q_ENUM(Type)
enum MasterType {
@@ -104,6 +105,7 @@ class ElementData : public PropertiesInterface
bool operator==(const ElementData &data) const;
bool operator!=(const ElementData &data) const;
QString typeToString() const;
static QString typeToString(ElementData::Type type);
static ElementData::Type typeFromString(const QString &string);