Disable OS X focus rect for MinimalLineEditMixin
This commit is contained in:
parent
f8f0c69d79
commit
d4fdbf5190
1
doc/BUGS
1
doc/BUGS
@ -98,7 +98,6 @@ Misc
|
|||||||
windows
|
windows
|
||||||
- Current font handling is rather broken (rejecting invalid values / setting
|
- Current font handling is rather broken (rejecting invalid values / setting
|
||||||
multiple font families) - we should use PyPEG2 instead.
|
multiple font families) - we should use PyPEG2 instead.
|
||||||
- OS X shows focus rectangle in minimal input field.
|
|
||||||
|
|
||||||
Upstream Bugs
|
Upstream Bugs
|
||||||
=============
|
=============
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
"""Misc. widgets used at different places."""
|
"""Misc. widgets used at different places."""
|
||||||
|
|
||||||
from PyQt5.QtCore import pyqtSlot
|
from PyQt5.QtCore import pyqtSlot, Qt
|
||||||
from PyQt5.QtWidgets import QLineEdit
|
from PyQt5.QtWidgets import QLineEdit
|
||||||
from PyQt5.QtGui import QValidator
|
from PyQt5.QtGui import QValidator
|
||||||
|
|
||||||
@ -38,6 +38,7 @@ class MinimalLineEditMixin:
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
""")
|
""")
|
||||||
|
self.setAttribute(Qt.WA_MacShowFocusRect, False)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<{} "{}">'.format(self.__class__.__name__, self.text())
|
return '<{} "{}">'.format(self.__class__.__name__, self.text())
|
||||||
|
Loading…
Reference in New Issue
Block a user