[TD] TaskRichAnno tr to fix Qt4 build

This commit is contained in:
donovaly
2020-02-02 17:16:19 +01:00
committed by WandererFan
parent 72e55ca8a3
commit 61005608ca
2 changed files with 7 additions and 5 deletions

View File

@@ -202,9 +202,14 @@ void TaskRichAnno::setUiPrimary()
ui->cpFrameColor->setColor(prefLineColor().asValue<QColor>());
// set a default font size, use for this the preferences setting
MRichTextEdit mre;
MRichTextEdit mre;
ui->teAnnoText->setFontPointSize(mre.getDefFontSizeNum());
// set a placeholder text to inform the user
// (QTextEdit has no placeholderText property in Qt4)
#if QT_VERSION >= 0x050200
ui->teAnnoText->setPlaceholderText(QString::fromLatin1("Input the annotation text directly or start the rich text editor"));
#else
#endif
}
void TaskRichAnno::enableTextUi(bool b)

View File

@@ -108,9 +108,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="placeholderText">
<string>Input the annotation text directly or start the rich text editor</string>
</property>
</widget>
</item>
<item row="4" column="0">