CMake findQAD miss map
MapItemBase::offset feature PIValueTreeEdit add custom button to show/hide groups
This commit is contained in:
@@ -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.);
|
||||
|
||||
Reference in New Issue
Block a user