mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
cross ref item: use symbolic contact instead of text NO NC (No need to translate, understand everywhere)
Element selector widget: add label of element. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2929 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -105,6 +105,12 @@ void ElementSelectorWidget::buildInterface() {
|
||||
foreach (Element *elmt, elements_list) {
|
||||
//label for the button
|
||||
QString button_text;
|
||||
//if element is master and have label, add label to the string
|
||||
if (elmt->linkType() & Element::Master) {
|
||||
QString label = elmt->elementInformations()["label"].toString();
|
||||
if (!label.isEmpty()) button_text += (label + " ");
|
||||
}
|
||||
|
||||
QString title = elmt->diagram()->title();
|
||||
if (title.isEmpty()) title = tr("Sans titre");
|
||||
button_text += QString(tr("Folio\240 %1 (%2), position %3.")).arg(elmt->diagram()->folioIndex() + 1)
|
||||
|
||||
Reference in New Issue
Block a user