Skip to content
reader.cpp 35 KiB
Newer Older
void reader::batteryWatchdog() {

}

void reader::openLowBatteryDialog() {
Nicolas Mailloux's avatar
Nicolas Mailloux committed
    global::battery::batteryAlertLock = true;

    generalDialogWindow = new generalDialog(this);
    generalDialogWindow->setAttribute(Qt::WA_DeleteOnClose);
    generalDialogWindow->show();
    QApplication::processEvents();
}

void reader::openCriticalBatteryAlertWindow() {
Nicolas Mailloux's avatar
Nicolas Mailloux committed
    global::battery::showCriticalBatteryAlert = true;

    alertWindow = new alert(this);
    alertWindow->setAttribute(Qt::WA_DeleteOnClose);
    alertWindow->showFullScreen();
    QApplication::processEvents();
}