diff options
| author | Thorbjørn Lindeijer <[email protected]> | 2011-02-25 15:58:02 +0100 |
|---|---|---|
| committer | Thorbjørn Lindeijer <[email protected]> | 2011-02-25 16:11:20 +0100 |
| commit | 70b70770a41f171be56d348c3427881eeb661968 (patch) | |
| tree | 7682744780ad035b91fdf61ac11add40037414ab /src/plugins/git/gitclient.cpp | |
| parent | b3169701013a01729cead5e0a4a9defd9246f423 (diff) | |
Fixed layout issues in some editor toolbars
Cleaned up some hacky code in the process.
Done-with: Tobias Hunger
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
| -rw-r--r-- | src/plugins/git/gitclient.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 23ac1abc239..3ab49446615 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -106,6 +106,7 @@ public: { QHBoxLayout *layout = new QHBoxLayout(this); layout->setContentsMargins(3, 0, 3, 0); + layout->setSpacing(2); m_patience->setToolTip(tr("Use the patience algorithmn for calculating the diff")); m_patience->setText(tr("Patience")); @@ -236,6 +237,7 @@ public: { QHBoxLayout *layout = new QHBoxLayout(this); layout->setContentsMargins(3, 0, 3, 0); + layout->setSpacing(2); m_prettyFormat->setToolTip(tr("Select the pretty printing format")); m_prettyFormat->addItem(tr("oneline"), QLatin1String("oneline")); @@ -247,6 +249,7 @@ public: m_prettyFormat->addItem(tr("raw"), QLatin1String("raw")); layout->addWidget(m_prettyFormat); m_prettyFormat->setCurrentIndex(m_settings->showPrettyFormat); + m_prettyFormat->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred); connect(m_prettyFormat, SIGNAL(currentIndexChanged(int)), this, SLOT(testForArgumentsChanged())); } @@ -304,6 +307,7 @@ public: { QHBoxLayout *layout = new QHBoxLayout(this); layout->setContentsMargins(3, 0, 3, 0); + layout->setSpacing(2); m_omitDate = new QToolButton; m_omitDate->setToolTip(tr("Do not show the date a change was made in the output")); |
