Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateviewhelpers.cpp
Context not available. | |||||
1441 | { | 1441 | { | ||
---|---|---|---|---|---|
1442 | setAcceptDrops(true); | 1442 | setAcceptDrops(true); | ||
1443 | setAttribute(Qt::WA_StaticContents); | 1443 | setAttribute(Qt::WA_StaticContents); | ||
1444 | | ||||
1445 | // See: https://doc.qt.io/qt-5/qwidget.html#update. As this widget does not | ||||
1446 | // have a background, there's no need for Qt to erase the widget's area | ||||
1447 | // before repainting. Enabling this prevents flickering when the widget is | ||||
1448 | // repainted. | ||||
1449 | setAttribute(Qt::WA_OpaquePaintEvent); | ||||
1450 | | ||||
1444 | setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum); | 1451 | setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum); | ||
1445 | setMouseTracking(true); | 1452 | setMouseTracking(true); | ||
1446 | m_doc->setMarkDescription(MarkInterface::markType01, i18n("Bookmark")); | 1453 | m_doc->setMarkDescription(MarkInterface::markType01, i18n("Bookmark")); | ||
Context not available. |