VirtualBox

Changeset 71897 in vbox for trunk


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

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

    r71896 r71897  
    440440VirtualBox_QT_MOCHDRS = \
    441441        src/UITakeSnapshotDialog.h \
    442         src/extensions/graphics/QIGraphicsView.h \
    443442        src/extensions/graphics/QIGraphicsWidget.h \
    444443        src/globals/UIStarter.h \
     
    668667        src/extensions/QITreeWidget.h \
    669668        src/extensions/QIWidgetValidator.h \
     669        src/extensions/graphics/QIGraphicsView.h \
    670670        src/extradata/UIExtraDataDefs.h \
    671671        src/extradata/UIExtraDataManager.h \
     
    754754        src/extensions/QITreeWidget.h \
    755755        src/extensions/QIWidgetValidator.h \
     756        src/extensions/graphics/QIGraphicsView.h \
    756757        src/extradata/UIExtraDataDefs.h \
    757758        src/extradata/UIExtraDataManager.h \
     
    918919        src/main.cpp \
    919920        src/UITakeSnapshotDialog.cpp \
    920         src/extensions/graphics/QIGraphicsView.cpp \
    921921        src/extensions/graphics/QIGraphicsWidget.cpp \
    922922        src/globals/UIImageTools.cpp \
     
    11801180        src/extensions/QITreeWidget.cpp \
    11811181        src/extensions/QIWidgetValidator.cpp \
     1182        src/extensions/graphics/QIGraphicsView.cpp \
    11821183        src/extradata/UIExtraDataDefs.cpp \
    11831184        src/extradata/UIExtraDataManager.cpp \
     
    12921293        src/extensions/QITreeWidget.cpp \
    12931294        src/extensions/QIWidgetValidator.cpp \
     1295        src/extensions/graphics/QIGraphicsView.cpp \
    12941296        src/extradata/UIExtraDataDefs.cpp \
    12951297        src/extradata/UIExtraDataManager.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/graphics/QIGraphicsView.cpp

    r69500 r71897  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - QIGraphicsView class implementation.
     3 * VBox Qt GUI - Qt extensions: QIGraphicsView class implementation.
    44 */
    55
    66/*
    7  * Copyright (C) 2015-2017 Oracle Corporation
     7 * Copyright (C) 2015-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3131
    3232#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
     33
    3334
    3435QIGraphicsView::QIGraphicsView(QWidget *pParent /* = 0 */)
     
    107108    return QGraphicsView::event(pEvent);
    108109}
    109 
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/graphics/QIGraphicsView.h

    r69500 r71897  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - QIGraphicsView class declaration.
     3 * VBox Qt GUI - Qt extensions: QIGraphicsView class declaration.
    44 */
    55
    66/*
    7  * Copyright (C) 2015-2017 Oracle Corporation
     7 * Copyright (C) 2015-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2222#include <QGraphicsView>
    2323
    24 /** General QGraphicsView extension. */
    25 class QIGraphicsView : public QGraphicsView
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
     27/* Forward declarations: */
     28class QEvent;
     29class QWidget;
     30
     31/** QGraphicsView extension with advanced functionality. */
     32class SHARED_LIBRARY_STUFF QIGraphicsView : public QGraphicsView
    2633{
    2734    Q_OBJECT;
     
    2936public:
    3037
    31     /** Constructor, passes @a pParent to the QGraphicsView constructor. */
     38    /** Constructs graphics-view passing @a pParent to the base-class. */
    3239    QIGraphicsView(QWidget *pParent = 0);
    3340
    3441protected:
    3542
    36     /** General @a pEvent handler. */
    37     bool event(QEvent *pEvent);
     43    /** Handles any Qt @a pEvent. */
     44    virtual bool event(QEvent *pEvent) /* override */;
    3845
    3946private:
     
    4451
    4552#endif /* !___QIGraphicsView_h___ */
    46 
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