VirtualBox

Changeset 62216 in vbox


Ignore:
Timestamp:
Jul 13, 2016 11:40:39 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108726
Message:

FE/Qt: QIDialog cleanup (part 01): Doxy/comments.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.cpp

    r61241 r62216  
    55
    66/*
    7  * Copyright (C) 2008-2013 Oracle Corporation
     7 * Copyright (C) 2008-2016 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3131    , m_fPolished(false)
    3232{
    33     /* No need to count that window as important for application,
     33    /* Do not count that window as important for application,
    3434     * it will NOT be taken into account when other top-level windows will be closed: */
    3535    setAttribute(Qt::WA_QuitOnClose, false);
     
    121121}
    122122
    123 void QIDialog::polishEvent(QShowEvent*)
     123void QIDialog::polishEvent(QShowEvent *)
    124124{
    125125    /* Make sure layout is polished: */
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.h

    r61241 r62216  
    55
    66/*
    7  * Copyright (C) 2008-2013 Oracle Corporation
     7 * Copyright (C) 2008-2016 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 */
    1717
    18 #ifndef __QIDialog_h__
    19 #define __QIDialog_h__
     18#ifndef ___QIDialog_h___
     19#define ___QIDialog_h___
    2020
    2121/* Qt includes: */
     
    2626class QEventLoop;
    2727
    28 /* Qt dialog extension: */
    29 class QIDialog: public QDialog
     28
     29/** QDialog extension providing the GUI with
     30  * the advanced capabilities like delayed show. */
     31class QIDialog : public QDialog
    3032{
    3133    Q_OBJECT;
     
    3335public:
    3436
    35     /* Constructor/destructor: */
     37    /** Constructs the dialog passing @a pParent and @a flags to the base-class. */
    3638    QIDialog(QWidget *pParent = 0, Qt::WindowFlags flags = 0);
     39    /** Destructs the dialog. */
    3740    ~QIDialog();
    3841
    39     /* API: Visibility stuff: */
     42    /** Defines whether the dialog is @a fVisible. */
    4043    void setVisible(bool fVisible);
    4144
    4245public slots:
    4346
    44     /** Shows the dialog as a modal dialog, blocking until the user closes it.
     47    /** Shows the dialog as a modal one, blocking until the user closes it.
    4548      * @param  fShow              detemines whether the dialog should be shown instantly.
    4649      * @param  fApplicationModal  determine whether the dialog should be application-modal. */
    4750    virtual int execute(bool fShow = true, bool fApplicationModal = false);
    4851
    49     /** Shows the dialog as a modal dialog, blocking until the user closes it.
     52    /** Shows the dialog as a modal one, blocking until the user closes it.
    5053      * @note  Provided for compatibility with various Qt versions. */
    5154    virtual int exec() /* overload for Qt4, override for Qt5 */ { return execute(); }
     
    5356protected:
    5457
    55     /* Handler: Show-event stuff: */
     58    /** Handles show @a pEvent. */
    5659    void showEvent(QShowEvent *pEvent);
    57 
    58     /* Handler: Polish-event stuff: */
     60    /** Handles show @a pEvent sent for the first time. */
    5961    virtual void polishEvent(QShowEvent *pEvent);
    6062
    6163private:
    6264
    63     /* Variables: */
     65    /** Holds whether the dialog is polished. */
    6466    bool m_fPolished;
     67
     68    /** Holds the separate event-loop instance.
     69      * @note  This event-loop is only used when the dialog being executed via the execute()
     70      *        functionality, allowing for the delayed show and advanced modality flag. */
    6571    QPointer<QEventLoop> m_pEventLoop;
    6672};
    6773
     74/** Safe pointer to the QIDialog class. */
    6875typedef QPointer<QIDialog> UISafePointerDialog;
    6976
    70 #endif /* __QIDialog_h__ */
     77#endif /* !___QIDialog_h___ */
    7178
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