summaryrefslogtreecommitdiffstats
path: root/quanta/messages/annotationoutput.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/messages/annotationoutput.cpp
parent9930e16dde86b7de9b792613d826f4f8648b9768 (diff)
downloadtdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.tar.gz
tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'quanta/messages/annotationoutput.cpp')
-rw-r--r--quanta/messages/annotationoutput.cpp20
1 files changed, 10 insertions, 10 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