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/messages/annotationoutput.cpp | 20 ++++++++++---------- quanta/messages/annotationoutput.h | 14 +++++++------- quanta/messages/messageoutput.cpp | 2 +- quanta/messages/messageoutput.h | 4 ++-- 4 files changed, 20 insertions(+), 20 deletions(-) (limited to 'quanta/messages') diff --git a/quanta/messages/annotationoutput.cpp b/quanta/messages/annotationoutput.cpp index e42eef5d..7ded7062 100644 --- a/quanta/messages/annotationoutput.cpp +++ b/quanta/messages/annotationoutput.cpp @@ -41,7 +41,7 @@ AnnotationOutput::AnnotationOutput(TQWidget *parent, const char *name) m_currentFileAnnotations = new MessageOutput(this); addTab(m_currentFileAnnotations, i18n("Current File")); - m_yourAnnotations = new KListView(this); + m_yourAnnotations = new TDEListView(this); m_yourAnnotations->addColumn("1", -1); m_yourAnnotations->addColumn("2", 0); m_yourAnnotations->setRootIsDecorated(true); @@ -52,7 +52,7 @@ AnnotationOutput::AnnotationOutput(TQWidget *parent, const char *name) connect(m_yourAnnotations, TQT_SIGNAL(executed(TQListViewItem*)), TQT_SLOT(yourAnnotationsItemExecuted(TQListViewItem *))); - m_allAnnotations = new KListView(this); + m_allAnnotations = new TDEListView(this); m_allAnnotations->addColumn("1", -1); m_allAnnotations->addColumn("2", 0); m_allAnnotations->setRootIsDecorated(true); @@ -162,14 +162,14 @@ void AnnotationOutput::readAnnotations() s.fill('0', 20 - lineText.length()); lineText.prepend(s); } - KListViewItem *fileIt = m_annotatedFileItems[fileName]; + TDEListViewItem *fileIt = m_annotatedFileItems[fileName]; if (!fileIt) { - fileIt = new KListViewItem(m_allAnnotations, fileName); + fileIt = new TDEListViewItem(m_allAnnotations, fileName); m_annotatedFileItems.insert(fileName, fileIt); m_fileNames[fileIt] = u.url(); } - KListViewItem *it = new KListViewItem(fileIt, fileIt, text, lineText); + TDEListViewItem *it = new TDEListViewItem(fileIt, fileIt, text, lineText); if (openedItems.contains(fileName)) fileIt->setOpen(true); m_fileNames[it] = u.url(); @@ -178,14 +178,14 @@ void AnnotationOutput::readAnnotations() if (!yourself.isEmpty() && (receiver == yourself || roles.contains(receiver))) { m_yourAnnotationsNum++; - KListViewItem *fileIt = m_yourFileItems[fileName]; + TDEListViewItem *fileIt = m_yourFileItems[fileName]; if (!fileIt) { - fileIt = new KListViewItem(m_yourAnnotations, fileName); + fileIt = new TDEListViewItem(m_yourAnnotations, fileName); m_yourFileItems.insert(fileName, fileIt); m_yourFileNames[fileIt] = u.url(); } - KListViewItem *it = new KListViewItem(fileIt, fileIt, text, lineText); + TDEListViewItem *it = new TDEListViewItem(fileIt, fileIt, text, lineText); if (yourOpenedItems.contains(fileName)) fileIt->setOpen(true); m_yourFileNames[it] = u.url(); @@ -261,7 +261,7 @@ void AnnotationOutput::writeAnnotations(const TQString &fileName, const TQMap (item->parent()) != m_allAnnotations) + if (dynamic_cast (item->parent()) != m_allAnnotations) { emit clicked(m_fileNames[item], m_lines[item], 0); } else @@ -270,7 +270,7 @@ void AnnotationOutput::allAnnotationsItemExecuted(TQListViewItem *item) void AnnotationOutput::yourAnnotationsItemExecuted(TQListViewItem *item) { - if (dynamic_cast (item->parent()) != m_yourAnnotations) + if (dynamic_cast (item->parent()) != m_yourAnnotations) { emit clicked(m_yourFileNames[item], m_yourLines[item], 0); } else diff --git a/quanta/messages/annotationoutput.h b/quanta/messages/annotationoutput.h index 352f046d..850b3e7c 100644 --- a/quanta/messages/annotationoutput.h +++ b/quanta/messages/annotationoutput.h @@ -23,8 +23,8 @@ class TQDomDocument; class TQListViewItem; class TQTimer; -class KListView; -class KListViewItem; +class TDEListView; +class TDEListViewItem; class MessageOutput; @@ -43,7 +43,7 @@ public: ~AnnotationOutput(); MessageOutput *currentFileAnnotations() const {return m_currentFileAnnotations;} - KListView *allAnnotations() const {return m_allAnnotations;} + TDEListView *allAnnotations() const {return m_allAnnotations;} void writeAnnotations(const TQString &fileName, const TQMap > &annotations); public slots: @@ -72,14 +72,14 @@ private: void updateAnnotationForFile(const KURL& url); MessageOutput *m_currentFileAnnotations; - KListView *m_allAnnotations; - TQDict m_annotatedFileItems; + TDEListView *m_allAnnotations; + TQDict m_annotatedFileItems; TQMap m_fileNames; TQMap m_lines; uint m_yourAnnotationsNum; - KListView *m_yourAnnotations; - TQDict m_yourFileItems; + TDEListView *m_yourAnnotations; + TQDict m_yourFileItems; TQMap m_yourFileNames; TQMap m_yourLines; diff --git a/quanta/messages/messageoutput.cpp b/quanta/messages/messageoutput.cpp index 210ee532..fe1a5230 100644 --- a/quanta/messages/messageoutput.cpp +++ b/quanta/messages/messageoutput.cpp @@ -43,7 +43,7 @@ MessageOutput::MessageOutput(TQWidget *parent, const char *name ) setPalette(pal); setFocusPolicy( TQ_NoFocus ); - m_popupMenu = new KPopupMenu(this); + m_popupMenu = new TDEPopupMenu(this); connect(this, TQT_SIGNAL(contextMenuRequested(TQListBoxItem*, const TQPoint&)), this, TQT_SLOT(showMenu(TQListBoxItem*, const TQPoint&))); m_popupMenu->insertItem( SmallIconSet("editcopy"), i18n("&Copy"), this, TQT_SLOT(copyContent()) ) ; diff --git a/quanta/messages/messageoutput.h b/quanta/messages/messageoutput.h index f2a8d894..f958ac00 100644 --- a/quanta/messages/messageoutput.h +++ b/quanta/messages/messageoutput.h @@ -21,7 +21,7 @@ #include class TDEProcess; -class KPopupMenu; +class TDEPopupMenu; class MessageItem; @@ -85,7 +85,7 @@ protected slots: private: uint m_maxItems; - KPopupMenu* m_popupMenu; + TDEPopupMenu* m_popupMenu; }; #endif -- cgit v1.2.1