mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
sleepDialog: Set modal bit; fix in IPD settings
This commit is contained in:
parent
69df4bb554
commit
d27f1d31bc
2 changed files with 15 additions and 4 deletions
|
@ -37,15 +37,23 @@ powerDaemonSettings::powerDaemonSettings(QWidget *parent) :
|
|||
ui->label_2->setStyleSheet("font-weight: bold");
|
||||
|
||||
// Icons
|
||||
int controlBtnFixedLength;
|
||||
if(global::deviceID == "n705\n") {
|
||||
controlBtnFixedLength = 50;
|
||||
}
|
||||
else {
|
||||
controlBtnFixedLength = 80;
|
||||
}
|
||||
|
||||
ui->CBSDecreaseBtn->setIcon(QIcon(":/resources/minus.png"));
|
||||
ui->CBSDecreaseBtn->setFixedWidth(80);
|
||||
ui->CBSDecreaseBtn->setFixedWidth(controlBtnFixedLength);
|
||||
ui->CBSIncreaseBtn->setIcon(QIcon(":/resources/plus.png"));
|
||||
ui->CBSIncreaseBtn->setFixedWidth(80);
|
||||
ui->CBSIncreaseBtn->setFixedWidth(controlBtnFixedLength);
|
||||
|
||||
ui->idleSleepDecreaseBtn->setIcon(QIcon(":/resources/minus.png"));
|
||||
ui->idleSleepDecreaseBtn->setFixedWidth(80);
|
||||
ui->idleSleepDecreaseBtn->setFixedWidth(controlBtnFixedLength);
|
||||
ui->idleSleepIncreaseBtn->setIcon(QIcon(":/resources/plus.png"));
|
||||
ui->idleSleepIncreaseBtn->setFixedWidth(80);
|
||||
ui->idleSleepIncreaseBtn->setFixedWidth(controlBtnFixedLength);
|
||||
|
||||
// Padding
|
||||
ui->CBSDecreaseBtn->setStyleSheet("padding: 10px");
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<property name="modal">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
|
|
Loading…
Reference in a new issue