From cecd6a4a4814cb41562ea1d9bd36d40db7c9bdbe Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 12 Sep 2023 21:16:00 +0900 Subject: [PATCH] Replace various tqtinterface's TQ_* defines with actual types Signed-off-by: Michele Calgaro --- kexi/kexiutils/styleproxy.h | 4 ++-- kexi/widget/tableview/kexitableviewheader.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kexi/kexiutils/styleproxy.h b/kexi/kexiutils/styleproxy.h index c16212402..a0d6792d5 100644 --- a/kexi/kexiutils/styleproxy.h +++ b/kexi/kexiutils/styleproxy.h @@ -80,7 +80,7 @@ class KEXIUTILS_EXPORT StyleProxy : public TQStyle m_style->drawItem( p, r, flags, g, enabled, pixmap, text, len, penColor ); } - virtual void drawPrimitive( TQ_PrimitiveElement pe, + virtual void drawPrimitive( PrimitiveElement pe, TQPainter *p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, SFlags flags = Style_Default, const TQStyleOption& option = TQStyleOption::Default ) const { @@ -153,7 +153,7 @@ class KEXIUTILS_EXPORT StyleProxy : public TQStyle return m_style->sizeFromContents( contents, ceData, elementFlags, contentsSize, option, widget ); } - virtual int styleHint( TQ_StyleHint stylehint, + virtual int styleHint( StyleHint stylehint, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQStyleOption& option = TQStyleOption::Default, TQStyleHintReturn* returnData = 0, const TQWidget *widget = 0 ) const { diff --git a/kexi/widget/tableview/kexitableviewheader.cpp b/kexi/widget/tableview/kexitableviewheader.cpp index a313c1e53..0ee90f5a9 100644 --- a/kexi/widget/tableview/kexitableviewheader.cpp +++ b/kexi/widget/tableview/kexitableviewheader.cpp @@ -38,7 +38,7 @@ class KexiTableViewHeaderStyle : public KexiUtils::StyleProxy } ~KexiTableViewHeaderStyle() {} - virtual void drawPrimitive( TQ_PrimitiveElement pe, + virtual void drawPrimitive( PrimitiveElement pe, TQPainter *p, const TQRect &r, const TQColorGroup &cg, SFlags flags = Style_Default, const TQStyleOption& option = TQStyleOption::Default ) const {