diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:15:35 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:15:35 -0600 |
commit | f78eb03afb8c9a380985d26286afc40b4c89b292 (patch) | |
tree | 3c087e2f119e645c902958c3bc3c802abf078ad0 /lib/widgets/kdevhtmlpart.cpp | |
parent | da1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff) | |
download | tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'lib/widgets/kdevhtmlpart.cpp')
-rw-r--r-- | lib/widgets/kdevhtmlpart.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/widgets/kdevhtmlpart.cpp b/lib/widgets/kdevhtmlpart.cpp index 34d5a2c0..e92927ae 100644 --- a/lib/widgets/kdevhtmlpart.cpp +++ b/lib/widgets/kdevhtmlpart.cpp @@ -31,14 +31,14 @@ KDevHTMLPart::KDevHTMLPart() connect(this, TQT_SIGNAL(completed()), this, TQT_SLOT(slotCompleted())); connect(this, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(slotCancelled(const TQString &))); - KActionCollection * actions = actionCollection();// new KActionCollection( this ); - reloadAction = new KAction( i18n( "Reload" ), "reload", 0, + TDEActionCollection * actions = actionCollection();// new TDEActionCollection( this ); + reloadAction = new TDEAction( i18n( "Reload" ), "reload", 0, this, TQT_SLOT( slotReload() ), actions, "doc_reload" ); reloadAction->setWhatsThis(i18n("<b>Reload</b><p>Reloads the current document.")); - stopAction = new KAction( i18n( "Stop" ), "stop", 0, + stopAction = new TDEAction( i18n( "Stop" ), "stop", 0, this, TQT_SLOT( slotStop() ), actions, "doc_stop" ); stopAction->setWhatsThis(i18n("<b>Stop</b><p>Stops the loading of current document.")); - duplicateAction = new KAction( i18n( "Duplicate Tab" ), "window_new", 0, + duplicateAction = new TDEAction( i18n( "Duplicate Tab" ), "window_new", 0, this, TQT_SLOT( slotDuplicate() ), actions, "doc_dup" ); duplicateAction->setWhatsThis(i18n("<b>Duplicate window</b><p>Opens current document in a new window.")); printAction = KStdAction::print(this, TQT_SLOT(slotPrint()), actions, "print_doc"); @@ -49,7 +49,7 @@ KDevHTMLPart::KDevHTMLPart() //BEGIN documentation history stuff - m_backAction = new KToolBarPopupAction(i18n("Back"), "back", 0, + m_backAction = new TDEToolBarPopupAction(i18n("Back"), "back", 0, this, TQT_SLOT(slotBack()), actions, "browser_back"); m_backAction->setEnabled( false ); @@ -61,7 +61,7 @@ KDevHTMLPart::KDevHTMLPart() connect(m_backAction->popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPopupActivated(int))); - m_forwardAction = new KToolBarPopupAction(i18n("Forward"), "forward", 0, + m_forwardAction = new TDEToolBarPopupAction(i18n("Forward"), "forward", 0, this, TQT_SLOT(slotForward()), actions, "browser_forward"); m_forwardAction->setEnabled( false ); @@ -89,8 +89,8 @@ KDevHTMLPart::KDevHTMLPart() void KDevHTMLPart::popup( const TQString & url, const TQPoint & p ) { -// KPopupMenu popup( i18n( "Documentation Viewer" ), this->widget() ); - KPopupMenu popup(this->widget()); +// TDEPopupMenu popup( i18n( "Documentation Viewer" ), this->widget() ); + TDEPopupMenu popup(this->widget()); bool needSep = false; int idNewWindow = -2; @@ -120,8 +120,8 @@ void KDevHTMLPart::popup( const TQString & url, const TQPoint & p ) printAction->plug(&popup); popup.insertSeparator(); - KAction * incFontAction = this->action("incFontSizes"); - KAction * decFontAction = this->action("decFontSizes"); + TDEAction * incFontAction = this->action("incFontSizes"); + TDEAction * decFontAction = this->action("decFontSizes"); if ( incFontAction && decFontAction ) { incFontAction->plug( &popup ); @@ -129,7 +129,7 @@ void KDevHTMLPart::popup( const TQString & url, const TQPoint & p ) popup.insertSeparator(); } - KAction *ac = action("setEncoding"); + TDEAction *ac = action("setEncoding"); if (ac) ac->plug(&popup); @@ -403,7 +403,7 @@ void KDevHTMLPart::slotForward() void KDevHTMLPart::slotBackAboutToShow() { - KPopupMenu *popup = m_backAction->popupMenu(); + TDEPopupMenu *popup = m_backAction->popupMenu(); popup->clear(); if ( m_Current == m_history.begin() ) return; @@ -428,7 +428,7 @@ void KDevHTMLPart::slotBackAboutToShow() void KDevHTMLPart::slotForwardAboutToShow() { - KPopupMenu *popup = m_forwardAction->popupMenu(); + TDEPopupMenu *popup = m_forwardAction->popupMenu(); popup->clear(); if ( m_Current == m_history.fromLast() ) return; |