From bd2be24e0057546c687827c40c10045f1e5ac4b2 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Wed, 14 Jun 2023 16:16:33 -0400 Subject: [PATCH] Style fix --- src/eink.qrc | 2 +- src/localLibrary/locallibrarywidget.cpp | 11 ++++++----- src/resources/egg/{3.jpg => 1.jpg} | Bin src/widgets/misc/egg.cpp | 6 ------ src/widgets/misc/egg.h | 2 +- 5 files changed, 8 insertions(+), 13 deletions(-) rename src/resources/egg/{3.jpg => 1.jpg} (100%) diff --git a/src/eink.qrc b/src/eink.qrc index 0306701..59b6c97 100644 --- a/src/eink.qrc +++ b/src/eink.qrc @@ -110,6 +110,6 @@ resources/refresh-small.png resources/checkbox-indeterminate.png resources/egg/0.jpg - resources/egg/3.jpg + resources/egg/1.jpg diff --git a/src/localLibrary/locallibrarywidget.cpp b/src/localLibrary/locallibrarywidget.cpp index d6b9bdb..ac53c9e 100644 --- a/src/localLibrary/locallibrarywidget.cpp +++ b/src/localLibrary/locallibrarywidget.cpp @@ -133,11 +133,12 @@ void localLibraryWidget::setupDatabase() { QStringList args; args << "env" << "icon_width_divider=" + QString::number(stdIconWidthDivider - 1.5) << "icon_height_divider=" + QString::number(stdIconHeightDivider - 1.5) << "./explore_local_library.sh" << booksList; - /* Logs/steps needed to debug the database creation - * for(int i = 0; i < args.count(); i++) { - * log("Arguments for database creation: '" + args[i] + "'", className); - * } - */ + /* + * Logs/steps needed to debug the database creation + * for(int i = 0; i < args.count(); i++) { + * log("Arguments for database creation: '" + args[i] + "'", className); + * } + */ QProcess *proc = new QProcess(); proc->start(prog, args); diff --git a/src/resources/egg/3.jpg b/src/resources/egg/1.jpg similarity index 100% rename from src/resources/egg/3.jpg rename to src/resources/egg/1.jpg diff --git a/src/widgets/misc/egg.cpp b/src/widgets/misc/egg.cpp index db3e847..adb15c5 100644 --- a/src/widgets/misc/egg.cpp +++ b/src/widgets/misc/egg.cpp @@ -61,12 +61,6 @@ void egg::changeIndex(int index) { name.append("Szybet
(Contributor)"); } else if(index == 1) { - name.append("NiLuJe
(Contributor)"); - } - else if(index == 2) { - name.append("akemnade
(Contributor)"); - } - else if(index == 3) { name.append("tux-linux
(Maintainer)"); } name.append(""); diff --git a/src/widgets/misc/egg.h b/src/widgets/misc/egg.h index 5dfc6ad..6ade11b 100644 --- a/src/widgets/misc/egg.h +++ b/src/widgets/misc/egg.h @@ -20,7 +20,7 @@ public: explicit egg(QWidget *parent = nullptr); ~egg(); int index = 0; - const int maximumIndex = 3; + const int maximumIndex = 1; bool firstRun = true; void changeIndex(int index);