summaryrefslogtreecommitdiffstats
path: root/kuiviewer/kuiviewer_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kuiviewer/kuiviewer_part.cpp')
-rw-r--r--kuiviewer/kuiviewer_part.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kuiviewer/kuiviewer_part.cpp b/kuiviewer/kuiviewer_part.cpp
index 487a54c6..c74696cd 100644
--- a/kuiviewer/kuiviewer_part.cpp
+++ b/kuiviewer/kuiviewer_part.cpp
@@ -72,8 +72,8 @@ KUIViewerPart::KUIViewerPart( TQWidget *parentWidget, const char *widgetName,
m_style = new TDEListAction( i18n("Style"),
CTRL + Key_S,
- TQT_TQOBJECT(this),
- TQT_SLOT(slotStyle(int)),
+ this,
+ TQ_SLOT(slotStyle(int)),
actionCollection(),
"change_style");
m_style->setEditable(false);
@@ -97,14 +97,14 @@ KUIViewerPart::KUIViewerPart( TQWidget *parentWidget, const char *widgetName,
m_style->setToolTip(i18n("Set the current style to view."));
m_style->setMenuAccelsEnabled(true);
- m_copy = KStdAction::copy(this, TQT_SLOT(slotGrab()), actionCollection());
+ m_copy = KStdAction::copy(this, TQ_SLOT(slotGrab()), actionCollection());
updateActions();
// Commented out to fix warning (rich)
// slot should probably be called saveAs() for consistency with
// KParts::ReadWritePart BTW.
-// KStdAction::saveAs(this, TQT_SLOT(slotSave()), actionCollection());
+// KStdAction::saveAs(this, TQ_SLOT(slotSave()), actionCollection());
}
KUIViewerPart::~KUIViewerPart()
@@ -185,9 +185,9 @@ void KUIViewerPart::slotStyle(int)
TQApplication::setOverrideCursor( WaitCursor );
m_widget->setStyle( style);
- TQObjectList *l = m_widget->queryList( TQWIDGET_OBJECT_NAME_STRING );
+ TQObjectList *l = m_widget->queryList( "TQWidget" );
for ( TQObject *o = l->first(); o; o = l->next() )
- ( TQT_TQWIDGET(o) )->setStyle( style );
+ ( static_cast<TQWidget*>(o) )->setStyle( style );
delete l;
m_widget->show();