summaryrefslogtreecommitdiffstats
path: root/vcs/subversion/svn_fileselectdlg_commit.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 /vcs/subversion/svn_fileselectdlg_commit.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 'vcs/subversion/svn_fileselectdlg_commit.cpp')
-rw-r--r--vcs/subversion/svn_fileselectdlg_commit.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/vcs/subversion/svn_fileselectdlg_commit.cpp b/vcs/subversion/svn_fileselectdlg_commit.cpp
index 6217db56..0c014a9d 100644
--- a/vcs/subversion/svn_fileselectdlg_commit.cpp
+++ b/vcs/subversion/svn_fileselectdlg_commit.cpp
@@ -23,10 +23,10 @@
#include "subversion_fileinfo.h"
#include "subversion_part.h"
#include <kurl.h>
-#include <qstring.h>
-#include <qlistview.h>
-#include <qfileinfo.h>
-#include <qcheckbox.h>
+#include <tqstring.h>
+#include <tqlistview.h>
+#include <tqfileinfo.h>
+#include <tqcheckbox.h>
#include <kdebug.h>
#include <kmessagebox.h>
#include "kdevmainwindow.h"
@@ -34,7 +34,7 @@
#include <kdevproject.h>
-SVNFileSelectDlgCommit::SVNFileSelectDlgCommit( KURL::List &urls, subversionPart *part, QWidget* parent)
+SVNFileSelectDlgCommit::SVNFileSelectDlgCommit( KURL::List &urls, subversionPart *part, TQWidget* parent)
:SvnCommitDlgBase( parent, "svnfileselectcommitdlg", true )
,m_part(part)
{
@@ -43,7 +43,7 @@ SVNFileSelectDlgCommit::SVNFileSelectDlgCommit( KURL::List &urls, subversionPart
listView()->setColumnText(0, i18n("select") ); //col 0
listView()->addColumn( i18n("status") ); //col 1
listView()->addColumn( i18n("URL to commit") ); //col 2
- listView()->setColumnWidthMode( 2, QListView::Maximum );
+ listView()->setColumnWidthMode( 2, TQListView::Maximum );
listView()->setSorting( 2, true );
recursiveChk->setChecked(false);
keepLocksChk->setChecked(false);
@@ -53,14 +53,14 @@ SVNFileSelectDlgCommit::SVNFileSelectDlgCommit( KURL::List &urls, subversionPart
VCSFileInfo vcsInfo;
KURL::List tobeCommittedUrls;
- for( QValueListConstIterator<KURL> it = urls.begin(); it != urls.end(); ++it ){
+ for( TQValueListConstIterator<KURL> it = urls.begin(); it != urls.end(); ++it ){
KURL oneUrl(*it);
- QFileInfo fileInfo(oneUrl.path());
+ TQFileInfo fileInfo(oneUrl.path());
//fileInfo.convertToAbs();
if (fileInfo.isFile()){
KURL base_url( part->project()->projectDirectory()+"/" );
- QString dirPath = KURL::relativeURL( base_url, fileInfo.dirPath(TRUE) );
+ TQString dirPath = KURL::relativeURL( base_url, fileInfo.dirPath(TRUE) );
vcsMap = ((SVNFileInfoProvider*)part->fileInfoProvider()) ->
statusExt(dirPath, false/*repository access*/, true/*recurse*/, false/*getall*/, true/*noIgnore*/);
vcsInfo = (*vcsMap)[fileInfo.fileName()];
@@ -78,14 +78,14 @@ SVNFileSelectDlgCommit::SVNFileSelectDlgCommit( KURL::List &urls, subversionPart
}
else if (fileInfo.isDir()){
KURL base_url( part->project()->projectDirectory()+"/" );
- QString dirPath = KURL::relativeURL( base_url, fileInfo.absFilePath() );
+ TQString dirPath = KURL::relativeURL( base_url, fileInfo.absFilePath() );
vcsMap = ((SVNFileInfoProvider*)part->fileInfoProvider()) ->
statusExt(dirPath, false/*repository access*/, true/*recurse*/, false/*getall*/, true/*noIgnore*/);
for (VCSFileInfoMap::ConstIterator it=vcsMap->begin(); it!=vcsMap->end(); ++it){
vcsInfo = it.data();
-// QString absPathStr( fileInfo.absFilePath() + "/" + it.key() );
- QString absPathStr( fileInfo.filePath() + "/" + it.key() );
+// TQString absPathStr( fileInfo.absFilePath() + "/" + it.key() );
+ TQString absPathStr( fileInfo.filePath() + "/" + it.key() );
KURL urlFromStatus( absPathStr );
if( vcsInfo.state == VCSFileInfo::Added || vcsInfo.state == VCSFileInfo::Modified ||
vcsInfo.state == VCSFileInfo::Deleted || vcsInfo.state == VCSFileInfo::Replaced){
@@ -116,28 +116,28 @@ int SVNFileSelectDlgCommit::exec()
{
if (listView()->childCount() <= 0){
//TODO if klauncher fails, this spot is also reached. We should show correct error message to user
- KMessageBox::information( (QWidget*)m_part->project()->mainWindow()->main(), i18n("No added/modified/deleted file(s) to commit") );
- return QDialog::Rejected;
+ KMessageBox::information( (TQWidget*)m_part->project()->mainWindow()->main(), i18n("No added/modified/deleted file(s) to commit") );
+ return TQDialog::Rejected;
}
else{
return SvnCommitDlgBase::exec();
}
}
-void SVNFileSelectDlgCommit::insertItem( QString status, KURL url )
+void SVNFileSelectDlgCommit::insertItem( TQString status, KURL url )
{
- QCheckListItem *item = new QCheckListItem( listView(), "", QCheckListItem::CheckBox );
+ TQCheckListItem *item = new TQCheckListItem( listView(), "", TQCheckListItem::CheckBox );
item->setText( 1, status );
item->setText( 2, url.path() );
item->setOn(true);
}
KURL::List SVNFileSelectDlgCommit::checkedUrls()
{
- QPtrList<QListViewItem> lst;
- QListViewItemIterator it( listView() );
+ TQPtrList<TQListViewItem> lst;
+ TQListViewItemIterator it( listView() );
KURL::List tobeCommittedUrls;
for ( ; it.current() ; ++it ) {
- if ( ((QCheckListItem*)(it.current()))->isOn() ){
+ if ( ((TQCheckListItem*)(it.current()))->isOn() ){
KURL tmpurl( it.current()->text(2) );
tobeCommittedUrls.push_back( tmpurl );
}
@@ -145,7 +145,7 @@ KURL::List SVNFileSelectDlgCommit::checkedUrls()
return tobeCommittedUrls;
}
-QListView* SVNFileSelectDlgCommit::listView()
+TQListView* SVNFileSelectDlgCommit::listView()
{
return listView1;
}