Skip to content

Commit

Permalink
Merge pull request #2623 from cjmayo/no-pyqtconfig
Browse files Browse the repository at this point in the history
[pyqgis-console] Don't import pyqtconfig
  • Loading branch information
m-kuhn committed Jan 4, 2016
2 parents 1c464d6 + 6b42bad commit 49eaf16
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/console/console.py
Expand Up @@ -25,7 +25,6 @@
QSplitter, QTreeWidget, QAction, QFileDialog, QCheckBox, QSizePolicy, QMenu, QGridLayout, QApplication, \
QDesktopServices
from PyQt4.QtGui import QVBoxLayout
from PyQt4 import pyqtconfig
from qgis.utils import iface
from console_sci import ShellScintilla
from console_output import ShellOutputScintilla
Expand Down Expand Up @@ -482,10 +481,7 @@ def __init__(self, parent=None):
self.lineEditFind = QgsFilterLineEdit()
placeHolderTxt = QCoreApplication.translate("PythonConsole", "Enter text to find...")

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

0 comments on commit 49eaf16

Please sign in to comment.