Commit f0a92d7f authored by Laurent Montel's avatar Laurent Montel

Remove duplicate margin + extra widget

parent 5b85e93f
......@@ -28,11 +28,8 @@ UnicodeDialog::UnicodeDialog(InputMethod inputMeth, QWidget *parent)
: QDialog(parent)
{
setWindowTitle( i18n("Details") );
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
mainLayout->addWidget(mainWidget);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel, this);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......
......@@ -20,6 +20,18 @@
<string>Enter Unicode value</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QFrame" name="frame">
<property name="sizePolicy">
......@@ -265,7 +277,7 @@
<enum>QFrame::Plain</enum>
</property>
<property name="documentTitle">
<string notr="true"></string>
<string notr="true"/>
</property>
<property name="readOnly">
<bool>true</bool>
......@@ -319,13 +331,6 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
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