summaryrefslogtreecommitdiffstats
path: root/src/kile/kilelistselector.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 19:59:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 19:59:21 +0000
commitb9c374725620ec064db7610132a8b8969fa405b9 (patch)
tree645c03144cac22f7b4fb5bd10985d389e8954290 /src/kile/kilelistselector.cpp
parent71729070d61b36b96acd7fa9c34bba0cb8f58c3b (diff)
downloadkile-b9c374725620ec064db7610132a8b8969fa405b9.tar.gz
kile-b9c374725620ec064db7610132a8b8969fa405b9.zip
TQt4 port kile
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kile@1239285 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kile/kilelistselector.cpp')
-rw-r--r--src/kile/kilelistselector.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kile/kilelistselector.cpp b/src/kile/kilelistselector.cpp
index 7ab8cc8..42af28d 100644
--- a/src/kile/kilelistselector.cpp
+++ b/src/kile/kilelistselector.cpp
@@ -17,10 +17,10 @@
#include "kilelistselector.h"
-#include <qstringlist.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qheader.h>
+#include <tqstringlist.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqheader.h>
#include <kapplication.h>
#include "kiledebug.h"
@@ -28,13 +28,13 @@
//////////////////// KileListSelectorBase ////////////////////
-KileListSelectorBase::KileListSelectorBase(const QStringList &list, const QString &caption, const QString &select, QWidget *parent, const char *name) :
- KDialogBase( KDialogBase::Plain, caption, Ok|Cancel,Ok, parent, name, true, true )
+KileListSelectorBase::KileListSelectorBase(const TQStringList &list, const TQString &caption, const TQString &select, TQWidget *tqparent, const char *name) :
+ KDialogBase( KDialogBase::Plain, caption, Ok|Cancel,Ok, tqparent, name, true, true )
{
- QVBoxLayout *layout = new QVBoxLayout(plainPage());
+ TQVBoxLayout *tqlayout = new TQVBoxLayout(plainPage());
- layout->addWidget(new QLabel(select, plainPage()));
- layout->addSpacing(8);
+ tqlayout->addWidget(new TQLabel(select, plainPage()));
+ tqlayout->addSpacing(8);
m_listview = new KListView(plainPage());
m_listview->addColumn(i18n("Files"));
@@ -50,7 +50,7 @@ KileListSelectorBase::KileListSelectorBase(const QStringList &list, const QStrin
#if KDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
m_listview->setShadeSortColumn(false);
#endif
- layout->addWidget(m_listview);
+ tqlayout->addWidget(m_listview);
insertStringList(list);
@@ -59,19 +59,19 @@ KileListSelectorBase::KileListSelectorBase(const QStringList &list, const QStrin
int h = ( list.count() > 0 ) ? m_listview->header()->height()+12*m_listview->firstChild()->height() : 224;
m_listview->setMinimumSize(w,h);
- resize(sizeHint().width(),sizeHint().height()+4);
- connect(m_listview, SIGNAL(doubleClicked(QListViewItem*,const QPoint &,int)), this, SLOT(accept()));
+ resize(tqsizeHint().width(),tqsizeHint().height()+4);
+ connect(m_listview, TQT_SIGNAL(doubleClicked(TQListViewItem*,const TQPoint &,int)), this, TQT_SLOT(accept()));
}
int KileListSelectorBase::currentItem()
{
- QListViewItem *item = m_listview->currentItem();
+ TQListViewItem *item = m_listview->currentItem();
return ( item ) ? m_listview->itemIndex(item) : -1;
}
-void KileListSelectorBase::insertStringList(const QStringList &list)
+void KileListSelectorBase::insertStringList(const TQStringList &list)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
KListViewItem *item = 0L;
for ( it=list.begin(); it!=list.end(); ++it )
{
@@ -82,9 +82,9 @@ void KileListSelectorBase::insertStringList(const QStringList &list)
//////////////////// with single selection ////////////////////
-KileListSelector::KileListSelector(const QStringList &list, const QString &caption, const QString &select, QWidget *parent, const char *name) : KileListSelectorBase(list,caption,select,parent,name)
+KileListSelector::KileListSelector(const TQStringList &list, const TQString &caption, const TQString &select, TQWidget *tqparent, const char *name) : KileListSelectorBase(list,caption,select,tqparent,name)
{
- m_listview->setSelectionMode(QListView::Single);
+ m_listview->setSelectionMode(TQListView::Single);
if ( list.count() > 0 )
m_listview->setSelected(m_listview->firstChild(),true);
@@ -92,17 +92,17 @@ KileListSelector::KileListSelector(const QStringList &list, const QString &capti
//////////////////// with multi selection ////////////////////
-KileListSelectorMultiple::KileListSelectorMultiple(const QStringList &list, const QString &caption, const QString &select, QWidget *parent, const char *name) : KileListSelectorBase(list,caption,select,parent,name)
+KileListSelectorMultiple::KileListSelectorMultiple(const TQStringList &list, const TQString &caption, const TQString &select, TQWidget *tqparent, const char *name) : KileListSelectorBase(list,caption,select,tqparent,name)
{
- m_listview->setSelectionMode(QListView::Extended); // default: Single
+ m_listview->setSelectionMode(TQListView::Extended); // default: Single
}
-const QStringList& KileListSelectorMultiple::selected()
+const TQStringList& KileListSelectorMultiple::selected()
{
m_selectedfiles.clear();
- QPtrList<QListViewItem> list = m_listview->selectedItems();
- QPtrListIterator<QListViewItem> it(list);
+ TQPtrList<TQListViewItem> list = m_listview->selectedItems();
+ TQPtrListIterator<TQListViewItem> it(list);
while ( it.current() )
{
m_selectedfiles.append((*it)->text(0));