diff options
author | Michele Calgaro <[email protected]> | 2023-09-12 21:16:17 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-09-12 22:28:08 +0900 |
commit | 496431a6d2ad8a9f79d9866938ada85977f6457a (patch) | |
tree | 96a7d49bd50b12bff5441f71506233bdfcff5478 /style | |
parent | 3c65d4d7e7b64bbbfe85caed88b1463e85cffc38 (diff) | |
download | tde-style-qtcurve-496431a6d2ad8a9f79d9866938ada85977f6457a.tar.gz tde-style-qtcurve-496431a6d2ad8a9f79d9866938ada85977f6457a.zip |
Replace various tqtinterface's TQ_* defines with actual types
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit c8bde8592b29d6f1c7b13a7a1b8b93976195cd6d)
Diffstat (limited to 'style')
-rw-r--r-- | style/qtcurve.cpp | 6 | ||||
-rw-r--r-- | style/qtcurve.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/style/qtcurve.cpp b/style/qtcurve.cpp index f084621..0cb0a66 100644 --- a/style/qtcurve.cpp +++ b/style/qtcurve.cpp @@ -798,7 +798,7 @@ static bool isCheckBoxOfGroupBox(const TQObject *w) !qstrcmp(w->name(), "qt_groupbox_checkbox"); } -static void drawArrow(TQPainter *p, const TQRect &r, const TQColor &col, TQStyle::TQ_PrimitiveElement pe, const Options &opts, bool small=false) +static void drawArrow(TQPainter *p, const TQRect &r, const TQColor &col, TQStyle::PrimitiveElement pe, const Options &opts, bool small=false) { TQPointArray a; @@ -3253,7 +3253,7 @@ void QtCurveStyle::drawEntryField(TQPainter *p, const TQRect &rx, const TQColorG } void QtCurveStyle::drawArrow(TQPainter *p, const TQRect &r, const TQColorGroup &cg, SFlags flags, - TQ_PrimitiveElement pe, bool small, bool checkActive) const + PrimitiveElement pe, bool small, bool checkActive) const { const TQColor &col(flags&Style_Enabled ? checkActive && flags&Style_Active @@ -3264,7 +3264,7 @@ void QtCurveStyle::drawArrow(TQPainter *p, const TQRect &r, const TQColorGroup & ::drawArrow(p, r, p->pen().style()==TQPen::NoPen ? col : TQColor(p->pen().color()), pe, opts, small); } -void QtCurveStyle::drawPrimitive(TQ_PrimitiveElement pe, TQPainter *p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, +void QtCurveStyle::drawPrimitive(PrimitiveElement pe, TQPainter *p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, SFlags flags, const TQStyleOption &data) const { switch(pe) diff --git a/style/qtcurve.h b/style/qtcurve.h index 154e83b..cdf43fc 100644 --- a/style/qtcurve.h +++ b/style/qtcurve.h @@ -163,8 +163,8 @@ class QtCurveStyle : public BASE_STYLE void drawEntryField(TQPainter *p, const TQRect &r, const TQColorGroup &cg, SFlags flags, EntryColor coloration, int round, EWidget=WIDGET_ENTRY) const; void drawArrow(TQPainter *p, const TQRect &r, const TQColorGroup &cg, SFlags flags, - TQ_PrimitiveElement pe, bool small=false, bool checkActive=false) const; - void drawPrimitive(TQ_PrimitiveElement, TQPainter *, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, + PrimitiveElement pe, bool small=false, bool checkActive=false) const; + void drawPrimitive(PrimitiveElement, TQPainter *, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, SFlags = Style_Default, const TQStyleOption & = TQStyleOption::Default) const; void drawTDEStylePrimitive(TDEStylePrimitive kpe, TQPainter* p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, SFlags flags, const TQStyleOption &opt, const TQWidget* widget = 0 ) const; |