File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 21
21
22
22
from PyQt4 .QtCore import *
23
23
from PyQt4 .QtGui import *
24
+ from PyQt4 import pyqtconfig
24
25
from qgis .utils import iface
25
26
from console_sci import ShellScintilla
26
27
from console_output import ShellOutputScintilla
@@ -466,7 +467,11 @@ def __init__(self, parent=None):
466
467
self .layoutFind .setContentsMargins (0 , 0 , 0 , 0 )
467
468
self .lineEditFind = QgsFilterLineEdit ()
468
469
placeHolderTxt = QCoreApplication .translate ("PythonConsole" , "Enter text to find..." )
469
- self .lineEditFind .setPlaceholderText (placeHolderTxt )
470
+
471
+ if pyqtconfig .Configuration ().qt_version >= 0x40700 :
472
+ self .lineEditFind .setPlaceholderText (placeHolderTxt )
473
+ else :
474
+ self .lineEditFind .setToolTip (placeHolderTxt )
470
475
self .findNextButton = QToolButton ()
471
476
self .findNextButton .setEnabled (False )
472
477
toolTipfindNext = QCoreApplication .translate ("PythonConsole" , "Find Next" )
You can’t perform that action at this time.
0 commit comments