Commit c0b2a9e4 authored by Ralf Habacker's avatar Ralf Habacker

Fix 'No edit focus after double click on note widget'.

FIXED-IN:2.17.2 (KDE Applications 15.08.2)
BUG: 352740
parent 9631f870
......@@ -36,6 +36,7 @@ NoteDialog::NoteDialog(QWidget * parent, NoteWidget * pNote)
QVBoxLayout *layout = new QVBoxLayout(frame);
layout->addWidget(m_docWidget, 10);
setMinimumSize(600, 250);
m_docWidget->setFocus();
}
/**
......
......@@ -67,6 +67,8 @@ void DocumentationWidget::init(const QString &text)
m_editField->setLineWrapMode(QTextEdit::WidgetWidth);
m_editField->setWordWrapMode(QTextOption::WordWrap);
m_editField->setText(text);
setFocusProxy(m_editField);
QHBoxLayout *layout = new QHBoxLayout(m_box);
layout->addWidget(m_editField);
layout->setMargin(fontMetrics().height());
......
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