From 313226735ae17a3ef2a16ca316e3f5b96d7627d4 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 1 Sep 2022 12:34:06 +0200 Subject: [PATCH] Aggregation: Remove translatability of strings in example Aggregation does otherwise not translate strings. Change-Id: I3d2a800087609251310c242aef31a58ad17b97a0 Reviewed-by: Eike Ziller --- src/libs/aggregation/examples/text/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libs/aggregation/examples/text/main.cpp b/src/libs/aggregation/examples/text/main.cpp index d546adcbeaf..70e8ad29a22 100644 --- a/src/libs/aggregation/examples/text/main.cpp +++ b/src/libs/aggregation/examples/text/main.cpp @@ -29,9 +29,10 @@ void MyMain::select(int index) IText3 *t3 = Aggregation::query(entry); // set the label texts and enable/disable, depending on whether // the respective interface implementations exist - ui.text1->setText(t1 ? t1->text() : tr("N/A")); - ui.text2->setText(t2 ? t2->text() : tr("N/A")); - ui.text3->setText(t3 ? t3->text() : tr("N/A")); + const QString na("N/A"); + ui.text1->setText(t1 ? t1->text() : na); + ui.text2->setText(t2 ? t2->text() : na); + ui.text3->setText(t3 ? t3->text() : na); ui.text1->setEnabled(t1); ui.text2->setEnabled(t2); ui.text3->setEnabled(t3);