From d7633c195a464e4d344ada9eea61afd10110598a Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 4 May 2011 19:54:24 +0000 Subject: 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 --- src/svnfrontend/fronthelpers/propertylist.cpp | 36 +++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/svnfrontend/fronthelpers/propertylist.cpp') 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 -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 (_item); @@ -119,7 +119,7 @@ void Propertylist::slotItemRenamed(QListViewItem*_item,const QString & text,int } if (commitchanges() && item->different()) { svn::PropertiesMap pm; - QValueList dels; + TQValueList 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&,const QString&)), - ob,SLOT(slotChangeProperties(const svn::PropertiesMap&,const QValueList&,const QString&))); + connect(this,TQT_SIGNAL(sigSetProperty(const svn::PropertiesMap&,const TQValueList&,const TQString&)), + ob,TQT_SLOT(slotChangeProperties(const svn::PropertiesMap&,const TQValueList&,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 } -- cgit v1.2.1