summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/fronthelpers/propertylist.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
commitd7633c195a464e4d344ada9eea61afd10110598a (patch)
tree1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnfrontend/fronthelpers/propertylist.cpp
parent3fa7eb804f67b2789f128075cc2522f398640250 (diff)
downloadtdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz
tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/svnfrontend/fronthelpers/propertylist.cpp')
-rw-r--r--src/svnfrontend/fronthelpers/propertylist.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/svnfrontend/fronthelpers/propertylist.cpp b/src/svnfrontend/fronthelpers/propertylist.cpp
index 8fa3b66..118f281 100644
--- a/src/svnfrontend/fronthelpers/propertylist.cpp
+++ b/src/svnfrontend/fronthelpers/propertylist.cpp
@@ -25,8 +25,8 @@
#include <kmessagebox.h>
-Propertylist::Propertylist(QWidget *parent, const char *name)
- : KListView(parent, name),m_commitit(false)
+Propertylist::Propertylist(TQWidget *tqparent, const char *name)
+ : KListView(tqparent, name),m_commitit(false)
{
addColumn(i18n("Property"));
addColumn(i18n("Value"));
@@ -35,10 +35,10 @@ Propertylist::Propertylist(QWidget *parent, const char *name)
setRootIsDecorated(false);
setSortColumn(0);
setAcceptDrops(false);
- connect(this,SIGNAL(itemRenamed(QListViewItem*,const QString&,int)),this,SLOT(slotItemRenamed(QListViewItem*,const QString&,int)));
+ connect(this,TQT_SIGNAL(itemRenamed(TQListViewItem*,const TQString&,int)),this,TQT_SLOT(slotItemRenamed(TQListViewItem*,const TQString&,int)));
- connect(this,SIGNAL(contextMenuRequested(QListViewItem *, const QPoint &, int)),this,
- SLOT(slotContextMenuRequested(QListViewItem *, const QPoint &, int)));
+ connect(this,TQT_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)),this,
+ TQT_SLOT(slotContextMenuRequested(TQListViewItem *, const TQPoint &, int)));
//setFullWidth( TRUE );
}
@@ -47,7 +47,7 @@ Propertylist::~Propertylist()
{
}
-void Propertylist::displayList(const svn::PathPropertiesMapListPtr&propList,bool editable,const QString&aCur)
+void Propertylist::displayList(const svn::PathPropertiesMapListPtr&propList,bool editable,const TQString&aCur)
{
viewport()->setUpdatesEnabled(false);
clear();
@@ -71,7 +71,7 @@ void Propertylist::displayList(const svn::PathPropertiesMapListPtr&propList,bool
}
}
viewport()->setUpdatesEnabled(true);
- viewport()->repaint();
+ viewport()->tqrepaint();
}
void Propertylist::clear()
@@ -80,9 +80,9 @@ void Propertylist::clear()
}
/*!
- \fn PropertiesDlg::slotItemRenamed(QListViewItem*item,const QString & str,int col )
+ \fn PropertiesDlg::slotItemRenamed(TQListViewItem*item,const TQString & str,int col )
*/
-void Propertylist::slotItemRenamed(QListViewItem*_item,const QString & text,int col )
+void Propertylist::slotItemRenamed(TQListViewItem*_item,const TQString & text,int col )
{
if (!_item || _item->rtti()!=PropertyListViewItem::_RTTI_) return;
PropertyListViewItem*item = static_cast<PropertyListViewItem*> (_item);
@@ -119,7 +119,7 @@ void Propertylist::slotItemRenamed(QListViewItem*_item,const QString & text,int
}
if (commitchanges() && item->different()) {
svn::PropertiesMap pm;
- QValueList<QString> dels;
+ TQValueList<TQString> dels;
pm[item->currentName()]=item->currentValue();
if (item->currentName()!=item->startName()){
dels.push_back(item->startName());
@@ -128,12 +128,12 @@ void Propertylist::slotItemRenamed(QListViewItem*_item,const QString & text,int
}
}
-bool Propertylist::checkExisting(const QString&aName,QListViewItem*it)
+bool Propertylist::checkExisting(const TQString&aName,TQListViewItem*it)
{
if (!it) {
- return findItem(aName,0)!=0;
+ return tqfindItem(aName,0)!=0;
}
- QListViewItemIterator iter(this);
+ TQListViewItemIterator iter(this);
while ( iter.current() ) {
if ( iter.current()==it) {
++iter;
@@ -147,18 +147,18 @@ bool Propertylist::checkExisting(const QString&aName,QListViewItem*it)
return false;
}
-void Propertylist::addCallback(QObject*ob)
+void Propertylist::addCallback(TQObject*ob)
{
if (ob) {
- connect(this,SIGNAL(sigSetProperty(const svn::PropertiesMap&,const QValueList<QString>&,const QString&)),
- ob,SLOT(slotChangeProperties(const svn::PropertiesMap&,const QValueList<QString>&,const QString&)));
+ connect(this,TQT_SIGNAL(sigSetProperty(const svn::PropertiesMap&,const TQValueList<TQString>&,const TQString&)),
+ ob,TQT_SLOT(slotChangeProperties(const svn::PropertiesMap&,const TQValueList<TQString>&,const TQString&)));
}
}
/*!
- \fn Propertylist::slotContextMenuRequested(QListViewItem *, const QPoint &, int)
+ \fn Propertylist::slotContextMenuRequested(TQListViewItem *, const TQPoint &, int)
*/
-void Propertylist::slotContextMenuRequested(QListViewItem *, const QPoint &, int)
+void Propertylist::slotContextMenuRequested(TQListViewItem *, const TQPoint &, int)
{
/// @todo implement me
}