VirtualBox

Changeset 79359 in vbox for trunk


Ignore:
Timestamp:
Jun 26, 2019 12:31:27 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131591
Message:

FE/Qt: bugref:6143. Using native names in the layout list captions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

    r79357 r79359  
    24452445    QStringList layoutNames;
    24462446    foreach (const UISoftKeyboardLayout &layout, m_layouts)
    2447         layoutNames << layout.name();
     2447    {
     2448        if (layout.nativeName().isEmpty() && !layout.name().isEmpty())
     2449            layoutNames << layout.name();
     2450        else if (!layout.nativeName().isEmpty() && layout.name().isEmpty())
     2451            layoutNames << layout.nativeName();
     2452        else
     2453            layoutNames << QString("%1 (%2)").arg(layout.nativeName()).arg(layout.name());
     2454    }
    24482455    return layoutNames;
    24492456}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette