@@ -192,15 +192,12 @@ void MainWindow::previous() {
192192void MainWindow::iconActivated (QSystemTrayIcon::ActivationReason reason) {
193193 switch (reason) {
194194 case QSystemTrayIcon::Trigger:
195- // qDebug() << "trigger" ;
195+ break ;
196196 case QSystemTrayIcon::DoubleClick:
197- // qDebug() << "double";
198197 break ;
199198 case QSystemTrayIcon::MiddleClick:
200- // qDebug() << "middle";
201199 break ;
202200 case QSystemTrayIcon::Context:
203- // qDebug() << "context";
204201 break ;
205202 default :;
206203 }
@@ -247,20 +244,15 @@ void MainWindow::paintEvent(QPaintEvent *event) {
247244*/
248245
249246void MainWindow::dragEnterEvent (QDragEnterEvent *e) {
250- // qDebug() << "dragEnterEvent";
251247 if (e->mimeData ()->hasUrls () && e->mimeData ()->urls ().size () == 1 )
252248 e->acceptProposedAction ();
253249}
254250
255- void MainWindow::dragMoveEvent () {
256- // qDebug() << "dragEvent";
257- }
251+ void MainWindow::dragMoveEvent () {}
258252
259253void MainWindow::dropEvent (QDropEvent *e) {
260254 this ->hide ();
261- // qDebug() << "dropEvent";
262255 QString path = e->mimeData ()->urls ()[0 ].toLocalFile ();
263- // qDebug() << "Dropped file:" << path;
264256 int index = path.lastIndexOf (" ." );
265257 QString ext = index == -1 ? " " : path.mid (index);
266258
@@ -286,19 +278,12 @@ void MainWindow::mouseMoveEvent(QMouseEvent *event) {
286278}
287279
288280void MainWindow::enterEvent (QEvent *event) {
289- // qDebug() << Q_FUNC_INFO << this->objectName();
290- // QWidget::enterEvent(event);
291- // ui->verticalSpacer->changeSize(0, 0);
292281 ui->topWidgets ->show ();
293282 ui->bottomWidgets ->show ();
294283 ui->subtitleLabel ->raise ();
295284}
296285
297286void MainWindow::leaveEvent (QEvent *event) {
298- // qDebug() << Q_FUNC_INFO << this->objectName();
299- // QWidget::leaveEvent(event);
300- // ui->verticalSpacer->changeSize(0, ui->bottomWidgets->height() +
301- // ui->gridLayout->verticalSpacing());
302287 ui->topWidgets ->hide ();
303288 ui->bottomWidgets ->hide ();
304289}
@@ -329,8 +314,6 @@ void MainWindow::loadPosAndSize() {
329314}
330315
331316void MainWindow::loadPref () {
332- // qDebug() << settings.value("general/dir").toString();
333-
334317 QColor bgColor =
335318 QColor::fromRgb (settings
336319 .value (" appearance/bgColor" ,
@@ -346,7 +329,6 @@ void MainWindow::loadPref() {
346329 .arg (QString::number (bgColor.red ()),
347330 QString::number (bgColor.green ()),
348331 QString::number (bgColor.blue ()), QString::number (bgAlpha));
349- // qDebug() << bgColorStr;
350332 this ->setStyleSheet (bgColorStr);
351333
352334 QColor fontColor = QColor::fromRgb (
@@ -499,7 +481,6 @@ void MainWindow::adjustTime(long long interval) {
499481}
500482
501483long long MainWindow::getAdjustInterval () {
502- // qDebug() << settings.value("gen/adjust").toInt();
503484 return settings
504485 .value (" gen/adjust" ,
505486 QVariant::fromValue (PrefConstants::ADJUST_INTERVAL))
0 commit comments