mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 07:37:21 -08:00
apps.cpp: Change editUserAppsBtn icon while in 'Edit' mode
This commit is contained in:
parent
e8010300c7
commit
9e7edc8d53
4 changed files with 5 additions and 2 deletions
4
apps.cpp
4
apps.cpp
|
@ -305,6 +305,7 @@ void apps::on_editUserAppsBtn_clicked()
|
||||||
userAppsSecondPage = true;
|
userAppsSecondPage = true;
|
||||||
|
|
||||||
// Settings page
|
// Settings page
|
||||||
|
ui->editUserAppsBtn->setIcon(QIcon(":/resources/save.png"));
|
||||||
showUserApps(userAppsSecondPage);
|
showUserApps(userAppsSecondPage);
|
||||||
emit showUserAppsEdit(userAppsSecondPage);
|
emit showUserAppsEdit(userAppsSecondPage);
|
||||||
|
|
||||||
|
@ -313,8 +314,9 @@ void apps::on_editUserAppsBtn_clicked()
|
||||||
else {
|
else {
|
||||||
userAppsSecondPage = false;
|
userAppsSecondPage = false;
|
||||||
userAppsAvailable = false;
|
userAppsAvailable = false;
|
||||||
// Launch page
|
|
||||||
|
|
||||||
|
// Launch page
|
||||||
|
ui->editUserAppsBtn->setIcon(QIcon(":/resources/edit.png"));
|
||||||
// It changed via updateJsonFileSlot, and now it writes it only once
|
// It changed via updateJsonFileSlot, and now it writes it only once
|
||||||
jsonFile.open(QFile::WriteOnly | QFile::Text | QFile::Truncate);
|
jsonFile.open(QFile::WriteOnly | QFile::Text | QFile::Truncate);
|
||||||
jsonFile.write(jsonDocument.toJson());
|
jsonFile.write(jsonDocument.toJson());
|
||||||
|
|
3
eink.qrc
3
eink.qrc
|
@ -74,6 +74,7 @@
|
||||||
<file>resources/clock.png</file>
|
<file>resources/clock.png</file>
|
||||||
<file>resources/eink-square-encfs.qss</file>
|
<file>resources/eink-square-encfs.qss</file>
|
||||||
<file>resources/tzlist</file>
|
<file>resources/tzlist</file>
|
||||||
<file>resources/edit.png</file>
|
<file>resources/edit.png</file>
|
||||||
|
<file>resources/save.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.7 KiB |
BIN
resources/save.png
Normal file
BIN
resources/save.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in a new issue