summaryrefslogtreecommitdiff
path: root/src/plugins/bazaar
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2014-05-19 23:31:12 +0300
committerOrgad Shaneh <orgads@gmail.com>2014-05-20 08:51:06 +0200
commitb46064ea152e4583a6182bd198a907f9d4dc818a (patch)
tree594b078622a528bdf6ffb0ba23331250e9fbdb7c /src/plugins/bazaar
parent4e43e2edb4befd28834586dc2f22e31718fdd43c (diff)
downloadqt-creator-b46064ea152e4583a6182bd198a907f9d4dc818a.tar.gz
Bazaar: Avoid repetitive calls
Change-Id: Ia66c949e6ba4931c2107c25967db1348d884afc4 Reviewed-by: Hugues Delorme <delorme.hugues@fougsys.fr>
Diffstat (limited to 'src/plugins/bazaar')
-rw-r--r--src/plugins/bazaar/bazaarclient.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/bazaar/bazaarclient.cpp b/src/plugins/bazaar/bazaarclient.cpp
index f75ed48e4b..db00d7b3d7 100644
--- a/src/plugins/bazaar/bazaarclient.cpp
+++ b/src/plugins/bazaar/bazaarclient.cpp
@@ -319,15 +319,16 @@ public:
const BazaarCommandParameters &p, QWidget *parent = 0) :
VcsBase::VcsBaseEditorParameterWidget(parent), m_client(client), m_params(p)
{
+ BazaarSettings *settings = m_client->settings();
mapSetting(addToggleButton(QLatin1String("--verbose"), tr("Verbose"),
tr("Show files changed in each revision")),
- m_client->settings()->boolPointer(BazaarSettings::logVerboseKey));
+ settings->boolPointer(BazaarSettings::logVerboseKey));
mapSetting(addToggleButton(QLatin1String("--forward"), tr("Forward"),
tr("Show from oldest to newest")),
- m_client->settings()->boolPointer(BazaarSettings::logForwardKey));
+ settings->boolPointer(BazaarSettings::logForwardKey));
mapSetting(addToggleButton(QLatin1String("--include-merges"), tr("Include merges"),
tr("Show merged revisions")),
- m_client->settings()->boolPointer(BazaarSettings::logIncludeMergesKey));
+ settings->boolPointer(BazaarSettings::logIncludeMergesKey));
QList<ComboBoxItem> logChoices;
logChoices << ComboBoxItem(tr("Detailed"), QLatin1String("long"))
@@ -335,7 +336,7 @@ public:
<< ComboBoxItem(tr("One line"), QLatin1String("line"))
<< ComboBoxItem(tr("GNU ChangeLog"), QLatin1String("gnu-changelog"));
mapSetting(addComboBox(QStringList(QLatin1String("--log-format=%1")), logChoices),
- m_client->settings()->stringPointer(BazaarSettings::logFormatKey));
+ settings->stringPointer(BazaarSettings::logFormatKey));
}
void executeCommand()