diff --git a/src/customwidget.cpp b/src/customwidget.cpp index 7ffb2a7..6c0d9a9 100644 --- a/src/customwidget.cpp +++ b/src/customwidget.cpp @@ -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"