diff options
Diffstat (limited to 'hyperui/global.cpp')
-rw-r--r-- | hyperui/global.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hyperui/global.cpp b/hyperui/global.cpp index 6c4873c..784cb6b 100644 --- a/hyperui/global.cpp +++ b/hyperui/global.cpp @@ -29,10 +29,22 @@ ** ****************************************************************************/ +#include <QPainter> #include <QPropertyAnimation> #include "global.h" + +void drawTextWithShadow(QPainter *painter, int x, int y, + const QString &text, const QColor &color) +{ + painter->setPen(QColor(30, 30, 30)); + painter->drawText(x + 2, y + 2, text); + + painter->setPen(color); + painter->drawText(x, y, text); +} + QPropertyAnimation *propertyAnimation(QObject *obj, const char *property, int time, QEasingCurve::Type type) { |