From 9771f17f8cc5252b12ec5f3edf47ff9bffdf997f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:16:01 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- quanta/treeviews/basetreeview.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'quanta/treeviews/basetreeview.cpp') diff --git a/quanta/treeviews/basetreeview.cpp b/quanta/treeviews/basetreeview.cpp index 1b1b3e7a..603249c0 100644 --- a/quanta/treeviews/basetreeview.cpp +++ b/quanta/treeviews/basetreeview.cpp @@ -581,13 +581,13 @@ void BaseTreeView::slotOpenWithActivated(int id) } } -void BaseTreeView::insertOpenWithMenu(KPopupMenu *menu, int position) +void BaseTreeView::insertOpenWithMenu(TDEPopupMenu *menu, int position) { if (m_openWithMenuId != -1) menu->removeItem(m_openWithMenuId); for (uint i = 0; i < m_openWithActions.count(); i++) { - KAction *action = m_openWithActions[i]; + TDEAction *action = m_openWithActions[i]; delete action; } m_openWithActions.clear(); @@ -599,13 +599,13 @@ void BaseTreeView::insertOpenWithMenu(KPopupMenu *menu, int position) if (offers.count() > 0 || plugins.count() > 0) { - m_openWithMenu = new KPopupMenu(this); + m_openWithMenu = new TDEPopupMenu(this); if (offers.count() > 0) { TDETrader::OfferList::Iterator it; for (it = offers.begin(); it != offers.end(); ++it) { - KAction *action = new KAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName((*it)->desktopEntryPath()).data()); + TDEAction *action = new TDEAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName((*it)->desktopEntryPath()).data()); connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(slotOpenWithApplication())); action->plug(m_openWithMenu); m_openWithActions.append(action); @@ -1059,7 +1059,7 @@ void BaseTreeView::doRename(KFileTreeViewItem* kftvi, const TQString & newName) void BaseTreeView::saveLayout(TDEConfig *config, const TQString &group) { - KListView::saveLayout(config, group); + TDEListView::saveLayout(config, group); if (! m_saveOpenFolder || ! qConfig.saveTrees) return; @@ -1085,7 +1085,7 @@ void BaseTreeView::saveLayout(TDEConfig *config, const TQString &group) void BaseTreeView::restoreLayout(TDEConfig *config, const TQString &group) { - KListView::restoreLayout(config, group); + TDEListView::restoreLayout(config, group); TDEConfigGroupSaver saver(config, group); setShowToolTips( config->readBoolEntry("ShowToolTips", true) ); -- cgit v1.2.1