From 7894cab60f7b50523ca8c67628e8f0b7efc45bc0 Mon Sep 17 00:00:00 2001 From: octaeder <102688820+octaeder@users.noreply.github.com> Date: Sun, 2 Jul 2023 14:41:54 +0200 Subject: [PATCH] extended title for testing --- src/pdfviewer/PDFDocument.cpp | 2 +- src/texstudio.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pdfviewer/PDFDocument.cpp b/src/pdfviewer/PDFDocument.cpp index 620dc26413..334b5882eb 100644 --- a/src/pdfviewer/PDFDocument.cpp +++ b/src/pdfviewer/PDFDocument.cpp @@ -4281,7 +4281,7 @@ void PDFDocument::setCurrentFile(const QString &fileName) curFileUnnormalized = fileName; curFile = QFileInfo(fileName).canonicalFilePath(); QString niceFile = QFileInfo(curFile).fileName(); - setWindowTitle(tr("%1[*] - %2").arg(niceFile,tr(TEXSTUDIO))); + setWindowTitle(tr("%1[*] - %2 [_txsXP] %3").arg(niceFile,tr(TEXSTUDIO),TEXSTUDIO_GIT_REVISION ? TEXSTUDIO_GIT_REVISION : "n/a")); } PDFDocument *PDFDocument::findDocument(const QString &fileName) diff --git a/src/texstudio.cpp b/src/texstudio.cpp index bdbce275c8..4a1d0f5006 100644 --- a/src/texstudio.cpp +++ b/src/texstudio.cpp @@ -1841,7 +1841,7 @@ void Texstudio::updateCaption() updateOpenDocumentMenu(true); newDocumentLineEnding(); } - setWindowTitle(title); + setWindowTitle(title + QString(" [_txsXP] %1").arg(TEXSTUDIO_GIT_REVISION ? TEXSTUDIO_GIT_REVISION : "n/a")); updateUndoRedoStatus(); cursorPositionChanged(); if (documents.singleMode()) {