summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/kexidbtextwidgetinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/kexidbtextwidgetinterface.cpp')
-rw-r--r--kexi/plugins/forms/kexidbtextwidgetinterface.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/plugins/forms/kexidbtextwidgetinterface.cpp b/kexi/plugins/forms/kexidbtextwidgetinterface.cpp
index 47eabe9d..3c20510e 100644
--- a/kexi/plugins/forms/kexidbtextwidgetinterface.cpp
+++ b/kexi/plugins/forms/kexidbtextwidgetinterface.cpp
@@ -21,8 +21,8 @@
#include "kexiformdataiteminterface.h"
#include <kexidb/queryschema.h>
#include <kexiutils/utils.h>
-#include <qframe.h>
-#include <qpainter.h>
+#include <tqframe.h>
+#include <tqpainter.h>
KexiDBTextWidgetInterface::KexiDBTextWidgetInterface()
: m_autonumberDisplayParameters(0)
@@ -34,7 +34,7 @@ KexiDBTextWidgetInterface::~KexiDBTextWidgetInterface()
delete m_autonumberDisplayParameters;
}
-void KexiDBTextWidgetInterface::setColumnInfo(KexiDB::QueryColumnInfo* cinfo, QWidget *w)
+void KexiDBTextWidgetInterface::setColumnInfo(KexiDB::QueryColumnInfo* cinfo, TQWidget *w)
{
if (cinfo->field->isAutoIncrement()) {
if (!m_autonumberDisplayParameters)
@@ -43,7 +43,7 @@ void KexiDBTextWidgetInterface::setColumnInfo(KexiDB::QueryColumnInfo* cinfo, QW
}
}
-void KexiDBTextWidgetInterface::paint( QFrame *w, QPainter* p, bool textIsEmpty, int alignment, bool hasFocus )
+void KexiDBTextWidgetInterface::paint( TQFrame *w, TQPainter* p, bool textIsEmpty, int tqalignment, bool hasFocus )
{
KexiFormDataItemInterface *dataItemIface = dynamic_cast<KexiFormDataItemInterface*>(w);
KexiDB::QueryColumnInfo *columnInfo = dataItemIface ? dataItemIface->columnInfo() : 0;
@@ -53,19 +53,19 @@ void KexiDBTextWidgetInterface::paint( QFrame *w, QPainter* p, bool textIsEmpty,
if (w->hasFocus()) {
p->setPen(
KexiUtils::blendedColors(
- m_autonumberDisplayParameters->textColor, w->palette().active().base(), 1, 3));
+ m_autonumberDisplayParameters->textColor, w->tqpalette().active().base(), 1, 3));
}
KexiDisplayUtils::paintAutonumberSign(*m_autonumberDisplayParameters, p,
2 + margin + w->margin(), margin, w->width() - margin*2 -2-2,
- w->height() - margin*2 -2, alignment, hasFocus);
+ w->height() - margin*2 -2, tqalignment, hasFocus);
}
}
}
-void KexiDBTextWidgetInterface::event( QEvent * e, QWidget *w, bool textIsEmpty )
+void KexiDBTextWidgetInterface::event( TQEvent * e, TQWidget *w, bool textIsEmpty )
{
- if (e->type()==QEvent::FocusIn || e->type()==QEvent::FocusOut) {
+ if (e->type()==TQEvent::FocusIn || e->type()==TQEvent::FocusOut) {
if (m_autonumberDisplayParameters && textIsEmpty)
- w->repaint();
+ w->tqrepaint();
}
}