summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoView.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:02:43 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:02:43 -0600
commitaea627236e4de24599c3e30617cf264c3c1b7d40 (patch)
tree467e13ca5a7eb0ab292259289ecc3572f53c5eae /lib/kofficecore/KoView.cpp
parent786304c6211f35ddc4cdd54b7aa7985fef4a2e70 (diff)
downloadkoffice-aea627236e4de24599c3e30617cf264c3c1b7d40.tar.gz
koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'lib/kofficecore/KoView.cpp')
-rw-r--r--lib/kofficecore/KoView.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kofficecore/KoView.cpp b/lib/kofficecore/KoView.cpp
index 7e4045a8..b78b937c 100644
--- a/lib/kofficecore/KoView.cpp
+++ b/lib/kofficecore/KoView.cpp
@@ -132,11 +132,11 @@ KoView::KoView( KoDocument *document, TQWidget *parent, const char *name )
actionCollection()->setWidget( this );
setupGlobalActions();
- KActionCollection *coll = actionCollection();
+ TDEActionCollection *coll = actionCollection();
/**** not needed anymore, according to David (Werner)
- TQValueList<KAction*> docActions = document->actionCollection()->actions();
- TQValueList<KAction*>::ConstIterator it = docActions.begin();
- TQValueList<KAction*>::ConstIterator end = docActions.end();
+ TQValueList<TDEAction*> docActions = document->actionCollection()->actions();
+ TQValueList<TDEAction*>::ConstIterator it = docActions.begin();
+ TQValueList<TDEAction*>::ConstIterator end = docActions.end();
for (; it != end; ++it )
coll->insert( *it );
*/
@@ -217,12 +217,12 @@ KParts::PartManager *KoView::partManager() const
return d->m_manager;
}
-KAction *KoView::action( const TQDomElement &element ) const
+TDEAction *KoView::action( const TQDomElement &element ) const
{
static const TQString &attrName = TDEGlobal::staticQString( "name" );
TQString name = element.attribute( attrName );
- KAction *act = KXMLGUIClient::action( name.utf8() );
+ TDEAction *act = KXMLGUIClient::action( name.utf8() );
if ( !act )
act = d->m_doc->KXMLGUIClient::action( name.utf8() );
@@ -626,7 +626,7 @@ void KoView::slotAutoScroll( )
void KoView::setupGlobalActions() {
- actionNewView = new KAction( i18n( "&New View" ), "window_new", 0,
+ actionNewView = new TDEAction( i18n( "&New View" ), "window_new", 0,
TQT_TQOBJECT(this), TQT_SLOT( newView() ),
actionCollection(), "view_newview" );
}
@@ -674,9 +674,9 @@ KoMainWindow * KoView::shell() const
return dynamic_cast<KoMainWindow *>( topLevelWidget() );
}
-KMainWindow * KoView::mainWindow() const
+TDEMainWindow * KoView::mainWindow() const
{
- return dynamic_cast<KMainWindow *>( topLevelWidget() );
+ return dynamic_cast<TDEMainWindow *>( topLevelWidget() );
}
KStatusBar * KoView::statusBar() const