diff --git a/Qss.cpp b/Qss.cpp index f05c7cc..f143170 100644 --- a/Qss.cpp +++ b/Qss.cpp @@ -1129,7 +1129,6 @@ bool QssMessageBox::eventFilter( QObject * obj, QEvent * ev ) { if (ev->type() == QEvent::Paint) { - const int shadowWidth = QSSDIALOG_SHADOW_WIDTH; const int boderWidht = QSSDIALOG_BODER_WIDTH; @@ -1170,7 +1169,6 @@ bool QssMessageBox::eventFilter( QObject * obj, QEvent * ev ) int x = parentRc.left() + (parentRc.width() - rc.width())*0.5;x = x <= 0?1:x; int y = parentRc.top() + (parentRc.height() - rc.height())*0.5;y = y <= 0?1:y; m_frame->move(x,y); - /** */ QPropertyAnimation* aniSize = new QPropertyAnimation(m_frame,"geometry"); aniSize->setDuration(200); @@ -1809,8 +1807,9 @@ uint16_t CurrentDPI(QWidget* widget,int monitor) if(screenNum >= 0){ QScreen* screen = qApp->screens().at(monitor); dpi = screen->physicalDotsPerInch(); + qDebug()<physicalDotsPerInch()<physicalDotsPerInchX()<physicalDotsPerInchY(); + qDebug()<logicalDotsPerInch()<logicalDotsPerInchX()<logicalDotsPerInchY(); } - qDebug()<width(); int currentScreenHeight = QApplication::desktop()->height();