命名规范

This commit is contained in:
2026-07-29 12:30:40 +08:00
parent f5f1bf9cc7
commit 18edce4838
59 changed files with 1690 additions and 1795 deletions
+5 -5
View File
@@ -3,16 +3,16 @@
#include <QDateTime>
#include <QString>
ShowTime::ShowTime(QWidget *parent) : QWidget(parent) {
setObjectName("ShowTime");
Show_Time::Show_Time(QWidget *parent) : QWidget(parent) {
setObjectName("Show_Time");
setAttribute(Qt::WA_OpaquePaintEvent);
mTimer.start(1000);
connect(&mTimer, &QTimer::timeout, this, [this](){
timer.start(1000);
connect(&timer, &QTimer::timeout, this, [this](){
update();
});
}
void ShowTime::paintEvent(QPaintEvent *event) {
void Show_Time::paintEvent(QPaintEvent *event) {
QPainter painter(this);
painter.setPen(Qt::NoPen);
painter.fillRect(rect(), QApplication::style()->standardPalette().brush(QPalette::Window));