summaryrefslogtreecommitdiffstats
path: root/parts/documentation/contentsview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/documentation/contentsview.cpp')
-rw-r--r--parts/documentation/contentsview.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/parts/documentation/contentsview.cpp b/parts/documentation/contentsview.cpp
index b2725e1c..2581f5a0 100644
--- a/parts/documentation/contentsview.cpp
+++ b/parts/documentation/contentsview.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "contentsview.h"
-#include <qheader.h>
-#include <qlayout.h>
+#include <tqheader.h>
+#include <tqlayout.h>
#include <kdebug.h>
#include <klistview.h>
@@ -34,23 +34,23 @@
#include "docutils.h"
ContentsView::ContentsView(DocumentationWidget *parent, const char *name)
- :QWidget(parent, name), m_widget(parent)
+ :TQWidget(parent, name), m_widget(parent)
{
- QVBoxLayout *cl = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *cl = new TQVBoxLayout(this, 0, 0);
m_view = new KListView(this);
cl->addWidget(m_view);
m_view->addColumn(i18n( "Contents" ));
m_view->header()->hide();
- m_view->setResizeMode(QListView::AllColumns);
+ m_view->setResizeMode(TQListView::AllColumns);
m_view->setRootIsDecorated(true);
m_view->setSorting(-1);
m_view->setAllColumnsShowFocus( true );
- connect(m_view, SIGNAL(executed(QListViewItem*, const QPoint&, int )),
- this, SLOT(itemExecuted(QListViewItem*, const QPoint&, int )));
- connect(m_view, SIGNAL(mouseButtonPressed(int, QListViewItem*, const QPoint&, int )),
- this, SLOT(itemMouseButtonPressed(int, QListViewItem*, const QPoint&, int )));
+ connect(m_view, TQT_SIGNAL(executed(TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemExecuted(TQListViewItem*, const TQPoint&, int )));
+ connect(m_view, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemMouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )));
}
ContentsView::~ContentsView()
@@ -59,7 +59,7 @@ ContentsView::~ContentsView()
m_widget->index()->clear();
}
-void ContentsView::itemExecuted(QListViewItem *item, const QPoint &// p
+void ContentsView::itemExecuted(TQListViewItem *item, const TQPoint &// p
, int // col
)
{
@@ -72,7 +72,7 @@ void ContentsView::itemExecuted(QListViewItem *item, const QPoint &// p
m_widget->part()->partController()->showDocument(url);
}
-void ContentsView::itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int // c
+void ContentsView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
)
{
if ((button != Qt::RightButton) || (!item))
@@ -84,7 +84,7 @@ void ContentsView::itemMouseButtonPressed(int button, QListViewItem *item, const
DocUtils::docItemPopup(m_widget->part(), docItem, pos, true, true);
}
-void ContentsView::focusInEvent(QFocusEvent */*e*/)
+void ContentsView::focusInEvent(TQFocusEvent */*e*/)
{
m_view->setFocus();
}