summaryrefslogtreecommitdiff
path: root/src/plugins/bazaar/pullorpushdialog.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2011-02-28 15:05:40 +0100
committerTobias Hunger <tobias.hunger@nokia.com>2011-02-28 16:10:47 +0100
commit3adb533ad747cf34ecbd18cd80c3a0f8fdf34e4b (patch)
tree416eaa668b4232fbba6ca3683b70163bd1873998 /src/plugins/bazaar/pullorpushdialog.cpp
parentf9bb4c59dc75c32e4162d02141eaf1602fbda4c8 (diff)
downloadqt-creator-3adb533ad747cf34ecbd18cd80c3a0f8fdf34e4b.tar.gz
Bazaar: Cleanups
Clean up whitespaces and coding style issues.
Diffstat (limited to 'src/plugins/bazaar/pullorpushdialog.cpp')
-rw-r--r--src/plugins/bazaar/pullorpushdialog.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/plugins/bazaar/pullorpushdialog.cpp b/src/plugins/bazaar/pullorpushdialog.cpp
index 75b90dbbef..7bb0204b21 100644
--- a/src/plugins/bazaar/pullorpushdialog.cpp
+++ b/src/plugins/bazaar/pullorpushdialog.cpp
@@ -44,14 +44,11 @@ PullOrPushDialog::PullOrPushDialog(Mode mode, QWidget *parent) :
{
m_ui->setupUi(this);
m_ui->localPathChooser->setExpectedKind(Utils::PathChooser::Directory);
- if (m_mode == PullMode)
- {
+ if (m_mode == PullMode) {
this->setWindowTitle(tr("Pull source"));
m_ui->useExistingDirCheckBox->setVisible(false);
m_ui->createPrefixCheckBox->setVisible(false);
- }
- else
- {
+ } else {
this->setWindowTitle(tr("Push destination"));
m_ui->localCheckBox->setVisible(false);
}
@@ -67,18 +64,16 @@ QString PullOrPushDialog::branchLocation() const
{
if (m_ui->defaultButton->isChecked())
return QString();
- else if (m_ui->localButton->isChecked())
+ if (m_ui->localButton->isChecked())
return m_ui->localPathChooser->path();
- else
- return m_ui->urlLineEdit->text();
+ return m_ui->urlLineEdit->text();
}
bool PullOrPushDialog::isRememberOptionEnabled() const
{
if (m_ui->defaultButton->isChecked())
return false;
- else
- return m_ui->rememberCheckBox->isChecked();
+ return m_ui->rememberCheckBox->isChecked();
}
bool PullOrPushDialog::isOverwriteOptionEnabled() const