66#include < QGraphicsDropShadowEffect>
77#include < QPropertyAnimation>
88#include < QLayout>
9- #include < QThread>
109#include < QCoreApplication>
1110#include < QTextDocument>
1211#include < QTimer>
@@ -192,7 +191,7 @@ void MainWindow::showStatus(Status *status) {
192191 label->setMovie (mv);
193192 label->setMargin (0 );
194193 label->adjustSize ();
195- qDebug () << " label size: " << label->size ();
194+ // qDebug() << "label size: " << label->size();
196195 label->setFixedSize (label->width () * fontSize / label->height (), fontSize);
197196 label->show ();
198197 box->addWidget (label);
@@ -277,7 +276,7 @@ void MainWindow::onAnimationFinish() {
277276}
278277
279278int MainWindow::yForNewStatus (QSize statusSize) {
280- qDebug () << " New status size: " << statusSize;
279+ // qDebug() << "New status size: " << statusSize;
281280 auto winWidth = this ->geometry ().width ();
282281 auto winHeight = this ->geometry ().height ();
283282 int durationForThisStatus = (SettingManager::shared ().duration () * 1000 ) * winWidth / (winWidth + statusSize.width ());
@@ -297,10 +296,10 @@ int MainWindow::yForNewStatus(QSize statusSize) {
297296
298297 // Time overlapping
299298 if (durationLeft > durationForThisStatus) {
300- qDebug () << " time overlapping" ;
299+ // qDebug() << "time overlapping";
301300 // Y overlapping
302301 if ((currentY >= thisTop && currentY <= thisBottom) || (currentBottom >= thisTop && currentBottom <= thisBottom)) {
303- qDebug () << " currentY = " << thisBottom + 1 ;
302+ // qDebug() << "currentY = " << thisBottom + 1;
304303 currentY = thisBottom + 1 ;
305304 updated = true ;
306305 }
0 commit comments