From 65eca7929c22f0f0bc64135c02d85d1243df376c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:12:51 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- kpdf/shell/shell.cpp | 6 +++--- kpdf/shell/shell.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'kpdf/shell') diff --git a/kpdf/shell/shell.cpp b/kpdf/shell/shell.cpp index 8b101fa9..14baa149 100644 --- a/kpdf/shell/shell.cpp +++ b/kpdf/shell/shell.cpp @@ -76,7 +76,7 @@ void Shell::init() // and integrate the part's GUI with the shell's setupGUI(Keys | Save); createGUI(m_part); - m_showToolBarAction = static_cast(toolBarMenuAction()); + m_showToolBarAction = static_cast(toolBarMenuAction()); } } else @@ -94,7 +94,7 @@ void Shell::init() readSettings(); if (!TDEGlobal::config()->hasGroup("MainWindow")) { - KMainWindowInterface kmwi(this); + TDEMainWindowInterface kmwi(this); kmwi.maximize(); } setAutoSaveSettings(); @@ -146,7 +146,7 @@ void Shell::writeSettings() void Shell::setupActions() { - KAction * openAction = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection()); + TDEAction * openAction = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection()); m_recent = KStdAction::openRecent( TQT_TQOBJECT(this), TQT_SLOT( openURL( const KURL& ) ), actionCollection() ); connect( m_recent, TQT_SIGNAL( activated() ), openAction, TQT_SLOT( activate() ) ); m_recent->setWhatsThis( i18n( "Click to open a file or Click and hold to select a recent file" ) ); diff --git a/kpdf/shell/shell.h b/kpdf/shell/shell.h index 6fc2a21e..560be8fd 100644 --- a/kpdf/shell/shell.h +++ b/kpdf/shell/shell.h @@ -97,11 +97,11 @@ namespace KPDF private: KParts::ReadOnlyPart* m_part; - KRecentFilesAction* m_recent; - KAction* m_printAction; - KToggleAction* m_fullScreenAction; - KToggleAction* m_showMenuBarAction; - KToggleAction* m_showToolBarAction; + TDERecentFilesAction* m_recent; + TDEAction* m_printAction; + TDEToggleAction* m_fullScreenAction; + TDEToggleAction* m_showMenuBarAction; + TDEToggleAction* m_showToolBarAction; bool m_menuBarWasShown, m_toolBarWasShown; KURL m_openUrl; }; -- cgit v1.2.3