Disable brightness button for N705

This commit is contained in:
Nicolas Mailloux 2021-03-29 18:27:40 -04:00
parent 3a7eb05ae3
commit d07080ec84

View file

@ -81,6 +81,11 @@ MainWindow::MainWindow(QWidget *parent)
// Battery // Battery
string_checkconfig_ro("/opt/inkbox_device"); string_checkconfig_ro("/opt/inkbox_device");
if(checkconfig_str_val == "n705\n") { if(checkconfig_str_val == "n705\n") {
// Hide brightness controls; they won't be very useful there anyway...
ui->brightnessBtn->hide();
ui->line_7->hide();
// Setting icons up
stdIconWidth = sW / 16; stdIconWidth = sW / 16;
stdIconHeight = sH / 16; stdIconHeight = sH / 16;
QPixmap chargingPixmap(":/resources/battery_charging.png"); QPixmap chargingPixmap(":/resources/battery_charging.png");