Commit a873bd4b authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Improved FormatListEdit on Mac OS X.

parent 5e7c9c28
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "textimportdialog.h" #include "textimportdialog.h"
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QFormLayout>
#include <QPushButton> #include <QPushButton>
#include <QFile> #include <QFile>
#include <QClipboard> #include <QClipboard>
......
...@@ -49,6 +49,7 @@ FormatListEdit::FormatListEdit(const QStringList& labels, ...@@ -49,6 +49,7 @@ FormatListEdit::FormatListEdit(const QStringList& labels,
QHBoxLayout* hlayout = new QHBoxLayout(this); QHBoxLayout* hlayout = new QHBoxLayout(this);
hlayout->setMargin(0); hlayout->setMargin(0);
QFormLayout* formatLayout = new QFormLayout; QFormLayout* formatLayout = new QFormLayout;
formatLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
bool comboBoxCreated = false; bool comboBoxCreated = false;
for (int i = 0; i < labels.size(); ++i) { for (int i = 0; i < labels.size(); ++i) {
const QString& label = labels.at(i); const QString& label = labels.at(i);
...@@ -76,6 +77,7 @@ FormatListEdit::FormatListEdit(const QStringList& labels, ...@@ -76,6 +77,7 @@ FormatListEdit::FormatListEdit(const QStringList& labels,
} }
hlayout->addLayout(formatLayout); hlayout->addLayout(formatLayout);
QVBoxLayout* vlayout = new QVBoxLayout; QVBoxLayout* vlayout = new QVBoxLayout;
vlayout->setSpacing(2);
m_addPushButton = new QPushButton(i18n("&Add")); m_addPushButton = new QPushButton(i18n("&Add"));
m_addPushButton->setAutoDefault(false); m_addPushButton->setAutoDefault(false);
m_removePushButton = new QPushButton(i18n("&Remove")); m_removePushButton = new QPushButton(i18n("&Remove"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment