summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/widgets/kexidbform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidbform.cpp')
-rw-r--r--kexi/plugins/forms/widgets/kexidbform.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kexi/plugins/forms/widgets/kexidbform.cpp b/kexi/plugins/forms/widgets/kexidbform.cpp
index 41e8cc64e..263f327bd 100644
--- a/kexi/plugins/forms/widgets/kexidbform.cpp
+++ b/kexi/plugins/forms/widgets/kexidbform.cpp
@@ -131,7 +131,7 @@ static void repaintAll(TQWidget *w)
TQObjectList *list = w->queryList("TQWidget");
TQObjectListIt it(*list);
for (TQObject *obj; (obj=it.current()); ++it ) {
- TQT_TQWIDGET(obj)->repaint();
+ static_cast<TQWidget*>(obj)->repaint();
}
delete list;
}
@@ -320,7 +320,7 @@ void KexiDBForm::updateTabStopsOrder(KFormDesigner::Form* form)
kexipluginsdbg << "KexiDBForm::updateTabStopsOrder(): also adding '"
<< childrenIt.current()->className() << " " << childrenIt.current()->name()
<< "' child to filtered widgets" << endl;
- //it.current()->widget()->installEventFilter(TQT_TQWIDGET(childrenIt.current()));
+ //it.current()->widget()->installEventFilter(childrenIt.current());
childrenIt.current()->installEventFilter(this);
// }
}
@@ -495,7 +495,7 @@ bool KexiDBForm::eventFilter( TQObject * watched, TQEvent * e )
if (!realWidget)
return true; //ignore
//the watched widget can be a subwidget of a real widget, e.g. autofield: find it
- //TQWidget* realWidget = TQT_TQWIDGET(watched);
+ //TQWidget* realWidget = static_cast<TQWidget*>(watched);
while (dynamic_cast<KexiDataItemInterface*>(realWidget) && dynamic_cast<KexiDataItemInterface*>(realWidget)->parentInterface())
realWidget = dynamic_cast<TQWidget*>( dynamic_cast<KexiDataItemInterface*>(realWidget)->parentInterface() );
@@ -548,7 +548,7 @@ bool KexiDBForm::eventFilter( TQObject * watched, TQEvent * e )
//behaves differently (e.g. TQLineEdit calls selectAll()) when
//focus event's reason is TQFocusEvent::Tab
if (widgetToFocus->focusProxy())
- widgetToFocus = TQT_TQWIDGET(widgetToFocus->focusProxy());
+ widgetToFocus = widgetToFocus->focusProxy();
if (widgetToFocus && d->dataAwareObject->acceptEditor()) {
if (tab) {
//try to accept this will validate the current input (if any)