|
|
@ -82,6 +82,9 @@ public: |
|
|
|
Q_INVOKABLE int mouseX(void) { return QCursor::pos().x(); } |
|
|
|
Q_INVOKABLE int mouseX(void) { return QCursor::pos().x(); } |
|
|
|
Q_INVOKABLE int mouseY(void) { return QCursor::pos().y(); } |
|
|
|
Q_INVOKABLE int mouseY(void) { return QCursor::pos().y(); } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Used to adjust default font size on an OS basis
|
|
|
|
|
|
|
|
Q_PROPERTY(double defaultFontPixelSizeRatio MEMBER _defaultFontPixelSizeRatio CONSTANT) |
|
|
|
|
|
|
|
|
|
|
|
// Used to calculate font sizes based on default font size
|
|
|
|
// Used to calculate font sizes based on default font size
|
|
|
|
Q_PROPERTY(double smallFontPixelSizeRatio MEMBER _smallFontPixelSizeRatio CONSTANT) |
|
|
|
Q_PROPERTY(double smallFontPixelSizeRatio MEMBER _smallFontPixelSizeRatio CONSTANT) |
|
|
|
Q_PROPERTY(double mediumFontPixelSizeRatio MEMBER _mediumFontPixelSizeRatio CONSTANT) |
|
|
|
Q_PROPERTY(double mediumFontPixelSizeRatio MEMBER _mediumFontPixelSizeRatio CONSTANT) |
|
|
@ -117,6 +120,7 @@ private slots: |
|
|
|
void _updateCanvas(); |
|
|
|
void _updateCanvas(); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
static const double _defaultFontPixelSizeRatio; |
|
|
|
static const double _smallFontPixelSizeRatio; |
|
|
|
static const double _smallFontPixelSizeRatio; |
|
|
|
static const double _mediumFontPixelSizeRatio; |
|
|
|
static const double _mediumFontPixelSizeRatio; |
|
|
|
static const double _largeFontPixelSizeRatio; |
|
|
|
static const double _largeFontPixelSizeRatio; |
|
|
|