VirtualBox

Changeset 54756 in vbox


Ignore:
Timestamp:
Mar 13, 2015 5:46:26 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98932
Message:

FE/Qt: 7676: Runtime UI: Disk Encryption (DE) support: Table tool-tips should help the user to understand which mediums are encrypted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIAddDiskEncryptionPasswordDialog.cpp

    r54754 r54756  
    269269            break;
    270270        }
     271        case Qt::ToolTipRole:
     272        {
     273            /* We are generating tool-tip here and not in retranslateUi() because of the tricky plural form handling,
     274             * but be quiet, it's safe enough because the tool-tip being re-acquired every time on mouse-hovering. */
     275            const QStringList encryptedMediums = m_encryptedMediums.values(m_encryptionPasswords.keys().at(index.row()));
     276            return tr("Used by the following %n hard-drive(s):<br>%1",
     277                      "This text is never used with n == 0. "
     278                      "Feel free to drop the %n where possible, "
     279                      "we only included it because of problems with Qt Linguist "
     280                      "(but the user can see how many hard drives are in the tool-tip "
     281                      "and doesn't need to be told).",
     282                      encryptedMediums.size())
     283                      .arg(encryptedMediums.join("<br>"));
     284        }
    271285        case Qt::TextAlignmentRole:
    272286        {
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