Scaling fixes for Glo HD

This commit is contained in:
Nicolas Mailloux 2023-06-18 01:13:13 -04:00
parent f19a654f11
commit 1c7fb23d0d
3 changed files with 3 additions and 4 deletions

View file

@ -66,8 +66,8 @@ localLibraryWidget::localLibraryWidget(QWidget *parent) :
stdIconHeightDivider = 8.7; stdIconHeightDivider = 8.7;
} }
else if(global::deviceID == "n437\n") { else if(global::deviceID == "n437\n") {
stdIconWidthDivider = 8; stdIconWidthDivider = 8.1;
stdIconHeightDivider = 8; stdIconHeightDivider = 8.1;
} }
else if(global::deviceID == "n873\n") { else if(global::deviceID == "n873\n") {
stdIconWidthDivider = 9.7; stdIconWidthDivider = 9.7;

View file

@ -36,7 +36,7 @@ quit::quit(QWidget *parent) :
float stdIconHeight = sH / 1.25; float stdIconHeight = sH / 1.25;
QPixmap pixmap(":/resources/exit.png"); QPixmap pixmap(":/resources/exit.png");
QPixmap scaledPixmap = pixmap.scaled(stdIconWidth, stdIconHeight, Qt::KeepAspectRatio); QPixmap scaledPixmap = pixmap.scaled(stdIconWidth, stdIconHeight, Qt::KeepAspectRatio, Qt::SmoothTransformation);
ui->label->setPixmap(scaledPixmap); ui->label->setPixmap(scaledPixmap);
if(checkconfig("/mnt/onboard/.adds/inkbox/.config/20-sleep_daemon/9-deepSleep") == true) { if(checkconfig("/mnt/onboard/.adds/inkbox/.config/20-sleep_daemon/9-deepSleep") == true) {

View file

@ -174,7 +174,6 @@ void wifilogger::getWifiInformation() {
} }
} }
void wifilogger::on_returnBtn_clicked() void wifilogger::on_returnBtn_clicked()
{ {
log("Exiting wifilogger", className); log("Exiting wifilogger", className);