summaryrefslogtreecommitdiffstats
path: root/cervisia/addrepositorydlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /cervisia/addrepositorydlg.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/addrepositorydlg.cpp')
-rw-r--r--cervisia/addrepositorydlg.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/cervisia/addrepositorydlg.cpp b/cervisia/addrepositorydlg.cpp
index c370b02a..8a4d05fd 100644
--- a/cervisia/addrepositorydlg.cpp
+++ b/cervisia/addrepositorydlg.cpp
@@ -33,17 +33,17 @@
AddRepositoryDialog::AddRepositoryDialog(KConfig& cfg, const TQString& repo,
- TQWidget* parent, const char* name)
- : KDialogBase(parent, name, true, i18n("Add Repository"),
+ TQWidget* tqparent, const char* name)
+ : KDialogBase(tqparent, name, true, i18n("Add Repository"),
Ok | Cancel, Ok, true)
, partConfig(cfg)
{
TQFrame* mainWidget = makeMainWidget();
- TQBoxLayout* layout = new TQVBoxLayout(mainWidget, 0, spacingHint());
+ TQBoxLayout* tqlayout = new TQVBoxLayout(mainWidget, 0, spacingHint());
TQLabel* repo_label = new TQLabel(i18n("&Repository:"), mainWidget);
- layout->addWidget(repo_label);
+ tqlayout->addWidget(repo_label);
repo_edit = new KLineEdit(mainWidget);
repo_edit->setFocus();
@@ -53,33 +53,33 @@ AddRepositoryDialog::AddRepositoryDialog(KConfig& cfg, const TQString& repo,
repo_edit->setText(repo);
repo_edit->setEnabled(false);
}
- layout->addWidget(repo_edit);
+ tqlayout->addWidget(repo_edit);
TQLabel* rsh_label = new TQLabel(i18n("Use remote &shell (only for :ext: repositories):"), mainWidget);
- layout->addWidget(rsh_label);
+ tqlayout->addWidget(rsh_label);
rsh_edit = new KLineEdit(mainWidget);
rsh_label->setBuddy(rsh_edit);
- layout->addWidget(rsh_edit);
+ tqlayout->addWidget(rsh_edit);
TQLabel* server_label = new TQLabel(i18n("Invoke this program on the server side:"),
mainWidget);
- layout->addWidget(server_label);
+ tqlayout->addWidget(server_label);
server_edit = new KLineEdit(mainWidget);
server_label->setBuddy(server_edit);
- layout->addWidget(server_edit);
+ tqlayout->addWidget(server_edit);
TQHBox* compressionBox = new TQHBox(mainWidget);
m_useDifferentCompression = new TQCheckBox(i18n("Use different &compression level:"), compressionBox);
m_compressionLevel = new KIntNumInput(compressionBox);
m_compressionLevel->setRange(0, 9, 1, false);
- layout->addWidget(compressionBox);
+ tqlayout->addWidget(compressionBox);
m_retrieveCvsignoreFile = new TQCheckBox(i18n("Download cvsignore file from "
"server"), mainWidget);
- layout->addWidget(m_retrieveCvsignoreFile);
+ tqlayout->addWidget(m_retrieveCvsignoreFile);
connect( repo_edit, TQT_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(repoChanged()) );
@@ -180,9 +180,9 @@ void AddRepositoryDialog::repoChanged()
{
TQString repo = repository();
rsh_edit->setEnabled((!repo.startsWith(":pserver:"))
- && repo.contains(":"));
- m_useDifferentCompression->setEnabled(repo.contains(":"));
- if( !repo.contains(":") )
+ && repo.tqcontains(":"));
+ m_useDifferentCompression->setEnabled(repo.tqcontains(":"));
+ if( !repo.tqcontains(":") )
m_compressionLevel->setEnabled(false);
else
compressionToggled(m_useDifferentCompression->isChecked());