summaryrefslogtreecommitdiffstats
path: root/kuiviewer/kuiviewer_part.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kuiviewer/kuiviewer_part.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kuiviewer/kuiviewer_part.cpp')
-rw-r--r--kuiviewer/kuiviewer_part.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kuiviewer/kuiviewer_part.cpp b/kuiviewer/kuiviewer_part.cpp
index 5f231361..2ff58821 100644
--- a/kuiviewer/kuiviewer_part.cpp
+++ b/kuiviewer/kuiviewer_part.cpp
@@ -51,10 +51,10 @@
typedef KParts::GenericFactory<KUIViewerPart> KUIViewerPartFactory;
K_EXPORT_COMPONENT_FACTORY( libkuiviewerpart, KUIViewerPartFactory )
-KUIViewerPart::KUIViewerPart( TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name,
+KUIViewerPart::KUIViewerPart( TQWidget *tqparentWidget, const char *widgetName,
+ TQObject *tqparent, const char *name,
const TQStringList & /*args*/ )
- : KParts::ReadOnlyPart(parent, name)
+ : KParts::ReadOnlyPart(tqparent, name)
{
// we need an instance
setInstance( KUIViewerPartFactory::instance() );
@@ -62,7 +62,7 @@ KUIViewerPart::KUIViewerPart( TQWidget *parentWidget, const char *widgetName,
KGlobal::locale()->insertCatalogue("kuiviewer");
// this should be your custom internal widget
- m_widget = new TQVBox( parentWidget, widgetName );
+ m_widget = new TQVBox( tqparentWidget, widgetName );
// notify the part that this is our internal widget
setWidget(m_widget);
@@ -72,7 +72,7 @@ KUIViewerPart::KUIViewerPart( TQWidget *parentWidget, const char *widgetName,
m_style = new KListAction( i18n("Style"),
CTRL + Key_S,
- this,
+ TQT_TQOBJECT(this),
TQT_SLOT(slotStyle(int)),
actionCollection(),
"change_style");
@@ -152,7 +152,7 @@ bool KUIViewerPart::openURL( const KURL& url)
emit setWindowCaption( url.prettyURL() );
m_url = url;
- m_file = TQString::null;
+ m_file = TQString();
if (KIO::NetAccess::download(url, m_file))
return openFile();
else
@@ -187,7 +187,7 @@ void KUIViewerPart::slotStyle(int)
TQObjectList *l = m_widget->queryList( TQWIDGET_OBJECT_NAME_STRING );
for ( TQObject *o = l->first(); o; o = l->next() )
- ( static_cast<TQWidget *>(o) )->setStyle( style );
+ ( TQT_TQWIDGET(o) )->setStyle( style );
delete l;
m_widget->show();
@@ -205,7 +205,7 @@ void KUIViewerPart::slotGrab()
return;
}
- QClipboard *clipboard = TQApplication::clipboard();
+ TQClipboard *clipboard = TQApplication::tqclipboard();
clipboard->setPixmap(TQPixmap::grabWidget(m_widget));
}