summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-12-08 14:38:08 (GMT)
committerMontel Laurent <montel@kde.org>2016-12-08 14:38:08 (GMT)
commitf0a92d7fb388bf1f3e8a850df9782da955c64942 (patch)
treea41f56d362c398c75a75c781f432faf635fe81b9
parent5b85e93f400f9195c120de117f4bdd61d23c4b12 (diff)
Remove duplicate margin + extra widgetv16.12.0
-rw-r--r--src/titler/unicodedialog.cpp7
-rw-r--r--src/ui/unicodewidget_ui.ui21
2 files changed, 15 insertions, 13 deletions
diff --git a/src/titler/unicodedialog.cpp b/src/titler/unicodedialog.cpp
index 46120a6..72c14cf 100644
--- a/src/titler/unicodedialog.cpp
+++ b/src/titler/unicodedialog.cpp
@@ -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);
diff --git a/src/ui/unicodewidget_ui.ui b/src/ui/unicodewidget_ui.ui
index ad0599d..bc5af98 100644
--- a/src/ui/unicodewidget_ui.ui
+++ b/src/ui/unicodewidget_ui.ui
@@ -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>