mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
Cleanup for low/critical battery alert warnings
Check the previous commit for the main changes.
This commit is contained in:
parent
09e14b74cd
commit
99676137e4
2 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ alert::alert(QWidget *parent) :
|
||||||
ui->warningLabel->setText("Please charge your eReader.");
|
ui->warningLabel->setText("Please charge your eReader.");
|
||||||
ui->securityLabel->setText("The battery's charge level is critical.");
|
ui->securityLabel->setText("The battery's charge level is critical.");
|
||||||
ui->messageLabel->setText("To prevent filesystem damage, your device has been turned off.\nPlease consider charging it.");
|
ui->messageLabel->setText("To prevent filesystem damage, your device has been turned off.\nPlease consider charging it.");
|
||||||
//poweroff(false);
|
poweroff(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->warningLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 16pt}");
|
ui->warningLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 16pt}");
|
||||||
|
|
|
@ -548,13 +548,13 @@ void MainWindow::on_pushButton_clicked()
|
||||||
|
|
||||||
void MainWindow::on_searchBtn_clicked()
|
void MainWindow::on_searchBtn_clicked()
|
||||||
{
|
{
|
||||||
global::battery::showCriticalBatteryAlert = true;
|
/*global::battery::showCriticalBatteryAlert = true;
|
||||||
global::battery::showLowBatteryDialog = false;
|
global::battery::showLowBatteryDialog = false;
|
||||||
|
|
||||||
alertWindow = new alert();
|
alertWindow = new alert();
|
||||||
alertWindow->setAttribute(Qt::WA_DeleteOnClose);
|
alertWindow->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
alertWindow->setGeometry(QRect(QPoint(0,0), screen()->geometry ().size()));
|
alertWindow->setGeometry(QRect(QPoint(0,0), screen()->geometry ().size()));
|
||||||
alertWindow->show();
|
alertWindow->show();*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_quitBtn_clicked()
|
void MainWindow::on_quitBtn_clicked()
|
||||||
|
|
Loading…
Reference in a new issue