Skip to content

Commit 3ad5272

Browse files
committed
quartz: Make viewport window title shorter
1 parent 0303fab commit 3ad5272

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apps/quartz/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static constexpr int DefaultViewportHeight = 720;
2020
static void parseOptions(int &viewportWidth, int &viewportHeight, QString &sceneFilePath)
2121
{
2222
const QString description = QString("%1 %2\n%3\n%4")
23-
.arg(ApplicationDisplayName)
23+
.arg(ApplicationDescription)
2424
.arg(ApplicationVersion)
2525
.arg(ApplicationCopyright)
2626
.arg(ApplicationUrl);
@@ -53,15 +53,16 @@ static void parseOptions(int &viewportWidth, int &viewportHeight, QString &scene
5353
int main(int argc, char *argv[])
5454
{
5555
QApplication app(argc, argv);
56-
QApplication::setApplicationName(ApplicationDisplayName);
56+
QApplication::setApplicationName(ApplicationName);
5757
QApplication::setApplicationVersion(ApplicationVersion);
5858

5959
int viewportWidth;
6060
int viewportHeight;
6161
QString sceneFilePath;
6262
parseOptions(viewportWidth, viewportHeight, sceneFilePath);
6363

64-
QTextStream(stdout) << ApplicationDisplayName << " " << ApplicationVersion << "\n";
64+
QTextStream(stdout) << ApplicationDescription << " "
65+
<< ApplicationVersion << "\n";
6566

6667
QScopedPointer<QVulkanInstance> vulkanInstance(RenderWindow::createDefaultVulkanInstance());
6768
if(!vulkanInstance) {

apps/quartz/version.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
#include <QString>
1010

11-
static const QString ApplicationDisplayName("Quartz Standalone Renderer");
11+
static const QString ApplicationName("Quartz");
12+
static const QString ApplicationDescription("Quartz Standalone Renderer");
1213
static const QString ApplicationCopyright("(c) 2018-2019 Michal Siejak <michal@siejak.pl>");
1314
static const QString ApplicationUrl("https://github.com/Nadrin/Quartz");
1415
static const QString ApplicationVersion("1.0.0");

0 commit comments

Comments
 (0)