VirtualBox

Changeset 78298 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 25, 2019 5:09:37 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:7127: Heavy cleanup for UIMediumEnumerator classes: Reordering.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/medium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp

    r78297 r78298  
    2020
    2121/* GUI includes: */
     22#include "VBoxGlobal.h"
    2223#include "UIMediumEnumerator.h"
    2324#include "UIThreadPool.h"
    2425#include "UIVirtualBoxEventHandler.h"
    25 #include "VBoxGlobal.h"
    2626
    2727/* COM includes: */
    2828#include "COMEnums.h"
    2929#include "CMachine.h"
     30#include "CMediumAttachment.h"
    3031#include "CSnapshot.h"
    31 #include "CMediumAttachment.h"
    3232
    3333
     
    202202}
    203203
     204void UIMediumEnumerator::retranslateUi()
     205{
     206    /* Translating NULL UIMedium by recreating it: */
     207    if (m_media.contains(UIMedium::nullID()))
     208        m_media[UIMedium::nullID()] = UIMedium();
     209}
     210
    204211void UIMediumEnumerator::sltHandleMachineUpdate(const QUuid &uMachineID)
    205212{
     
    373380        emit sigMediumEnumerationFinished();
    374381    }
    375 }
    376 
    377 void UIMediumEnumerator::retranslateUi()
    378 {
    379     /* Translating NULL uimedium by recreating it: */
    380     if (m_media.contains(UIMedium::nullID()))
    381         m_media[UIMedium::nullID()] = UIMedium();
    382382}
    383383
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.h

    r78297 r78298  
    2727
    2828/* GUI includes: */
     29#include "QIWithRetranslateUI.h"
    2930#include "UILibraryDefs.h"
    3031#include "UIMedium.h"
    31 #include "QIWithRetranslateUI.h"
    3232
    3333/* Forward declarations: */
     34class UITask;
    3435class UIThreadPool;
    35 class UITask;
    3636
    3737/* Typedefs: */
     
    7171    void refreshMedia();
    7272
     73protected:
     74
     75    /** Handles translation event. */
     76    virtual void retranslateUi() /* override */;
     77
    7378private slots:
    7479
     
    8489
    8590private:
    86 
    87     /** Handles translation event. */
    88     virtual void retranslateUi() /* override */;
    8991
    9092    /* Helpers: Medium-enumeration stuff: */
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