~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to .pc/16-no-update.patch/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-07-04 13:02:31 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110704130231-l843es6wqhx614n7
Tags: 4.0.10-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Add the Modaliases control field manually for maximum backportability.

Show diffs side-by-side

added added

removed removed

Lines of Context:
433
433
 
434
434
void UIGLSettingsDlg::retranslateUi()
435
435
{
 
436
    /* Base-class UI translation: */
 
437
    UISettingsDialog::retranslateUi();
 
438
 
436
439
    /* Set dialog's name: */
437
440
    setWindowTitle(title());
438
441
 
459
462
 
460
463
    /* Translate the selector: */
461
464
    m_pSelector->polish();
462
 
 
463
 
    /* Base-class UI translation: */
464
 
    UISettingsDialog::retranslateUi();
465
465
}
466
466
 
467
467
QString UIGLSettingsDlg::title() const
767
767
 
768
768
void UIVMSettingsDlg::retranslateUi()
769
769
{
770
 
    /* Set dialog's name: */
771
 
    setWindowTitle(title());
772
 
 
773
 
    /* We have to make sure that the Serial & Network subpages are retranslated
 
770
    /* We have to make sure that the Network, Serial & Parallel pages are retranslated
774
771
     * before they are revalidated. Cause: They do string comparing within
775
 
     * vboxGlobal which is retranslated at that point already. */
 
772
     * vboxGlobal which is retranslated at that point already: */
776
773
    QEvent event(QEvent::LanguageChange);
 
774
    if (QWidget *pPage = m_pSelector->idToPage(VMSettingsPage_Network))
 
775
        qApp->sendEvent(pPage, &event);
 
776
    if (QWidget *pPage = m_pSelector->idToPage(VMSettingsPage_Serial))
 
777
        qApp->sendEvent(pPage, &event);
 
778
    if (QWidget *pPage = m_pSelector->idToPage(VMSettingsPage_Parallel))
 
779
        qApp->sendEvent(pPage, &event);
 
780
 
 
781
    /* Base-class UI translation: */
 
782
    UISettingsDialog::retranslateUi();
 
783
 
 
784
    /* Set dialog's name: */
 
785
    setWindowTitle(title());
777
786
 
778
787
    /* General page: */
779
788
    m_pSelector->setItemText(VMSettingsPage_General, tr("General"));
792
801
 
793
802
    /* Network page: */
794
803
    m_pSelector->setItemText(VMSettingsPage_Network, tr("Network"));
795
 
    if (QWidget *pPage = m_pSelector->idToPage(VMSettingsPage_Network))
796
 
        qApp->sendEvent(pPage, &event);
797
804
 
798
805
    /* Ports page: */
799
806
    m_pSelector->setItemText(VMSettingsPage_Ports, tr("Ports"));
800
807
 
801
808
    /* Serial page: */
802
809
    m_pSelector->setItemText(VMSettingsPage_Serial, tr("Serial Ports"));
803
 
    if (QWidget *pPage = m_pSelector->idToPage(VMSettingsPage_Serial))
804
 
        qApp->sendEvent(pPage, &event);
805
810
 
806
811
    /* Parallel page: */
807
812
    m_pSelector->setItemText(VMSettingsPage_Parallel, tr("Parallel Ports"));
808
 
    if (QWidget *pPage = m_pSelector->idToPage(VMSettingsPage_Parallel))
809
 
        qApp->sendEvent(pPage, &event);
810
813
 
811
814
    /* USB page: */
812
815
    m_pSelector->setItemText(VMSettingsPage_USB, tr("USB"));
816
819
 
817
820
    /* Translate the selector: */
818
821
    m_pSelector->polish();
819
 
 
820
 
    /* Base-class UI translation: */
821
 
    UISettingsDialog::retranslateUi();
822
 
 
823
 
    /* Revalidate all pages to retranslate the warning messages also: */
824
 
    QList<QIWidgetValidator*> validators = findChildren<QIWidgetValidator*>();
825
 
    for (int i = 0; i < validators.size(); ++i)
826
 
    {
827
 
        QIWidgetValidator *pValidator = validators[i];
828
 
        if (!pValidator->isValid())
829
 
            sltRevalidate(pValidator);
830
 
    }
831
822
}
832
823
 
833
824
QString UIVMSettingsDlg::title() const