Adjust status and lock panels and format duration
This commit is contained in:
parent
6f453717ad
commit
f92446678c
|
|
@ -286,7 +286,7 @@ void CustomWidget::drawStatusInfo(QPainter &painter)
|
|||
.arg(elapsed);
|
||||
|
||||
// 绘制半透明背景框
|
||||
QRect statsRect(10, 70, 200, 100);
|
||||
QRect statsRect(10, 70, 200, 110);
|
||||
painter.fillRect(statsRect, QColor(0, 0, 0, 150));
|
||||
|
||||
painter.setPen(QColor(200, 255, 200));
|
||||
|
|
@ -311,7 +311,7 @@ void CustomWidget::drawStatusInfo(QPainter &painter)
|
|||
void CustomWidget::drawLockInfo(QPainter &painter)
|
||||
{
|
||||
QFont infoFont = painter.font();
|
||||
QRect lockInfoRect(10, 180, 350, 120);
|
||||
QRect lockInfoRect(10, 180, 200, 150);
|
||||
painter.fillRect(lockInfoRect, QColor(60, 0, 60, 180));
|
||||
|
||||
painter.setPen(QColor(255, 200, 255));
|
||||
|
|
@ -342,7 +342,8 @@ void CustomWidget::drawLockInfo(QPainter &painter)
|
|||
}
|
||||
|
||||
QString lockInfo = QString(
|
||||
"\nLock Time: %1 (Duration: %2)\n"
|
||||
"\nLock Time: %1\n"
|
||||
"Duration: %2\n"
|
||||
"Frame Count at Lock: %3\n"
|
||||
"Frames During Lock: %4\n"
|
||||
"Total Locks: %5"
|
||||
|
|
|
|||
Loading…
Reference in New Issue