VirtualBox

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


Ignore:
Timestamp:
Apr 18, 2018 1:02:05 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Tiny cleanup for QIFlowLayout 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

    r71885 r71894  
    440440VirtualBox_QT_MOCHDRS = \
    441441        src/UITakeSnapshotDialog.h \
    442         src/extensions/QIFlowLayout.h \
    443442        src/extensions/QIMenu.h \
    444443        src/extensions/QIStatusBar.h \
     
    649648        src/extensions/QIDialogButtonBox.h \
    650649        src/extensions/QIFileDialog.h \
     650        src/extensions/QIFlowLayout.h \
    651651        src/extensions/QILabel.h \
    652652        src/extensions/QILabelSeparator.h \
     
    732732        src/extensions/QIDialogButtonBox.h \
    733733        src/extensions/QIFileDialog.h \
     734        src/extensions/QIFlowLayout.h \
    734735        src/extensions/QILabel.h \
    735736        src/extensions/QILabelSeparator.h \
     
    915916        src/main.cpp \
    916917        src/UITakeSnapshotDialog.cpp \
    917         src/extensions/QIFlowLayout.cpp \
    918918        src/extensions/QIMenu.cpp \
    919919        src/extensions/QIStatusBar.cpp \
     
    11581158        src/extensions/QIDialogButtonBox.cpp \
    11591159        src/extensions/QIFileDialog.cpp \
     1160        src/extensions/QIFlowLayout.cpp \
    11601161        src/extensions/QILabel.cpp \
    11611162        src/extensions/QILabelSeparator.cpp \
     
    12681269        src/extensions/QIDialogButtonBox.cpp \
    12691270        src/extensions/QIFileDialog.cpp \
     1271        src/extensions/QIFlowLayout.cpp \
    12701272        src/extensions/QILabel.cpp \
    12711273        src/extensions/QILabelSeparator.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFlowLayout.cpp

    r67383 r71894  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - QIFlowLayout class implementation.
     3 * VBox Qt GUI - Qt extensions: QIFlowLayout class implementation.
    44 */
    55
    66/*
    7  * Copyright (C) 2017 Oracle Corporation
     7 * Copyright (C) 2017-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    265265    return m_iSpacingV >= 0 ? m_iSpacingV : smartSpacing(QStyle::PM_LayoutVerticalSpacing);
    266266}
    267 
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFlowLayout.h

    r67369 r71894  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - QIFlowLayout class declaration.
     3 * VBox Qt GUI - Qt extensions: QIFlowLayout class declaration.
    44 */
    55
    66/*
    7  * Copyright (C) 2017 Oracle Corporation
     7 * Copyright (C) 2017-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2323#include <QStyle>
    2424
     25/* GUI includes: */
     26#include "UILibraryDefs.h"
    2527
    2628/** QLayout extension providing GUI with the possibility to build flow-layout.
     
    2931  * It is also takes into account that some of the children can be expandable
    3032  * horizontally allowing them to grow up to all the available width. */
    31 class QIFlowLayout : public QLayout
     33class SHARED_LIBRARY_STUFF QIFlowLayout : public QLayout
    3234{
    3335    Q_OBJECT;
     
    5153
    5254        /** Holds the layout item. */
    53         QLayoutItem *item;
     55        QLayoutItem  *item;
    5456        /** Holds the layout item expand policy. */
    55         ExpandPolicy policy;
     57        ExpandPolicy  policy;
    5658        /** Holds the layout item desired width. */
    57         int width;
     59        int           width;
    5860    };
    5961    /** Layout item data list. */
     
    130132
    131133#endif /* !___QIFlowLayout_h___ */
    132 
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