mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-14 14:33:58 +00:00
`flameshot --version` now includes the git commit hash, same as the About window. Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
18 lines
478 B
C++
18 lines
478 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
|
|
|
|
#include "globalvalues.h"
|
|
#include <QApplication>
|
|
#include <QFontMetrics>
|
|
|
|
int GlobalValues::buttonBaseSize()
|
|
{
|
|
return QApplication::fontMetrics().lineSpacing() * 2.2;
|
|
}
|
|
|
|
QString GlobalValues::versionInfo()
|
|
{
|
|
return QStringLiteral("Flameshot " APP_VERSION " (" FLAMESHOT_GIT_HASH ")"
|
|
"\nCompiled with Qt " QT_VERSION_STR);
|
|
}
|