[TD] TaskRichAnno tr to fix Qt4 build
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user