Create new font for checkmark
This commit is contained in:
parent
2dcc01633e
commit
31eb0a9c88
@ -64,13 +64,14 @@ TimelineItem::init()
|
|||||||
mainLayout_->setContentsMargins(conf::timeline::headerLeftMargin, 0, 0, 0);
|
mainLayout_->setContentsMargins(conf::timeline::headerLeftMargin, 0, 0, 0);
|
||||||
mainLayout_->setSpacing(0);
|
mainLayout_->setSpacing(0);
|
||||||
|
|
||||||
|
QFont checkmarkFont;
|
||||||
|
checkmarkFont.setPixelSize(conf::timeline::fonts::timestamp);
|
||||||
|
|
||||||
// Setting fixed width for checkmark because systems may have a differing width for a
|
// Setting fixed width for checkmark because systems may have a differing width for a
|
||||||
// space and the Unicode checkmark.
|
// space and the Unicode checkmark.
|
||||||
checkmark_ = new QLabel(" ", this);
|
checkmark_ = new QLabel(" ", this);
|
||||||
checkmark_->setFixedWidth(fm.width(CHECKMARK));
|
checkmark_->setFont(checkmarkFont);
|
||||||
checkmark_->setFont(font_);
|
checkmark_->setFixedWidth(QFontMetrics{checkmarkFont}.width(CHECKMARK));
|
||||||
checkmark_->setStyleSheet(
|
|
||||||
QString("font-size: %1px;").arg(conf::timeline::fonts::timestamp));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user