Parcourir la source

Allow setting an id on labels

Neal Wilson il y a 6 ans
Parent
révision
52b0f99e43
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4
    0
      src/typica.w

+ 4
- 0
src/typica.w Voir le fichier

@@ -5244,6 +5244,10 @@ void populateBoxLayout(QDomElement element, QStack<QWidget *> *widgetStack,
5244 5244
                 QLabel *label = new QLabel(QCoreApplication::translate(
5245 5245
                     "configuration",
5246 5246
                     currentElement.text().toUtf8().data()));
5247
+                if(currentElement.hasAttribute("id"))
5248
+                {
5249
+                    label->setObjectName(currentElement.attribute("id"));
5250
+                }
5247 5251
                 layout->addWidget(label);
5248 5252
             }
5249 5253
             else if(currentElement.tagName() == "lcdtemperature")

Chargement…
Annuler
Enregistrer