From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: TQt4 port koffice This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kexi/widget/utils/kexitooltip.cpp | 46 +++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'kexi/widget/utils/kexitooltip.cpp') diff --git a/kexi/widget/utils/kexitooltip.cpp b/kexi/widget/utils/kexitooltip.cpp index 69a8b583..d5df13aa 100644 --- a/kexi/widget/utils/kexitooltip.cpp +++ b/kexi/widget/utils/kexitooltip.cpp @@ -19,58 +19,58 @@ #include "kexitooltip.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include -KexiToolTip::KexiToolTip(const QVariant& value, QWidget* parent) - : QWidget(parent, "KexiToolTip", Qt::WStyle_Customize | Qt::WType_Popup | Qt::WStyle_NoBorder - | Qt::WX11BypassWM | Qt::WDestructiveClose) +KexiToolTip::KexiToolTip(const TQVariant& value, TQWidget* tqparent) + : TQWidget(tqparent, "KexiToolTip", TQt::WStyle_Customize | TQt::WType_Popup | TQt::WStyle_NoBorder + | TQt::WX11BypassWM | TQt::WDestructiveClose) , m_value(value) { - setPalette( QToolTip::palette() ); - setFocusPolicy(QWidget::NoFocus); + setPalette( TQToolTip::palette() ); + setFocusPolicy(TQ_NoFocus); } KexiToolTip::~KexiToolTip() { } -QSize KexiToolTip::sizeHint() const +TQSize KexiToolTip::tqsizeHint() const { - QSize sz(fontMetrics().boundingRect(m_value.toString()).size()); + TQSize sz(fontMetrics().boundingRect(m_value.toString()).size()); return sz; } void KexiToolTip::show() { updateGeometry(); - QWidget::show(); + TQWidget::show(); } -void KexiToolTip::paintEvent( QPaintEvent *pev ) +void KexiToolTip::paintEvent( TQPaintEvent *pev ) { - QWidget::paintEvent(pev); - QPainter p(this); + TQWidget::paintEvent(pev); + TQPainter p(this); drawFrame(p); drawContents(p); } -void KexiToolTip::drawFrame(QPainter& p) +void KexiToolTip::drawFrame(TQPainter& p) { - p.setPen( QPen(palette().active().foreground(), 1) ); + p.setPen( TQPen(tqpalette().active().foreground(), 1) ); p.drawRect(rect()); } -void KexiToolTip::drawContents(QPainter& p) +void KexiToolTip::drawContents(TQPainter& p) { - p.drawText(rect(), Qt::AlignCenter, m_value.toString()); + p.drawText(rect(), TQt::AlignCenter, m_value.toString()); } #include "kexitooltip.moc" -- cgit v1.2.1