summaryrefslogtreecommitdiffstats
path: root/parts/documentation/contentsview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/documentation/contentsview.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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();
}