mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Enable tag bubble eye candy for Qt5 and Mac
This works when building against Qt5, so no reason to hide the cute bubbles from our Mac users anymore. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9c3c2b09a7
commit
aff1bac497
1 changed files with 3 additions and 5 deletions
|
@ -169,12 +169,10 @@ void GroupedLineEdit::keyPressEvent(QKeyEvent *e)
|
||||||
|
|
||||||
void GroupedLineEdit::paintEvent(QPaintEvent *e)
|
void GroupedLineEdit::paintEvent(QPaintEvent *e)
|
||||||
{
|
{
|
||||||
#if !defined __APPLE__
|
#if QT_VERSION >= 0x050000 || !defined __APPLE__
|
||||||
// for reasons we don't understand, yet, touching the painter
|
// for reasons we don't understand, touching the painter
|
||||||
// here (even drawing the fill rect) causes the QPlainTextEdit
|
// here (even drawing the fill rect) causes the QPlainTextEdit
|
||||||
// paintEvent to not draw the text on MacOS.
|
// paintEvent to not draw the text on Qt4 & MacOS.
|
||||||
// So as a workaround until this is better understood we need
|
|
||||||
// to disable the eye candy
|
|
||||||
QTextLine line = document()->findBlock(0).layout()->lineAt(0);
|
QTextLine line = document()->findBlock(0).layout()->lineAt(0);
|
||||||
QPainter painter(viewport());
|
QPainter painter(viewport());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue