2
0
forked from Ivasoft/DSView

fix zero adjustment issue

This commit is contained in:
DreamSourceLab
2015-05-08 10:11:13 +08:00
parent f118e71ebb
commit a887a7f35d
6 changed files with 1 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

View File

@@ -48,8 +48,7 @@ WaitingDialog::WaitingDialog(QWidget *parent, boost::shared_ptr<pv::device::DevI
this->setFixedSize((GIF_SIZE+TIP_WIDTH)*2, (GIF_SIZE+TIP_HEIGHT)*2);
int midx = this->width() / 2;
int midy = this->height() / 2;
this->setWindowOpacity(0.6);
this->setStyleSheet("background-color: rgb(255, 255, 255);");
this->setWindowOpacity(0.7);
this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
label = new QLabel(this);
@@ -60,7 +59,6 @@ WaitingDialog::WaitingDialog(QWidget *parent, boost::shared_ptr<pv::device::DevI
tips = new QLabel(this);
tips->setText(TIPS_INFO);
tips->setStyleSheet("color: rgb(17, 133, 209); background-color: transparent;");
QFont font;
font.setPointSize(10);
font.setBold(true);
@@ -71,8 +69,6 @@ WaitingDialog::WaitingDialog(QWidget *parent, boost::shared_ptr<pv::device::DevI
timer = new QTimer();
connect(timer, SIGNAL(timeout()), this, SLOT(changeText()));
QString styleSheet = "* {color: rgb(255, 255, 255); background-color: rgb(17, 133, 209);} *:hover {background-color: rgb(238, 178, 17);}";
_button_box.setStyleSheet(styleSheet);
_button_box.setGeometry(width()-_button_box.width()-30, height()-_button_box.height()-15,
_button_box.width(), _button_box.height());
connect(&_button_box, SIGNAL(accepted()), this, SLOT(accept()));

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.