summaryrefslogtreecommitdiffstats
path: root/src/linguist/linguist/messageeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/linguist/linguist/messageeditor.cpp')
-rw-r--r--src/linguist/linguist/messageeditor.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/linguist/linguist/messageeditor.cpp b/src/linguist/linguist/messageeditor.cpp
index 58ad47088..b02aa1859 100644
--- a/src/linguist/linguist/messageeditor.cpp
+++ b/src/linguist/linguist/messageeditor.cpp
@@ -134,14 +134,14 @@ void MessageEditor::setupEditorPage()
QBoxLayout *subLayout = new QVBoxLayout;
- subLayout->setMargin(5);
+ subLayout->setContentsMargins(5, 5, 5, 5);
subLayout->addWidget(m_source);
subLayout->addWidget(m_pluralSource);
subLayout->addWidget(m_commentText);
m_layout = new QVBoxLayout;
m_layout->setSpacing(2);
- m_layout->setMargin(2);
+ m_layout->setContentsMargins(2, 2, 2, 2);
m_layout->addLayout(subLayout);
m_layout->addStretch(1);
editorPage->setLayout(m_layout);
@@ -199,7 +199,7 @@ void MessageEditor::messageModelAppended()
connect(ed.transCommentText, SIGNAL(cursorPositionChanged()), SLOT(resetHoverSelection()));
fixTabOrder();
QBoxLayout *box = new QVBoxLayout(ed.container);
- box->setMargin(5);
+ box->setContentsMargins(5, 5, 5, 5);
box->addWidget(ed.transCommentText);
box->addSpacing(ed.transCommentText->getEditor()->fontMetrics().height() / 2);
m_layout->addWidget(ed.container);
@@ -318,7 +318,8 @@ void MessageEditor::reallyFixTabOrder()
}
}
-/*! internal
+/*
+ \internal
Returns all translations for an item.
The number of translations is dependent on if we have a plural form or not.
If we don't have a plural form, then this should only contain one item.