Q_GADGET added

This commit is contained in:
Uwe Rathmann 2020-10-28 12:33:51 +01:00
parent 1eada5fbe0
commit aed9412aee
2 changed files with 9 additions and 0 deletions

View File

@ -63,3 +63,5 @@ qreal QskMargins::marginAt( Qt::Edge edge ) const noexcept
return 0.0;
}
#include "moc_QskMargins.cpp"

View File

@ -21,6 +21,13 @@ class QVariant;
*/
class QSK_EXPORT QskMargins : public QMarginsF
{
Q_GADGET
Q_PROPERTY( qreal left READ left WRITE setLeft )
Q_PROPERTY( qreal top READ top WRITE setTop )
Q_PROPERTY( qreal right READ right WRITE setRight )
Q_PROPERTY( qreal bottom READ bottom WRITE setBottom )
public:
constexpr QskMargins() noexcept = default;
constexpr QskMargins( const QMarginsF& ) noexcept;