VirtualBox

Changeset 10969 in vbox


Ignore:
Timestamp:
Jul 30, 2008 11:09:42 AM (17 years ago)
Author:
vboxsync
Message:

Fe/Qt4: Make VBoxSettingsDialog's validators to be retranslated on language change event. This fix retranslation of default validators warnings (validator caption + invalid widget's buddy text).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSettingsDialog.cpp

    r10937 r10969  
    132132    mWarnIconLabel->setWarningText (tr ("Invalid settings detected"));
    133133
     134    QList<QIWidgetValidator*> vlist = findChildren<QIWidgetValidator*>();
     135
     136    /* Rename all validators to make them feat new language. */
     137    foreach (QIWidgetValidator *wval, vlist)
     138        wval->setCaption (mSelector->itemTextByPage (
     139            qobject_cast<VBoxSettingsPage*> (wval->widget())));
     140
    134141    /* Revalidate all pages to retranslate the warning messages also. */
    135     QList<QIWidgetValidator*> vlist = findChildren<QIWidgetValidator*>();
    136142    foreach (QIWidgetValidator *wval, vlist)
    137143        if (!wval->isValid())
Note: See TracChangeset for help on using the changeset viewer.

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