Replace various tqtinterface's TQ_* defines with actual types

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 1 year ago
parent 54852b3b05
commit c8bde8592b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -798,7 +798,7 @@ static bool isCheckBoxOfGroupBox(const TQObject *w)
!qstrcmp(w->name(), "qt_groupbox_checkbox"); !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; 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, 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 const TQColor &col(flags&Style_Enabled
? checkActive && flags&Style_Active ? 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); ::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 const TQColorGroup &cg, SFlags flags, const TQStyleOption &data) const
{ {
switch(pe) switch(pe)

@ -163,8 +163,8 @@ class QtCurveStyle : public BASE_STYLE
void drawEntryField(TQPainter *p, const TQRect &r, const TQColorGroup &cg, SFlags flags, void drawEntryField(TQPainter *p, const TQRect &r, const TQColorGroup &cg, SFlags flags,
EntryColor coloration, int round, EWidget=WIDGET_ENTRY) const; EntryColor coloration, int round, EWidget=WIDGET_ENTRY) const;
void drawArrow(TQPainter *p, const TQRect &r, const TQColorGroup &cg, SFlags flags, void drawArrow(TQPainter *p, const TQRect &r, const TQColorGroup &cg, SFlags flags,
TQ_PrimitiveElement pe, bool small=false, bool checkActive=false) const; PrimitiveElement pe, bool small=false, bool checkActive=false) const;
void drawPrimitive(TQ_PrimitiveElement, TQPainter *, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, void drawPrimitive(PrimitiveElement, TQPainter *, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &,
SFlags = Style_Default, const TQStyleOption & = TQStyleOption::Default) const; SFlags = Style_Default, const TQStyleOption & = TQStyleOption::Default) const;
void drawTDEStylePrimitive(TDEStylePrimitive kpe, TQPainter* p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, 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; const TQColorGroup &cg, SFlags flags, const TQStyleOption &opt, const TQWidget* widget = 0 ) const;

Loading…
Cancel
Save