summaryrefslogtreecommitdiffstats
path: root/kexi/widget/utils/kexitooltip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/utils/kexitooltip.cpp')
-rw-r--r--kexi/widget/utils/kexitooltip.cpp46
1 files changed, 23 insertions, 23 deletions
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 <qpixmap.h>
-#include <qbitmap.h>
-#include <qpainter.h>
-#include <qimage.h>
-#include <qtooltip.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qtimer.h>
+#include <tqpixmap.h>
+#include <tqbitmap.h>
+#include <tqpainter.h>
+#include <tqimage.h>
+#include <tqtooltip.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqtimer.h>
-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"