Skip to content
Permalink
Browse files

python console setPlaceholderText qt < 4.7 fix

  • Loading branch information
blazek committed May 15, 2013
1 parent 2566841 commit 8f363b570e2043bf4fd4e2d6e8a0541994bb23ea
Showing with 6 additions and 1 deletion.
  1. +6 −1 python/console/console.py
@@ -21,6 +21,7 @@

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import pyqtconfig
from qgis.utils import iface
from console_sci import ShellScintilla
from console_output import ShellOutputScintilla
@@ -466,7 +467,11 @@ def __init__(self, parent=None):
self.layoutFind.setContentsMargins(0, 0, 0, 0)
self.lineEditFind = QgsFilterLineEdit()
placeHolderTxt = QCoreApplication.translate("PythonConsole", "Enter text to find...")
self.lineEditFind.setPlaceholderText(placeHolderTxt)

if pyqtconfig.Configuration().qt_version >= 0x40700:
self.lineEditFind.setPlaceholderText(placeHolderTxt)
else:
self.lineEditFind.setToolTip(placeHolderTxt)
self.findNextButton = QToolButton()
self.findNextButton.setEnabled(False)
toolTipfindNext = QCoreApplication.translate("PythonConsole", "Find Next")

1 comment on commit 8f363b5

@slarosa

This comment has been minimized.

Copy link
Member

@slarosa slarosa commented on 8f363b5 May 15, 2013

Thanks for the fix Radim !

Please sign in to comment.
You can’t perform that action at this time.