diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:16:01 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:16:01 -0600 |
commit | 9771f17f8cc5252b12ec5f3edf47ff9bffdf997f (patch) | |
tree | b9e389db87bdba126010d03fb5bccdc748d0e6fa /quanta/messages | |
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/messages')
-rw-r--r-- | quanta/messages/annotationoutput.cpp | 20 | ||||
-rw-r--r-- | quanta/messages/annotationoutput.h | 14 | ||||
-rw-r--r-- | quanta/messages/messageoutput.cpp | 2 | ||||
-rw-r--r-- | quanta/messages/messageoutput.h | 4 |
4 files changed, 20 insertions, 20 deletions
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<ui void AnnotationOutput::allAnnotationsItemExecuted(TQListViewItem *item) { - if (dynamic_cast<KListView*> (item->parent()) != m_allAnnotations) + if (dynamic_cast<TDEListView*> (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<KListView*> (item->parent()) != m_yourAnnotations) + if (dynamic_cast<TDEListView*> (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<uint, TQPair<TQString, TQString> > &annotations); public slots: @@ -72,14 +72,14 @@ private: void updateAnnotationForFile(const KURL& url); MessageOutput *m_currentFileAnnotations; - KListView *m_allAnnotations; - TQDict<KListViewItem> m_annotatedFileItems; + TDEListView *m_allAnnotations; + TQDict<TDEListViewItem> m_annotatedFileItems; TQMap<TQListViewItem*, TQString> m_fileNames; TQMap<TQListViewItem*, uint> m_lines; uint m_yourAnnotationsNum; - KListView *m_yourAnnotations; - TQDict<KListViewItem> m_yourFileItems; + TDEListView *m_yourAnnotations; + TQDict<TDEListViewItem> m_yourFileItems; TQMap<TQListViewItem*, TQString> m_yourFileNames; TQMap<TQListViewItem*, uint> 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 <tqlistbox.h> 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 |