diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
commit | d7633c195a464e4d344ada9eea61afd10110598a (patch) | |
tree | 1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnfrontend/copymoveview_impl.cpp | |
parent | 3fa7eb804f67b2789f128075cc2522f398640250 (diff) | |
download | tdesvn-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/copymoveview_impl.cpp')
-rw-r--r-- | src/svnfrontend/copymoveview_impl.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/svnfrontend/copymoveview_impl.cpp b/src/svnfrontend/copymoveview_impl.cpp index 24d3114..bfcd2ea 100644 --- a/src/svnfrontend/copymoveview_impl.cpp +++ b/src/svnfrontend/copymoveview_impl.cpp @@ -21,15 +21,15 @@ #include "copymoveview_impl.h" #include <ksqueezedtextlabel.h> -#include <qcheckbox.h> -#include <qlabel.h> +#include <tqcheckbox.h> +#include <tqlabel.h> #include <klineedit.h> #include <klocale.h> #include <kdialogbase.h> -#include <qvbox.h> +#include <tqvbox.h> -CopyMoveView_impl::CopyMoveView_impl(const QString&baseName,const QString&sourceName,bool move,QWidget* parent, const char* name, WFlags fl) -: CopyMoveView(parent,name,fl) +CopyMoveView_impl::CopyMoveView_impl(const TQString&baseName,const TQString&sourceName,bool move,TQWidget* tqparent, const char* name, WFlags fl) +: CopyMoveView(tqparent,name,fl) { m_BaseName = baseName; if (m_BaseName.length()>0 && !m_BaseName.endsWith("/")) { @@ -39,7 +39,7 @@ CopyMoveView_impl::CopyMoveView_impl(const QString&baseName,const QString&source m_OldNameLabel->setText("<b>"+sourceName+"</b>"); m_OldName = sourceName; if (m_BaseName.length()>0) { - QString t = m_OldName.right(m_OldName.length()-m_BaseName.length()); + TQString t = m_OldName.right(m_OldName.length()-m_BaseName.length()); m_NewNameInput->setText(t); } else { m_PrefixLabel->hide(); @@ -61,7 +61,7 @@ CopyMoveView_impl::~CopyMoveView_impl() /*! \fn CopyMoveView_impl::newName() */ -QString CopyMoveView_impl::newName() +TQString CopyMoveView_impl::newName() { return m_BaseName+m_NewNameInput->text(); } @@ -77,19 +77,19 @@ bool CopyMoveView_impl::force() /*! - \fn CopyMoveView_impl::getMoveCopyTo(bool*ok,bool*force,const QString&old,const QString&base,QWidget*) + \fn CopyMoveView_impl::getMoveCopyTo(bool*ok,bool*force,const TQString&old,const TQString&base,TQWidget*) */ -QString CopyMoveView_impl::getMoveCopyTo(bool*ok,bool*force,bool move, - const QString&old,const QString&base,QWidget*parent,const char*name) +TQString CopyMoveView_impl::getMoveCopyTo(bool*ok,bool*force,bool move, + const TQString&old,const TQString&base,TQWidget*tqparent,const char*name) { - KDialogBase dlg(parent,name,true,(move?i18n("Move/Rename file/dir"):i18n("Copy file/dir")), + KDialogBase dlg(tqparent,name,true,(move?i18n("Move/Rename file/dir"):i18n("Copy file/dir")), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::NoDefault); - QWidget* Dialog1Layout = dlg.makeVBoxMainWidget(); + TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget(); CopyMoveView_impl*ptr=new CopyMoveView_impl(base,old,(move),Dialog1Layout); - QString nName = QString::null; - dlg.resize( QSize(500,160).expandedTo(dlg.minimumSizeHint()) ); - if (dlg.exec()!=QDialog::Accepted) { + TQString nName = TQString(); + dlg.resize( TQSize(500,160).expandedTo(dlg.tqminimumSizeHint()) ); + if (dlg.exec()!=TQDialog::Accepted) { if (ok) *ok = false; } else { if (force) *force = ptr->force(); |