removed get function prefix in Version
This commit is contained in:
@@ -40,22 +40,22 @@ const Version &Version::getInstance()
|
||||
return instance;
|
||||
}
|
||||
|
||||
const QString &Version::getVersion() const
|
||||
const QString &Version::version() const
|
||||
{
|
||||
return this->version_;
|
||||
}
|
||||
|
||||
const QString &Version::getFullVersion() const
|
||||
const QString &Version::fullVersion() const
|
||||
{
|
||||
return this->fullVersion_;
|
||||
}
|
||||
|
||||
const QString &Version::getCommitHash() const
|
||||
const QString &Version::commitHash() const
|
||||
{
|
||||
return this->commitHash_;
|
||||
}
|
||||
|
||||
const QString &Version::getDateOfBuild() const
|
||||
const QString &Version::dateOfBuild() const
|
||||
{
|
||||
return this->dateOfBuild_;
|
||||
}
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
else if (getArgs().printVersion)
|
||||
{
|
||||
qInfo().noquote() << Version::getInstance().getFullVersion();
|
||||
qInfo().noquote() << Version::getInstance().fullVersion();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -367,7 +367,7 @@ void Window::onAccountSelected()
|
||||
auto user = getApp()->accounts->twitch.getCurrent();
|
||||
|
||||
// update title
|
||||
this->setWindowTitle(Version::getInstance().getFullVersion());
|
||||
this->setWindowTitle(Version::getInstance().fullVersion());
|
||||
|
||||
// update user
|
||||
if (user->isAnon())
|
||||
|
||||
@@ -77,14 +77,14 @@ AboutPage::AboutPage()
|
||||
{
|
||||
auto version = Version::getInstance();
|
||||
QString text = QString("%1 (commit %2%3)")
|
||||
.arg(version.getFullVersion())
|
||||
.arg(version.fullVersion())
|
||||
.arg("<a "
|
||||
"href=\"https://github.com/Chatterino/"
|
||||
"chatterino2/commit/" +
|
||||
version.getCommitHash() + "\">" +
|
||||
version.getCommitHash() + "</a>")
|
||||
version.commitHash() + "\">" +
|
||||
version.commitHash() + "</a>")
|
||||
.arg(Modes::getInstance().isNightly
|
||||
? ", " + version.getDateOfBuild()
|
||||
? ", " + version.dateOfBuild()
|
||||
: "");
|
||||
|
||||
auto versionLabel = versionInfo.emplace<QLabel>(text);
|
||||
|
||||
Reference in New Issue
Block a user