mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
refine navigation mode
This commit is contained in:
parent
c255cd54ed
commit
c7f471cb8f
@ -74,7 +74,7 @@ static QString generateNavigationLabelStyle(const QString &p_str, bool p_tiny)
|
||||
QFont font(fontFamily, fontPt);
|
||||
font.setBold(true);
|
||||
QFontMetrics fm(font);
|
||||
pxWidth = fm.width(p_str);
|
||||
pxWidth = fm.width(p_str) + 5;
|
||||
pxHeight = fm.capHeight() + 5;
|
||||
lastLen = p_str.size();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user