Skip to content

Commit ab3ed28

Browse files
committed
Set tab stop to 10 and remove base ui file
1 parent 25ac34c commit ab3ed28

File tree

5 files changed

+16
-44
lines changed

5 files changed

+16
-44
lines changed

src/gui/entry/attachments/TextAttachmentsEditWidget.ui

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
</layout>
5858
</item>
5959
<item>
60-
<widget class="QTextEdit" name="attachmentsTextEdit"/>
60+
<widget class="QTextEdit" name="attachmentsTextEdit">
61+
<property name="tabStopDistance">
62+
<double>10.000000000000000</double>
63+
</property>
64+
</widget>
6165
</item>
6266
</layout>
6367
</widget>

src/gui/entry/attachments/TextAttachmentsPreviewWidget.ui

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@
6161
</layout>
6262
</item>
6363
<item>
64-
<widget class="QTextBrowser" name="previewTextBrowser"/>
64+
<widget class="QTextBrowser" name="previewTextBrowser">
65+
<property name="tabStopDistance">
66+
<double>10.000000000000000</double>
67+
</property>
68+
</widget>
6569
</item>
6670
</layout>
6771
</widget>

src/gui/entry/attachments/TextAttachmentsWidget.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,15 @@
1919
#include "TextAttachmentsEditWidget.h"
2020
#include "TextAttachmentsPreviewWidget.h"
2121

22-
#include "ui_TextAttachmentsWidget.h"
23-
2422
#include <QSplitter>
2523
#include <QTextEdit>
2624
#include <QTimer>
2725

2826
TextAttachmentsWidget::TextAttachmentsWidget(QWidget* parent)
2927
: QWidget(parent)
30-
, m_ui(new Ui::TextAttachmentsWidget())
3128
, m_previewUpdateTimer(new QTimer(this))
3229
, m_mode(attachments::OpenMode::ReadOnly)
3330
{
34-
m_ui->setupUi(this);
3531
initWidget();
3632
}
3733

@@ -118,7 +114,12 @@ void TextAttachmentsWidget::initWidget()
118114
// Prevent collapsing of the edit widget
119115
m_splitter->setCollapsible(0, false);
120116

121-
m_ui->verticalLayout->addWidget(m_splitter);
117+
// Setup this widget with the splitter
118+
auto layout = new QVBoxLayout(this);
119+
layout->setContentsMargins(0, 0, 0, 0);
120+
Layout->addWidget(m_splitter);
121+
setLayout(layout);
122+
setObjectName("TextAttachmentsWidget");
122123

123124
updateWidget();
124125
}

src/gui/entry/attachments/TextAttachmentsWidget.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ private slots:
5050
void initWidget();
5151
void updateWidget();
5252

53-
QScopedPointer<Ui::TextAttachmentsWidget> m_ui;
5453
QPointer<QSplitter> m_splitter;
5554
QPointer<TextAttachmentsEditWidget> m_editWidget;
5655
QPointer<TextAttachmentsPreviewWidget> m_previewWidget;

src/gui/entry/attachments/TextAttachmentsWidget.ui

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)