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/projecttreeview.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/projecttreeview.cpp')
-rw-r--r-- | quanta/treeviews/projecttreeview.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/quanta/treeviews/projecttreeview.cpp b/quanta/treeviews/projecttreeview.cpp index 205e5bf0..fa3a0ed8 100644 --- a/quanta/treeviews/projecttreeview.cpp +++ b/quanta/treeviews/projecttreeview.cpp @@ -103,7 +103,7 @@ KFileTreeViewItem* ProjectTreeBranch::createTreeViewItem(KFileTreeViewItem *pare ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name ) : BaseTreeView(parent,name), m_projectFiles(0) { - //setSelectionModeExt(KListView::Extended); + //setSelectionModeExt(TDEListView::Extended); setRootIsDecorated(false); addColumn(i18n("Project Files"), -1); addColumn(i18n("Description"), -1); @@ -117,13 +117,13 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name ) newBranch(m_projectBaseURL); // create an empty project branch m_projectDir->root()->setEnabled(false); - m_uploadStatusMenu = new KPopupMenu(this); + m_uploadStatusMenu = new TDEPopupMenu(this); m_alwaysUploadId = m_uploadStatusMenu->insertItem(i18n("&When Modified"), this, TQT_SLOT(slotAlwaysUpload())); m_neverUploadId = m_uploadStatusMenu->insertItem(i18n("&Never"), this, TQT_SLOT(slotNeverUpload())); m_confirmUploadId = m_uploadStatusMenu->insertItem(i18n("&Confirm"), this, TQT_SLOT(slotConfirmUpload())); connect(m_uploadStatusMenu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotUploadMenuAboutToShow())); - m_fileMenu = new KPopupMenu(this); + m_fileMenu = new TDEPopupMenu(this); m_fileMenu->insertItem(SmallIcon("fileopen"), i18n("&Open"), this, TQT_SLOT(slotOpen())); m_openInQuantaId = m_fileMenu->insertItem(i18n("Load Toolbar"), this, TQT_SLOT(slotLoadToolbar())); @@ -139,11 +139,11 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name ) m_fileMenu->insertItem(i18n("Upload &Status"), m_uploadStatusMenu); 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(this); + m_folderMenu = new TDEPopupMenu(this); m_folderMenu->insertItem(SmallIconSet("filenew"), i18n("&Create New"), createNewMenu); m_folderMenu->insertSeparator(); @@ -158,7 +158,7 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name ) m_folderMenu->insertItem(i18n("Upload &Status"), m_uploadStatusMenu); m_folderMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties())); - m_projectMenu = new KPopupMenu(this); + m_projectMenu = new TDEPopupMenu(this); m_projectMenu->insertItem(SmallIconSet("filenew"), i18n("&Create New"), createNewMenu); m_projectMenu->insertSeparator(); m_projectMenu->insertItem(SmallIcon("up"), i18n("&Upload Project..."), this, TQT_SLOT(slotUploadProject())); @@ -169,8 +169,8 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name ) m_projectMenu->insertItem(i18n("Upload &Status"), m_uploadStatusMenu); - 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 *))); @@ -222,7 +222,7 @@ KFileTreeBranch* ProjectTreeView::newBranch(const KURL& url) /** slot for context menu */ -void ProjectTreeView::slotMenu(KListView *listView, TQListViewItem *item, const TQPoint& point) +void ProjectTreeView::slotMenu(TDEListView *listView, TQListViewItem *item, const TQPoint& point) { Q_UNUSED(listView); KURL url = currentURL(); |