Set fixed height for the DateSeparator & TextLabel
This commit is contained in:
parent
bcba977f4c
commit
90595beb16
3 changed files with 5 additions and 3 deletions
|
|
@ -60,6 +60,8 @@ DateSeparator::DateSeparator(QDateTime datetime, QWidget *parent)
|
|||
QFontMetrics fm{font_};
|
||||
width_ = fm.width(msg_) + HPadding * 2;
|
||||
height_ = fm.ascent() + 2 * VPadding;
|
||||
|
||||
setFixedHeight(height_ + 2 * HMargin);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue