diff options
author | saturneric <[email protected]> | 2024-01-18 12:58:37 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-18 12:58:37 +0000 |
commit | e0d2c4021483e6e1366c1050ccb5a30e53e172bb (patch) | |
tree | 5d85739479622e7c672aea45f84d4e2f577f9332 /src/cmd.cpp | |
parent | fix: correct a fault (diff) | |
download | GpgFrontend-e0d2c4021483e6e1366c1050ccb5a30e53e172bb.tar.gz GpgFrontend-e0d2c4021483e6e1366c1050ccb5a30e53e172bb.zip |
fix: add test cases and solve discovered issues
Diffstat (limited to 'src/cmd.cpp')
-rw-r--r-- | src/cmd.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd.cpp b/src/cmd.cpp index e19ad218..f060a16b 100644 --- a/src/cmd.cpp +++ b/src/cmd.cpp @@ -41,22 +41,21 @@ namespace GpgFrontend { auto PrintVersion() -> int { - QTextStream stream(stdin); + QTextStream stream(stdout); stream << PROJECT_NAME << " " << "v" << VERSION_MAJOR << "." << VERSION_MINOR << "." << VERSION_PATCH << '\n'; - stream << "Copyright (C) 2021 Saturneric <[email protected]>" << '\n' + stream << "Copyright (©) 2021 Saturneric <[email protected]>" << '\n' << QObject::tr( "This is free software; see the source for copying conditions.") << '\n' << '\n'; - stream << QObject::tr("Build Timestamp: ") << BUILD_TIMESTAMP << '\n' + stream << QObject::tr("Build DateTime: ") << BUILD_TIMESTAMP << '\n' << QObject::tr("Build Version: ") << BUILD_VERSION << '\n' << QObject::tr("Source Code Version: ") << GIT_VERSION << '\n'; stream << Qt::endl; - return 0; } |