diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:16:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:16:01 -0600 |
commit | 9771f17f8cc5252b12ec5f3edf47ff9bffdf997f (patch) | |
tree | b9e389db87bdba126010d03fb5bccdc748d0e6fa /quanta/treeviews/filestreeview.cpp | |
parent | 9930e16dde86b7de9b792613d826f4f8648b9768 (diff) | |
download | tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.tar.gz tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'quanta/treeviews/filestreeview.cpp')
-rw-r--r-- | quanta/treeviews/filestreeview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/quanta/treeviews/filestreeview.cpp b/quanta/treeviews/filestreeview.cpp index eee9e6fb..7d82961f 100644 --- a/quanta/treeviews/filestreeview.cpp +++ b/quanta/treeviews/filestreeview.cpp @@ -82,7 +82,7 @@ FilesTreeView::FilesTreeView(TDEConfig *config, TQWidget *parent, const char *na topURLList.append(url); } - m_fileMenu = new KPopupMenu(this); + m_fileMenu = new TDEPopupMenu(this); m_fileMenu->insertItem(SmallIcon("fileopen"), i18n("&Open"), this ,TQT_SLOT(slotOpen())); m_fileMenu->insertItem(i18n("Insert &Tag"), this, TQT_SLOT(slotInsertTag())); @@ -95,11 +95,11 @@ FilesTreeView::FilesTreeView(TDEConfig *config, TQWidget *parent, const char *na m_fileMenu->insertSeparator(); m_fileMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties())); - KPopupMenu *createNewMenu = new KPopupMenu(this); + TDEPopupMenu *createNewMenu = new TDEPopupMenu(this); createNewMenu->insertItem(SmallIcon("folder_new"), i18n("F&older..."), this, TQT_SLOT(slotCreateFolder())); createNewMenu->insertItem(SmallIcon("document"), i18n("&File..."), this, TQT_SLOT(slotCreateFile())); - m_folderMenu = new KPopupMenu(); + m_folderMenu = new TDEPopupMenu(); m_folderMenu->insertItem(SmallIcon("folder_new"), i18n("New Top &Folder..."), this, TQT_SLOT(slotNewTopFolder())); m_menuTop = m_folderMenu->insertItem(i18n("&Add Folder to Top"), this, TQT_SLOT(slotAddToTop())); @@ -116,7 +116,7 @@ FilesTreeView::FilesTreeView(TDEConfig *config, TQWidget *parent, const char *na 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_emptyMenu = new KPopupMenu(); + m_emptyMenu = new TDEPopupMenu(); m_emptyMenu->insertItem(i18n("New Top &Folder..."), this, TQT_SLOT(slotNewTopFolder()), 0, -1 , 0); @@ -125,8 +125,8 @@ FilesTreeView::FilesTreeView(TDEConfig *config, TQWidget *parent, const char *na connect(this, TQT_SIGNAL(open(TQListViewItem *)), this, TQT_SLOT(slotSelectFile(TQListViewItem *))); - 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&))); // generate top list of directories for (uint i = 0; i < topURLList.count(); i++) @@ -175,7 +175,7 @@ KFileTreeBranch* FilesTreeView::newBranch(const KURL& url) /** RMB pressed, bring up the menu */ -void FilesTreeView::slotMenu(KListView* listView, TQListViewItem *item, const TQPoint &point) +void FilesTreeView::slotMenu(TDEListView* listView, TQListViewItem *item, const TQPoint &point) { Q_UNUSED(listView); #ifdef ENABLE_CVSSERVICE |