summaryrefslogtreecommitdiffstats
path: root/kviewshell/tableOfContents.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kviewshell/tableOfContents.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/tableOfContents.cpp')
-rw-r--r--kviewshell/tableOfContents.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kviewshell/tableOfContents.cpp b/kviewshell/tableOfContents.cpp
index 51618d9a..7003de53 100644
--- a/kviewshell/tableOfContents.cpp
+++ b/kviewshell/tableOfContents.cpp
@@ -28,19 +28,19 @@
#include "kvsprefs.h"
-TocItem::TocItem(TocItem* parent)
- : KListViewItem(parent)
+TocItem::TocItem(TocItem* tqparent)
+ : KListViewItem(tqparent)
{
}
-TocItem::TocItem(TQListView* parent)
- : KListViewItem(parent)
+TocItem::TocItem(TQListView* tqparent)
+ : KListViewItem(tqparent)
{
}
-TableOfContents::TableOfContents(TQWidget* parent)
- : KListView(parent)
+TableOfContents::TableOfContents(TQWidget* tqparent)
+ : KListView(tqparent)
{
addColumn(i18n("Topic"));
addColumn(i18n("Page"));
@@ -79,7 +79,7 @@ void TableOfContents::setContents(const TQPtrList<Bookmark>& bookmarks)
addItems(bookmarks);
}
-void TableOfContents::addItems(const TQPtrList<Bookmark>& _bookmarks, TocItem* parent)
+void TableOfContents::addItems(const TQPtrList<Bookmark>& _bookmarks, TocItem* tqparent)
{
kdDebug(1223) << "TableOfContents::setContents()" << endl;
if (_bookmarks.isEmpty())
@@ -90,10 +90,10 @@ void TableOfContents::addItems(const TQPtrList<Bookmark>& _bookmarks, TocItem* p
TQPtrList<Bookmark> bookmarks = _bookmarks;
for (Bookmark* current = bookmarks.last(); current; current = bookmarks.prev() ) {
TocItem* item;
- if (!parent)
+ if (!tqparent)
item = new TocItem(this);
else
- item = new TocItem(parent);
+ item = new TocItem(tqparent);
item->setText(0, current->bookmarkText);
if (current->position.page != 0)