summaryrefslogtreecommitdiffstats
path: root/vcs/perforce/commitdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vcs/perforce/commitdlg.cpp')
-rw-r--r--vcs/perforce/commitdlg.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/vcs/perforce/commitdlg.cpp b/vcs/perforce/commitdlg.cpp
index a6aa98b9..2f119ed2 100644
--- a/vcs/perforce/commitdlg.cpp
+++ b/vcs/perforce/commitdlg.cpp
@@ -28,8 +28,8 @@
#include "execcommand.h"
-CommitDialog::CommitDialog( TQWidget *parent, const char *name )
- : KDialogBase( parent, name, true, i18n("Perforce Submit"), Ok|Cancel|Details )
+CommitDialog::CommitDialog( TQWidget *tqparent, const char *name )
+ : KDialogBase( tqparent, name, true, i18n("Perforce Submit"), Ok|Cancel|Details )
{
TQWidget *w = new TQWidget( this, "main widget" );
setMainWidget( w );
@@ -38,11 +38,11 @@ CommitDialog::CommitDialog( TQWidget *parent, const char *name )
TQFontMetrics fm(edit->fontMetrics());
edit->setMinimumSize(fm.width("0")*40, fm.lineSpacing()*3);
- TQVBoxLayout *layout = new TQVBoxLayout( w, 0, spacingHint() );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( w, 0, spacingHint() );
TQLabel *editLabel = new TQLabel(i18n("&Enter description:"), w);
editLabel->setBuddy(edit);
- layout->addWidget(editLabel);
- layout->addWidget(edit);
+ tqlayout->addWidget(editLabel);
+ tqlayout->addWidget(edit);
w = new TQWidget( this, "details widget" );
@@ -50,19 +50,19 @@ CommitDialog::CommitDialog( TQWidget *parent, const char *name )
userEdit = new KLineEdit( w );
filesBox = new KListBox( w );
- layout = new TQVBoxLayout( w, 0, spacingHint() );
+ tqlayout = new TQVBoxLayout( w, 0, spacingHint() );
TQLabel *clientLabel = new TQLabel(i18n("C&lient:"), w);
clientLabel->setBuddy(clientEdit);
- layout->addWidget(clientLabel);
- layout->addWidget( clientEdit );
+ tqlayout->addWidget(clientLabel);
+ tqlayout->addWidget( clientEdit );
TQLabel *userLabel = new TQLabel(i18n("&User:"), w);
userLabel->setBuddy(userEdit);
- layout->addWidget( userLabel );
- layout->addWidget( userEdit );
+ tqlayout->addWidget( userLabel );
+ tqlayout->addWidget( userEdit );
TQLabel *filesLabel = new TQLabel(i18n("&File(s):"), w);
filesLabel->setBuddy(filesBox);
- layout->addWidget( filesLabel );
- layout->addWidget( filesBox );
+ tqlayout->addWidget( filesLabel );
+ tqlayout->addWidget( filesBox );
setDetailsWidget( w );
autoGuess();
@@ -103,7 +103,7 @@ void CommitDialog::setDepotFiles( const TQStringList& lst )
args << (*it);
}
- ExecCommand* cmd = new ExecCommand( "p4", args, TQString::null, TQStringList(), this );
+ ExecCommand* cmd = new ExecCommand( "p4", args, TQString(), TQStringList(), TQT_TQOBJECT(this) );
connect( cmd, TQT_SIGNAL(finished( const TQString&, const TQString& )),
this, TQT_SLOT(getFilesFinished( const TQString&, const TQString& )) );
}
@@ -112,7 +112,7 @@ void CommitDialog::getFilesFinished( const TQString& out, const TQString& /* err
{
TQStringList lst = TQStringList::split( TQChar('\n'), out );
for ( TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it ) {
- int pos = (*it).find( TQChar('#') );
+ int pos = (*it).tqfind( TQChar('#') );
if ( pos > 1 && (*it).startsWith( "//" ) ) {
filesBox->insertItem( (*it).left( pos ) );
}
@@ -126,10 +126,10 @@ TQString CommitDialog::changeList() const
lst += "Change: new\n"
"Client: " + client() + "\n"
"User: " + user() + "\n"
- "Status: new\n"
+ "tqStatus: new\n"
"Description:\n ";
- lst += logMessage().replace(TQRegExp("\n"), "\n ") + "\n\n";
+ lst += logMessage().tqreplace(TQRegExp("\n"), "\n ") + "\n\n";
lst += "Files:\n";