diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-08-06 11:57:06 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-15 05:00:30 -0700 |
commit | b62cf45d59bc953ca074df4bdc2829bbff7010f5 (patch) | |
tree | 20b14e81bcf4eb48c4754a7d1085148f12b9f2d3 /qt-ui/groupedlineedit.cpp | |
parent | 25273a3912ab579f594b377b9b15d805d6e9c183 (diff) | |
download | subsurface-b62cf45d59bc953ca074df4bdc2829bbff7010f5.tar.gz |
Change colors of stars if widget has focus
Some widgets on the main tab don't show any kind of focus indicator on
some systems (like Mac), so it's a good thing to provide another way to
show that they indeed have focus.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/groupedlineedit.cpp')
-rw-r--r-- | qt-ui/groupedlineedit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/groupedlineedit.cpp b/qt-ui/groupedlineedit.cpp index bc948060d..9ce5e175c 100644 --- a/qt-ui/groupedlineedit.cpp +++ b/qt-ui/groupedlineedit.cpp @@ -31,6 +31,10 @@ #include <QScrollBar> #include <QTextBlock> #include <QPainter> +#include <QApplication> +#include <QStyle> +#include <QStyleOptionFocusRect> +#include <QDebug> struct GroupedLineEdit::Private { struct Block { |