summaryrefslogtreecommitdiffstats
path: root/vcs/perforce/commitdlg.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/perforce/commitdlg.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/perforce/commitdlg.cpp')
-rw-r--r--vcs/perforce/commitdlg.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/vcs/perforce/commitdlg.cpp b/vcs/perforce/commitdlg.cpp
index 8a9be561..a6aa98b9 100644
--- a/vcs/perforce/commitdlg.cpp
+++ b/vcs/perforce/commitdlg.cpp
@@ -12,11 +12,11 @@
#include "commitdlg.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtextedit.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqtextedit.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
#include <kprocess.h>
#include <kapplication.h>
#include <klocale.h>
@@ -28,38 +28,38 @@
#include "execcommand.h"
-CommitDialog::CommitDialog( QWidget *parent, const char *name )
+CommitDialog::CommitDialog( TQWidget *parent, const char *name )
: KDialogBase( parent, name, true, i18n("Perforce Submit"), Ok|Cancel|Details )
{
- QWidget *w = new QWidget( this, "main widget" );
+ TQWidget *w = new TQWidget( this, "main widget" );
setMainWidget( w );
- edit = new QTextEdit( w );
- QFontMetrics fm(edit->fontMetrics());
+ edit = new TQTextEdit( w );
+ TQFontMetrics fm(edit->fontMetrics());
edit->setMinimumSize(fm.width("0")*40, fm.lineSpacing()*3);
- QVBoxLayout *layout = new QVBoxLayout( w, 0, spacingHint() );
- QLabel *editLabel = new QLabel(i18n("&Enter description:"), w);
+ TQVBoxLayout *layout = new TQVBoxLayout( w, 0, spacingHint() );
+ TQLabel *editLabel = new TQLabel(i18n("&Enter description:"), w);
editLabel->setBuddy(edit);
layout->addWidget(editLabel);
layout->addWidget(edit);
- w = new QWidget( this, "details widget" );
+ w = new TQWidget( this, "details widget" );
clientEdit = new KLineEdit( w );
userEdit = new KLineEdit( w );
filesBox = new KListBox( w );
- layout = new QVBoxLayout( w, 0, spacingHint() );
- QLabel *clientLabel = new QLabel(i18n("C&lient:"), w);
+ layout = new TQVBoxLayout( w, 0, spacingHint() );
+ TQLabel *clientLabel = new TQLabel(i18n("C&lient:"), w);
clientLabel->setBuddy(clientEdit);
layout->addWidget(clientLabel);
layout->addWidget( clientEdit );
- QLabel *userLabel = new QLabel(i18n("&User:"), w);
+ TQLabel *userLabel = new TQLabel(i18n("&User:"), w);
userLabel->setBuddy(userEdit);
layout->addWidget( userLabel );
layout->addWidget( userEdit );
- QLabel *filesLabel = new QLabel(i18n("&File(s):"), w);
+ TQLabel *filesLabel = new TQLabel(i18n("&File(s):"), w);
filesLabel->setBuddy(filesBox);
layout->addWidget( filesLabel );
layout->addWidget( filesBox );
@@ -79,49 +79,49 @@ void CommitDialog::autoGuess()
cenv = getenv( "P4USER" );
if ( cenv ) {
- setUser( QString::fromLocal8Bit( cenv ) );
+ setUser( TQString::fromLocal8Bit( cenv ) );
}
cenv = getenv( "P4CLIENT" );
if ( cenv ) {
- setClient( QString::fromLocal8Bit( cenv ) );
+ setClient( TQString::fromLocal8Bit( cenv ) );
}
}
-void CommitDialog::setFiles( const QStringList& lst )
+void CommitDialog::setFiles( const TQStringList& lst )
{
filesBox->clear();
setDepotFiles( lst );
}
-void CommitDialog::setDepotFiles( const QStringList& lst )
+void CommitDialog::setDepotFiles( const TQStringList& lst )
{
- QStringList args;
+ TQStringList args;
args << "files";
- for ( QStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it ) {
+ for ( TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it ) {
args << (*it);
}
- ExecCommand* cmd = new ExecCommand( "p4", args, QString::null, QStringList(), this );
- connect( cmd, SIGNAL(finished( const QString&, const QString& )),
- this, SLOT(getFilesFinished( const QString&, const QString& )) );
+ ExecCommand* cmd = new ExecCommand( "p4", args, TQString::null, TQStringList(), this );
+ connect( cmd, TQT_SIGNAL(finished( const TQString&, const TQString& )),
+ this, TQT_SLOT(getFilesFinished( const TQString&, const TQString& )) );
}
-void CommitDialog::getFilesFinished( const QString& out, const QString& /* err */ )
+void CommitDialog::getFilesFinished( const TQString& out, const TQString& /* err */ )
{
- QStringList lst = QStringList::split( QChar('\n'), out );
- for ( QStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it ) {
- int pos = (*it).find( QChar('#') );
+ TQStringList lst = TQStringList::split( TQChar('\n'), out );
+ for ( TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it ) {
+ int pos = (*it).find( TQChar('#') );
if ( pos > 1 && (*it).startsWith( "//" ) ) {
filesBox->insertItem( (*it).left( pos ) );
}
}
}
-QString CommitDialog::changeList() const
+TQString CommitDialog::changeList() const
{
- QString lst;
+ TQString lst;
lst += "Change: new\n"
"Client: " + client() + "\n"
@@ -129,7 +129,7 @@ QString CommitDialog::changeList() const
"Status: new\n"
"Description:\n ";
- lst += logMessage().replace(QRegExp("\n"), "\n ") + "\n\n";
+ lst += logMessage().replace(TQRegExp("\n"), "\n ") + "\n\n";
lst += "Files:\n";