From dd1fc7f34bc1d653ec1ed5155beb9ce9c5966124 Mon Sep 17 00:00:00 2001 From: Linloir <3145078758@qq.com> Date: Mon, 6 Dec 2021 08:34:24 +0800 Subject: [PATCH] Delete qDebug() and update version --- mainwindow.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index ead9be3..2f150ca 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -52,10 +52,10 @@ void MainWindow::Init(){ /* Create about page */ defaultSettingsPage = new SlidePage(cornerRadius, "ABOUT", ui->mainWidget); textInputItem *version = new textInputItem("version", defaultSettingsPage); - version->setValue("1.1 beta"); + version->setValue("1.2-beta"); version->setEnabled(false); textInputItem *updateDate = new textInputItem("last-upd", defaultSettingsPage); - updateDate->setValue("2021/12/5"); + updateDate->setValue("2021/12/6"); updateDate->setEnabled(false); textInputItem *Author = new textInputItem("author", defaultSettingsPage); Author->setValue("Linloir | Made with love"); @@ -356,15 +356,9 @@ void MainWindow::mouseMoveEvent(QMouseEvent *event){ else{ if(mouseState == 0){ if(maximized){ - qDebug() << event->pos() << ui->mainWidget->width(); qreal wRatio = (double)event->pos().x() / (double)ui->mainWidget->width(); - qDebug() << wRatio; controlWindowScale(); - qDebug() << ui->mainWidget->width(); - qDebug() << QPoint(event->globalPosition().x() - ui->mainWidget->width() * wRatio, event->globalPosition().y()); - qDebug() << this->frameGeometry().topLeft(); this->move(QPoint(event->globalPosition().x() - ui->mainWidget->width() * wRatio, -30)); - qDebug() << this->frameGeometry().topLeft(); lastPos = QPoint(ui->mainWidget->width() * wRatio, event->pos().y()); } else