Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/editorview.cpp
Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Line(s) | |||||
175 | { | 175 | { | ||
176 | ui->taskGroup->setVisible(m_model->property("hasTaskProperties").toBool()); | 176 | ui->taskGroup->setVisible(m_model->property("hasTaskProperties").toBool()); | ||
177 | } | 177 | } | ||
178 | 178 | | |||
179 | void EditorView::onTextOrTitleChanged() | 179 | void EditorView::onTextOrTitleChanged() | ||
180 | { | 180 | { | ||
181 | const auto title = m_model->property("title").toString(); | 181 | const auto title = m_model->property("title").toString(); | ||
182 | const auto text = m_model->property("text").toString(); | 182 | const auto text = m_model->property("text").toString(); | ||
183 | const auto fullText = title + '\n' + text; | 183 | const auto fullText = QString(title + '\n' + text); | ||
184 | 184 | | |||
185 | if (ui->textEdit->toPlainText() != fullText) // QPlainTextEdit doesn't do this check | 185 | if (ui->textEdit->toPlainText() != fullText) // QPlainTextEdit doesn't do this check | ||
186 | ui->textEdit->setPlainText(fullText); | 186 | ui->textEdit->setPlainText(fullText); | ||
187 | } | 187 | } | ||
188 | 188 | | |||
189 | void EditorView::onStartDateChanged() | 189 | void EditorView::onStartDateChanged() | ||
190 | { | 190 | { | ||
191 | ui->startDateEdit->setDate(m_model->property("startDate").toDateTime().date()); | 191 | ui->startDateEdit->setDate(m_model->property("startDate").toDateTime().date()); | ||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |