summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/templatestreeview.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/templatestreeview.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/templatestreeview.cpp')
-rw-r--r--quanta/treeviews/templatestreeview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/quanta/treeviews/templatestreeview.cpp b/quanta/treeviews/templatestreeview.cpp
index a9aa75d0..f6bbce38 100644
--- a/quanta/treeviews/templatestreeview.cpp
+++ b/quanta/treeviews/templatestreeview.cpp
@@ -129,7 +129,7 @@ KFileTreeViewItem* TemplatesTreeBranch::createTreeViewItem(KFileTreeViewItem *pa
-TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
+TemplatesTreeView::TemplatesTreeView(TDEMainWindow *parent, const char *name )
: BaseTreeView(parent,name), m_projectDir(0), m_mainWindow(parent)
{
typeToi18n["text/all"] = i18n("Text Snippet");
@@ -141,7 +141,7 @@ TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
i18nToType[i18n("Document Template")] = "template/all";
i18nToType[i18n("Site Template")] = "site/all";
- m_fileMenu = new KPopupMenu(this);
+ m_fileMenu = new TDEPopupMenu(this);
m_openId = m_fileMenu->insertItem(i18n("Open"), this ,TQT_SLOT(slotInsert()));
m_fileMenu->insertItem(SmallIcon("fileopen"), i18n("&Open"), this ,TQT_SLOT(slotOpen()));
@@ -155,7 +155,7 @@ TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
m_fileMenu->insertSeparator();
m_fileMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
- m_folderMenu = new KPopupMenu(this);
+ m_folderMenu = new TDEPopupMenu(this);
m_folderMenu->insertItem(SmallIcon("folder_new"), i18n("&New Folder..."), this, TQT_SLOT(slotNewDir()));
m_folderMenu->insertItem(SmallIcon("mail_send"), i18n("Send in E&mail..."), this, TQT_SLOT(slotSendInMail()));
@@ -170,7 +170,7 @@ TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
m_folderMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
m_reloadMenuId = m_folderMenu->insertItem(SmallIcon("revert"), i18n("&Reload"), this, TQT_SLOT(slotReload()));
- m_emptyAreaMenu = new KPopupMenu(this);
+ m_emptyAreaMenu = new TDEPopupMenu(this);
m_emptyAreaMenu->insertItem(SmallIcon("network"), i18n("&Download Template..."), this, TQT_SIGNAL(downloadTemplate()));
addColumn(i18n("Templates"), -1);
@@ -182,8 +182,8 @@ TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
localURL.setPath(locateLocal("data", resourceDir + "templates/"));
newBranch(localURL);
- connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT(slotMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
connect(this, TQT_SIGNAL(open(TQListViewItem *)),
this, TQT_SLOT(slotSelectFile(TQListViewItem *)));
@@ -251,7 +251,7 @@ void TemplatesTreeView::slotInsertInDocument()
}
-void TemplatesTreeView::slotMenu(KListView*, TQListViewItem *item, const TQPoint &point)
+void TemplatesTreeView::slotMenu(TDEListView*, TQListViewItem *item, const TQPoint &point)
{
if (!item)
{
@@ -641,7 +641,7 @@ void TemplatesTreeView::slotProperties()
uint j = 1;
m_quantaProperties->actionCombo->insertItem(i18n(NONE));
TQString tmpStr;
- KActionCollection *ac = m_mainWindow->actionCollection();
+ TDEActionCollection *ac = m_mainWindow->actionCollection();
uint acCount = ac->count();
for (uint i = 0; i < acCount; i++)
{
@@ -900,7 +900,7 @@ KURL TemplatesTreeView::filterTemplate()
config.setGroup("Filtering");
name = config.readEntry("Action", NONE);
TagAction *filterAction = 0L;
- KActionCollection *ac = m_mainWindow->actionCollection();
+ TDEActionCollection *ac = m_mainWindow->actionCollection();
uint acCount = ac->count();
TQString tmpStr;
for (uint i = 0; i < acCount; i++)