-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
92 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/cpp/flashPageTools/flashPageTool.cpp → src/cpp/flashPageTool/flashPageTool.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include "othersettingshandler.h" | ||
#include "../utils/globalsetting.h" | ||
|
||
static auto constexpr Other_Section = "other"; | ||
static auto constexpr Wrapper_opacity_key = "wrapperOpacity"; | ||
static auto constexpr Use_OpenGL_Key = "useOpenGL"; | ||
|
||
OtherSettingsHandler::OtherSettingsHandler(QObject *parent) | ||
: QObject(parent) | ||
{ | ||
double configWrapperOpacity = AppSettings->readConfig(Other_Section, Wrapper_opacity_key, 0.3).toDouble(); | ||
setWrapperOpacity(configWrapperOpacity); | ||
|
||
bool useOpenGL = AppSettings->readConfig(Other_Section, Use_OpenGL_Key, false).toBool(); | ||
setUseOpenGL(useOpenGL); | ||
} | ||
|
||
void OtherSettingsHandler::setWrapperOpacity(double value) | ||
{ | ||
if (m_wrapperOpacity != value) { | ||
m_wrapperOpacity = value; | ||
AppSettings->writeConfig(Other_Section, Wrapper_opacity_key, value); | ||
Q_EMIT wrapperOpacityChanged(value); | ||
} | ||
} | ||
|
||
void OtherSettingsHandler::setUseOpenGL(bool value) | ||
{ | ||
if (m_useOpenGL != value) { | ||
m_useOpenGL = value; | ||
AppSettings->writeConfig(Other_Section, Use_OpenGL_Key, value); | ||
Q_EMIT useOpenGLChanged(value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters