summaryrefslogtreecommitdiffstats
path: root/kuiviewer
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-21 11:50:27 +0900
committerMichele Calgaro <[email protected]>2023-12-21 19:10:24 +0900
commit3ec2e5d1452640f61934f62bb4d5820c09812710 (patch)
tree850cb1382cc875ec62d4ae1811247f5fddc0d69b /kuiviewer
parente116e9630fefaa0aa8d999e8eb34949ca8fa0724 (diff)
downloadtdesdk-3ec2e5d1452640f61934f62bb4d5820c09812710.tar.gz
tdesdk-3ec2e5d1452640f61934f62bb4d5820c09812710.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kuiviewer')
-rw-r--r--kuiviewer/kuiviewer.cpp6
-rw-r--r--kuiviewer/kuiviewer_part.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/kuiviewer/kuiviewer.cpp b/kuiviewer/kuiviewer.cpp
index 430afaa0..00230f2a 100644
--- a/kuiviewer/kuiviewer.cpp
+++ b/kuiviewer/kuiviewer.cpp
@@ -60,7 +60,7 @@ KUIViewer::KUIViewer()
{
// now that the Part is loaded, we cast it to a Part to get
// our hands on it
- m_part = static_cast<KParts::ReadOnlyPart *>(factory->create(TQT_TQOBJECT(this),
+ m_part = static_cast<KParts::ReadOnlyPart *>(factory->create(this,
"kuiviewer_part", "KParts::ReadOnlyPart" ));
if (m_part)
@@ -97,8 +97,8 @@ void KUIViewer::load(const KURL& url)
void KUIViewer::setupActions()
{
- KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection());
- KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
}
void KUIViewer::saveProperties(TDEConfig* /*config*/)
diff --git a/kuiviewer/kuiviewer_part.cpp b/kuiviewer/kuiviewer_part.cpp
index d2952577..c59e4c12 100644
--- a/kuiviewer/kuiviewer_part.cpp
+++ b/kuiviewer/kuiviewer_part.cpp
@@ -72,7 +72,7 @@ KUIViewerPart::KUIViewerPart( TQWidget *parentWidget, const char *widgetName,
m_style = new TDEListAction( i18n("Style"),
CTRL + Key_S,
- TQT_TQOBJECT(this),
+ this,
TQT_SLOT(slotStyle(int)),
actionCollection(),
"change_style");
@@ -187,7 +187,7 @@ void KUIViewerPart::slotStyle(int)
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();