Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 6f7e1179 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

UI: Update tool tips and names for document views' tabs

parent b6ef9cf1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!9Lua cpp expose
......@@ -31,13 +31,15 @@ ScriptDocumentView::closeDocument() noexcept
QString
ScriptDocumentView::getDocumentTabName() const noexcept
{
return "VS File";
const QFileInfo fileInfo(document->getName());
return fileInfo.completeBaseName();
}
QString
ScriptDocumentView::getDocumentTabToolTip() const noexcept
{
return "VS File";
return QStringLiteral("UUID: ") + document->getUuid().toString() +
QStringLiteral("\nType: Vivy Script");
}
QIcon
......
......@@ -64,10 +64,12 @@ VivyDocumentView::getDocumentTabName() const noexcept
QString
VivyDocumentView::getDocumentTabToolTip() const noexcept
{
return "UUID: " + document->getUuid().toString() + "\nCapabilities: [" +
document->getDocumentCapabilitiesString() + "]" +
(document->checkDocumentOption(VivyDocument::UntouchedByDefault) ? "\nUntouched document"
: "");
return QStringLiteral("UUID: ") + document->getUuid().toString() +
QStringLiteral("\nType: Vivy Document {") + document->getDocumentCapabilitiesString() +
QStringLiteral("}") +
(document->checkDocumentOption(VivyDocument::UntouchedByDefault)
? QStringLiteral("\nUntouched document")
: QStringLiteral(""));
}
void
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter