summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexidialogbase.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-14 21:19:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-24 16:56:48 +0900
commit757d80a919132cf72773928d53d100d22358de34 (patch)
tree78f1145fbd227d1135514b40e66e2e4bcbe3fcce /kexi/core/kexidialogbase.cpp
parent9abcf51de91242d1ab70230ba46abd2108416edf (diff)
downloadkoffice-757d80a9.tar.gz
koffice-757d80a9.zip
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 3aab8aa05b954b80e336517f93463a9b5f50f3d6)
Diffstat (limited to 'kexi/core/kexidialogbase.cpp')
-rw-r--r--kexi/core/kexidialogbase.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kexi/core/kexidialogbase.cpp b/kexi/core/kexidialogbase.cpp
index 7b57d6733..f8067ddd6 100644
--- a/kexi/core/kexidialogbase.cpp
+++ b/kexi/core/kexidialogbase.cpp
@@ -43,7 +43,7 @@
KexiDialogBase::KexiDialogBase(KexiMainWindow *parent, const TQString &caption)
: KMdiChildView(caption, parent, "KexiDialogBase")
- , KexiActionProxy(TQT_TQOBJECT(this), parent)
+ , KexiActionProxy(this, parent)
, m_isRegistered(false)
, m_origCaption(caption)
, m_schemaData(0)
@@ -100,7 +100,7 @@ void KexiDialogBase::addView(KexiViewBase *view, int mode)
// addActionProxyChild( view );
//set focus proxy inside this view
- TQWidget *ch = TQT_TQWIDGET(view->child( 0, "TQWidget", false ));
+ TQWidget *ch = static_cast<TQWidget*>(view->child( 0, "TQWidget", false ));
if (ch)
view->setFocusProxy(ch);
@@ -191,7 +191,7 @@ void KexiDialogBase::closeEvent( TQCloseEvent * e )
TQObjectList *list = m_stack->queryList( "KexiViewBase", 0, false, false);
KexiViewBase *view;
TQObjectListIt it( *list );
- for ( ;(view = static_cast<KexiViewBase*>(TQT_TQWIDGET(it.current())) ) != 0; ++it ) {
+ for ( ;(view = static_cast<KexiViewBase*>(it.current()) ) != 0; ++it ) {
bool cancel = false;
emit view->closing(cancel);
if (cancel) {
@@ -394,7 +394,7 @@ tristate KexiDialogBase::switchToViewMode( int newViewMode, TQMap<TQString,TQStr
addActionProxyChild( newView ); //new proxy child
m_stack->raiseWidget( newView );
newView->propertySetSwitched();
- m_parentWindow->invalidateSharedActions( TQT_TQOBJECT(newView) );
+ m_parentWindow->invalidateSharedActions( newView );
TQTimer::singleShot(10, newView, TQT_SLOT(setFocus())); //newView->setFocus(); //js ok?
// setFocus();
return true;
@@ -439,7 +439,7 @@ bool KexiDialogBase::eventFilter(TQObject *obj, TQEvent *e)
}*/
if ((e->type()==TQEvent::FocusIn && m_parentWindow->activeWindow()==this)
|| e->type()==TQEvent::MouseButtonPress) {
- if (m_stack->visibleWidget() && KexiUtils::hasParent(TQT_TQOBJECT(m_stack->visibleWidget()), obj)) {
+ if (m_stack->visibleWidget() && KexiUtils::hasParent(m_stack->visibleWidget(), obj)) {
//pass the activation
activate();
}
@@ -625,7 +625,7 @@ void KexiDialogBase::activate()
{
KexiViewBase *v = selectedView();
//kdDebug() << "focusWidget(): " << focusWidget()->name() << endl;
- if (KexiUtils::hasParent( TQT_TQOBJECT(v), TQT_TQOBJECT(KMdiChildView::focusedChildWidget())))//focusWidget()))
+ if (KexiUtils::hasParent( v, KMdiChildView::focusedChildWidget()))//focusWidget()))
KMdiChildView::activate();
else {//ah, focused widget is not in this view, move focus:
if (v)