VirtualBox

Changeset 71922 in vbox for trunk


Ignore:
Timestamp:
Apr 19, 2018 1:14:59 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Tiny cleanup for UIMediumSizeEditor and move it to VBoxGlobal library.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r71921 r71922  
    558558        src/widgets/UIEmptyFilePathSelector.h \
    559559        src/widgets/UILineTextEdit.h \
    560         src/widgets/UIMediumSizeEditor.h \
    561560        src/widgets/UIMenuBar.h \
    562561        src/widgets/UIPortForwardingTable.h \
     
    686685        src/widgets/UIHostComboEditor.h \
    687686        src/widgets/UIHotKeyEditor.h \
     687        src/widgets/UIMediumSizeEditor.h \
    688688        src/widgets/UIPopupBox.h \
    689689        src/widgets/UIPopupPane.h \
     
    778778        src/widgets/UIHostComboEditor.h \
    779779        src/widgets/UIHotKeyEditor.h \
     780        src/widgets/UIMediumSizeEditor.h \
    780781        src/widgets/UIPopupBox.h \
    781782        src/widgets/UIPopupPane.h \
     
    10481049        src/widgets/UIEmptyFilePathSelector.cpp \
    10491050        src/widgets/UILineTextEdit.cpp \
    1050         src/widgets/UIMediumSizeEditor.cpp \
    10511051        src/widgets/UIMenuBar.cpp \
    10521052        src/widgets/UIPortForwardingTable.cpp \
     
    12161216        src/widgets/UIHostComboEditor.cpp \
    12171217        src/widgets/UIHotKeyEditor.cpp \
     1218        src/widgets/UIMediumSizeEditor.cpp \
    12181219        src/widgets/UIPopupBox.cpp \
    12191220        src/widgets/UIPopupPane.cpp \
     
    13341335        src/widgets/UIHostComboEditor.cpp \
    13351336        src/widgets/UIHotKeyEditor.cpp \
     1337        src/widgets/UIMediumSizeEditor.cpp \
    13361338        src/widgets/UIPopupBox.cpp \
    13371339        src/widgets/UIPopupPane.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMediumSizeEditor.cpp

    r71027 r71922  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2828/* GUI includes: */
    2929# include "QILineEdit.h"
     30# include "VBoxGlobal.h"
    3031# include "UIMediumSizeEditor.h"
    31 # include "VBoxGlobal.h"
    3232
    3333/* COM includes: */
     
    114114    /* Create layout: */
    115115    QGridLayout *pLayout = new QGridLayout(this);
    116     AssertPtrReturnVoid(pLayout);
     116    if (pLayout)
    117117    {
    118118        /* Configure layout: */
     
    124124        /* Create size slider: */
    125125        m_pSlider = new QSlider;
    126         AssertPtrReturnVoid(m_pSlider);
     126        if (m_pSlider)
    127127        {
    128128            /* Configure slider: */
     
    145145        /* Create minimum size label: */
    146146        m_pLabelMinSize = new QLabel;
    147         AssertPtrReturnVoid(m_pLabelMinSize);
     147        if (m_pLabelMinSize)
    148148        {
    149149            /* Configure label: */
     
    156156        /* Create maximum size label: */
    157157        m_pLabelMaxSize = new QLabel;
    158         AssertPtrReturnVoid(m_pLabelMaxSize);
     158        if (m_pLabelMaxSize)
    159159        {
    160160            /* Configure label: */
     
    167167        /* Create size editor: */
    168168        m_pEditor = new QILineEdit;
    169         AssertPtrReturnVoid(m_pEditor);
     169        if (m_pEditor)
    170170        {
    171171            /* Configure editor: */
     
    266266    m_pEditor->setToolTip(strToolTip);
    267267}
    268 
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMediumSizeEditor.h

    r71027 r71922  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2424/* GUI includes: */
    2525#include "QIWithRetranslateUI.h"
     26#include "UILibraryDefs.h"
    2627
    2728/* Forward declarations: */
    2829class QLabel;
    2930class QSlider;
     31class QString;
     32class QWidget;
    3033class QILineEdit;
    3134
    32 
    3335/** Medium size editor widget. */
    34 class UIMediumSizeEditor : public QIWithRetranslateUI<QWidget>
     36class SHARED_LIBRARY_STUFF UIMediumSizeEditor : public QIWithRetranslateUI<QWidget>
    3537{
    3638    Q_OBJECT;
     
    99101
    100102#endif /* !___UIMediumSizeEditor_h___ */
    101 
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