no message
parent
955c57c860
commit
51ea2fa4d6
5
Qss.cpp
5
Qss.cpp
|
@ -1129,7 +1129,6 @@ bool QssMessageBox::eventFilter( QObject * obj, QEvent * ev )
|
||||||
{
|
{
|
||||||
if (ev->type() == QEvent::Paint)
|
if (ev->type() == QEvent::Paint)
|
||||||
{
|
{
|
||||||
|
|
||||||
const int shadowWidth = QSSDIALOG_SHADOW_WIDTH;
|
const int shadowWidth = QSSDIALOG_SHADOW_WIDTH;
|
||||||
const int boderWidht = QSSDIALOG_BODER_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 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;
|
int y = parentRc.top() + (parentRc.height() - rc.height())*0.5;y = y <= 0?1:y;
|
||||||
m_frame->move(x,y);
|
m_frame->move(x,y);
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
QPropertyAnimation* aniSize = new QPropertyAnimation(m_frame,"geometry");
|
QPropertyAnimation* aniSize = new QPropertyAnimation(m_frame,"geometry");
|
||||||
aniSize->setDuration(200);
|
aniSize->setDuration(200);
|
||||||
|
@ -1809,8 +1807,9 @@ uint16_t CurrentDPI(QWidget* widget,int monitor)
|
||||||
if(screenNum >= 0){
|
if(screenNum >= 0){
|
||||||
QScreen* screen = qApp->screens().at(monitor);
|
QScreen* screen = qApp->screens().at(monitor);
|
||||||
dpi = screen->physicalDotsPerInch();
|
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 currentScreenWidth = QApplication::desktop()->width();
|
||||||
int currentScreenHeight = QApplication::desktop()->height();
|
int currentScreenHeight = QApplication::desktop()->height();
|
||||||
|
|
Loading…
Reference in New Issue