mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
removed get
function prefix in Version
This commit is contained in:
parent
ec2a2f30b7
commit
aeab038bc8
4 changed files with 10 additions and 10 deletions
|
@ -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_;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue