mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
TabIndicator: refine style
This commit is contained in:
parent
1b39cf4af5
commit
493ba08bd0
@ -211,9 +211,9 @@ void VTabIndicator::update(const VEditTabInfo &p_info)
|
|||||||
|
|
||||||
int lineCount = p_info.m_blockCount < 1 ? 1 : p_info.m_blockCount;
|
int lineCount = p_info.m_blockCount < 1 ? 1 : p_info.m_blockCount;
|
||||||
|
|
||||||
QString cursorText = tr("<span><span style=\"font-weight:bold;\">Line</span>: %1 - %2(%3%) "
|
QString cursorText = tr("Line: %1 - %2(%3%) Col: %4")
|
||||||
"<span style=\"font-weight:bold;\">Col</span>: %4</span>")
|
.arg(line)
|
||||||
.arg(line).arg(lineCount)
|
.arg(lineCount)
|
||||||
.arg((int)(line * 1.0 / lineCount * 100), 2)
|
.arg((int)(line * 1.0 / lineCount * 100), 2)
|
||||||
.arg(col, 3);
|
.arg(col, 3);
|
||||||
m_cursorLabel->setText(cursorText);
|
m_cursorLabel->setText(cursorText);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user