-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3816 from Holzhaus/version-date
Show Commit Date in About Dialog / Git Describe Format Improvements
- Loading branch information
Showing
6 changed files
with
70 additions
and
29 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
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
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 |
---|---|---|
@@ -1,42 +1,46 @@ | ||
#pragma once | ||
|
||
#include <QDateTime> | ||
#include <QString> | ||
#include <QVersionNumber> | ||
|
||
class VersionStore { | ||
public: | ||
// Returns the current Mixxx version string (e.g. 1.12.0-alpha) | ||
/// Returns the current Mixxx version string (e.g. 1.12.0-alpha) | ||
static QString version(); | ||
|
||
// Returns the current Mixxx version number (e.g. 1.12.0) | ||
/// Returns the current Mixxx version number (e.g. 1.12.0) | ||
static QVersionNumber versionNumber(); | ||
|
||
// Returns the current Mixxx version suffix (e.g. "beta") | ||
/// Returns the current Mixxx version suffix (e.g. "beta") | ||
static QString versionSuffix(); | ||
|
||
// Returns the application name. (e.g. "Mixxx") | ||
/// Returns the application name. (e.g. "Mixxx") | ||
static QString applicationName(); | ||
|
||
// Returns the platform (e.g. "Windows x86_64") | ||
/// Returns the last change date | ||
static QDateTime date(); | ||
|
||
/// Returns the platform (e.g. "Windows x86_64") | ||
static QString platform(); | ||
|
||
// Returns the git branch (e.g. features_key) or the null | ||
// string if the branch is unknown. | ||
/// Returns the git branch (e.g. features_key) or the null | ||
/// string if the branch is unknown. | ||
static QString gitBranch(); | ||
|
||
// Returns the output of "git describe" | ||
/// Returns the output of "git describe" | ||
static QString gitDescribe(); | ||
|
||
// Returns the output of "git describe" and the branch name (if available) | ||
/// Returns the output of "git describe" and the branch name (if available) | ||
static QString gitVersion(); | ||
|
||
// Returns the build flags used to build Mixxx (e.g. "hid=1 modplug=0") or | ||
// the null string if the flags are unknown. | ||
/// Returns the build flags used to build Mixxx (e.g. "hid=1 modplug=0") or | ||
/// the null string if the flags are unknown. | ||
static QString buildFlags(); | ||
|
||
// Returns a list of the version of each dependency: | ||
/// Returns a list of the version of each dependency: | ||
static QStringList dependencyVersions(); | ||
|
||
// Prints out diagnostic information about this build. | ||
/// Prints out diagnostic information about this build. | ||
static void logBuildDetails(); | ||
}; |
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