[qet] [2945] bug fix for Qt version older than 4.7

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


Revision: 2945
Author:   blacksun
Date:     2014-03-21 11:39:05 +0100 (Fri, 21 Mar 2014)
Log Message:
-----------
bug fix for Qt version older than 4.7

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

Modified: trunk/sources/ui/linksingleelementwidget.cpp
===================================================================
--- trunk/sources/ui/linksingleelementwidget.cpp	2014-03-21 02:28:47 UTC (rev 2944)
+++ trunk/sources/ui/linksingleelementwidget.cpp	2014-03-21 10:39:05 UTC (rev 2945)
@@ -133,7 +133,9 @@
  */
 void LinkSingleElementWidget::buildSearchField() {
 	search_field = new QLineEdit(this);
+#if QT_VERSION >= 0x040700
 	search_field -> setPlaceholderText(tr("Rechercher"));
+#endif
 	setUpCompleter();
 	connect(search_field, SIGNAL(textChanged(QString)), esw_, SLOT(filter(QString)));
 	ui->header_layout->addWidget(search_field);


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