Commit a873bd4b authored by Urs Fleisch's avatar Urs Fleisch

Improved FormatListEdit on Mac OS X.

parent 5e7c9c28
......@@ -26,7 +26,6 @@
#include "textimportdialog.h"
#include <QHBoxLayout>
#include <QFormLayout>
#include <QPushButton>
#include <QFile>
#include <QClipboard>
......
......@@ -49,6 +49,7 @@ FormatListEdit::FormatListEdit(const QStringList& labels,
QHBoxLayout* hlayout = new QHBoxLayout(this);
hlayout->setMargin(0);
QFormLayout* formatLayout = new QFormLayout;
formatLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
bool comboBoxCreated = false;
for (int i = 0; i < labels.size(); ++i) {
const QString& label = labels.at(i);
......@@ -76,6 +77,7 @@ FormatListEdit::FormatListEdit(const QStringList& labels,
}
hlayout->addLayout(formatLayout);
QVBoxLayout* vlayout = new QVBoxLayout;
vlayout->setSpacing(2);
m_addPushButton = new QPushButton(i18n("&Add"));
m_addPushButton->setAutoDefault(false);
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