summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/basetreeview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:16:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:16:01 -0600
commit9771f17f8cc5252b12ec5f3edf47ff9bffdf997f (patch)
treeb9e389db87bdba126010d03fb5bccdc748d0e6fa /quanta/treeviews/basetreeview.cpp
parent9930e16dde86b7de9b792613d826f4f8648b9768 (diff)
downloadtdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.tar.gz
tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'quanta/treeviews/basetreeview.cpp')
-rw-r--r--quanta/treeviews/basetreeview.cpp12
1 files changed, 6 insertions, 6 deletions
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) );