CMake findQAD miss map

MapItemBase::offset feature
PIValueTreeEdit add custom button to show/hide groups
This commit is contained in:
2023-01-26 23:19:28 +03:00
parent 34d2653744
commit 7188e38072
9 changed files with 59 additions and 14 deletions

View File

@@ -30,7 +30,7 @@ void MapItemText::draw(QPainter * p) {
if (str.isEmpty()) return;
p->setPen(pen());
p->setFont(font());
auto br = p->fontMetrics().boundingRect(str);
auto br = p->fontMetrics().boundingRect(str).adjusted(0, 0, 1, 1);
br.translate(-br.topLeft());
if (m_alignment.testFlag(Qt::AlignHCenter)) {
br.translate(-br.center().x(), 0.);