no message

qt6
zcy 2022-01-18 17:30:56 +08:00
parent 955c57c860
commit 51ea2fa4d6
1 changed files with 2 additions and 3 deletions

View File

@ -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()<<screen->physicalDotsPerInch()<<screen->physicalDotsPerInchX()<<screen->physicalDotsPerInchY();
qDebug()<<screen->logicalDotsPerInch()<<screen->logicalDotsPerInchX()<<screen->logicalDotsPerInchY();
}
qDebug()<<dpi;
int currentScreenWidth = QApplication::desktop()->width();
int currentScreenHeight = QApplication::desktop()->height();