Skip to content

Commit

Permalink
rename storeScaleFactor() to setScalefactor()
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Sep 12, 2021
1 parent 28581b9 commit 46182d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void adjustScaleFactor(CmdlineArgs* pArgs) {
if (ok && f > 0) {
// The environment variable overrides the preferences option
qDebug() << "Using" << kScaleFactorEnvVar << f;
pArgs->storeScaleFactor(f);
pArgs->setScaleFactor(f);
return;
}
}
Expand All @@ -80,7 +80,7 @@ void adjustScaleFactor(CmdlineArgs* pArgs) {
if (scaleFactor > 0) {
qDebug() << "Using preferences ScaleFactor" << scaleFactor;
qputenv(kScaleFactorEnvVar, strScaleFactor.toLocal8Bit());
pArgs->storeScaleFactor(scaleFactor);
pArgs->setScaleFactor(scaleFactor);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/util/cmdlineargs.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CmdlineArgs final {
const QString& getResourcePath() const { return m_resourcePath; }
const QString& getTimelinePath() const { return m_timelinePath; }

void storeScaleFactor(double scaleFactor) {
void setScaleFactor(double scaleFactor) {
m_scaleFactor = scaleFactor;
}
double getScaleFactor() const {
Expand Down

0 comments on commit 46182d1

Please sign in to comment.