diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2021-03-09 16:32:02 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2021-03-12 13:20:00 +0100 |
commit | 5db85796206666bea8c47ea1a0c1cdb2fa863ffc (patch) | |
tree | 0bca21c20f78ff5659daead85dda36a67ed5b011 /qmake/property.h | |
parent | f0862c08f1a15baff20bca1d4c0fd9f331671b46 (diff) |
Add support for various output formats for QMakeProperty
Add the ability to select a standard and json output formats of
the Qt properties. This patch also improves the encapsulation of
QMakeProperty.
Change-Id: Ib1d232be1b430ed8456ce65cc98141282e4c3f7f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'qmake/property.h')
-rw-r--r-- | qmake/property.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qmake/property.h b/qmake/property.h index b0129196eb..7b41a7ad83 100644 --- a/qmake/property.h +++ b/qmake/property.h @@ -30,6 +30,7 @@ #define PROPERTY_H #include "library/proitems.h" +#include "propertyprinter.h" #include <qglobal.h> #include <qstring.h> @@ -39,7 +40,7 @@ QT_BEGIN_NAMESPACE class QSettings; -class QMakeProperty +class QMakeProperty final { QSettings *settings; void initSettings(); @@ -58,7 +59,10 @@ public: void setValue(QString, const QString &); void remove(const QString &); - bool exec(); + int queryProperty(const QStringList &optionProperties = QStringList(), + const PropertyPrinter &printer = qmakePropertyPrinter); + int setProperty(const QStringList &optionProperties); + void unsetProperty(const QStringList &optionProperties); }; QT_END_NAMESPACE |