[qet] qet/qet: [5027] Enclose a class function into a macro because available since Qt 5.3

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5027
Author:   blacksun
Date:     2017-08-24 14:38:35 +0200 (Thu, 24 Aug 2017)
Log Message:
-----------
Enclose a class function into a macro because available since Qt 5.3

Modified Paths:
--------------
    trunk/sources/ui/compositetexteditdialog.cpp
    trunk/sources/ui/compositetexteditdialog.ui

Modified: trunk/sources/ui/compositetexteditdialog.cpp
===================================================================
--- trunk/sources/ui/compositetexteditdialog.cpp	2017-08-23 11:05:10 UTC (rev 5026)
+++ trunk/sources/ui/compositetexteditdialog.cpp	2017-08-24 12:38:35 UTC (rev 5027)
@@ -12,6 +12,9 @@
 	ui->setupUi(this);
 	m_default_text = m_text->compositeText();
 	ui->m_plain_text_edit->setPlainText(m_default_text);
+#if QT_VERSION >= 0x050300
+	ui->m_plain_text_edit->setPlaceholderText(tr("Entrée votre texte composé ici, en vous aidant des variables disponible"));
+#endif
 	setUpComboBox();
 }
 

Modified: trunk/sources/ui/compositetexteditdialog.ui
===================================================================
--- trunk/sources/ui/compositetexteditdialog.ui	2017-08-23 11:05:10 UTC (rev 5026)
+++ trunk/sources/ui/compositetexteditdialog.ui	2017-08-24 12:38:35 UTC (rev 5027)
@@ -35,11 +35,7 @@
     </widget>
    </item>
    <item row="1" column="0" colspan="2">
-    <widget class="QPlainTextEdit" name="m_plain_text_edit">
-     <property name="placeholderText">
-      <string>Entrée votre votre texte composé ici, en vous aidant des variables disponible</string>
-     </property>
-    </widget>
+    <widget class="QPlainTextEdit" name="m_plain_text_edit"/>
    </item>
   </layout>
  </widget>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/