VirtualBox

Changeset 88901 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 6, 2021 1:10:03 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8161. repeating r144235 for log viewer dialog

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.cpp

    r88873 r88901  
    8787}
    8888
     89void UIVMLogViewerDialog::resizeEvent(QResizeEvent *pEvent)
     90{
     91    QIWithRetranslateUI<QIManagerDialog>::resizeEvent(pEvent);
     92    saveDialogGeometry();
     93}
     94
     95void UIVMLogViewerDialog::moveEvent(QMoveEvent *pEvent)
     96{
     97    QIWithRetranslateUI<QIManagerDialog>::moveEvent(pEvent);
     98    saveDialogGeometry();
     99}
     100
    89101void UIVMLogViewerDialog::configure()
    90102{
     
    118130    retranslateUi();
    119131    manageEscapeShortCut();
     132    loadDialogGeometry();
    120133}
    121134
    122 void UIVMLogViewerDialog::loadSettings()
     135void UIVMLogViewerDialog::loadDialogGeometry()
    123136{
    124137
     
    143156}
    144157
    145 void UIVMLogViewerDialog::saveSettings()
     158void UIVMLogViewerDialog::saveDialogGeometry()
    146159{
    147160    /* Save geometry to extradata: */
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.h

    r86986 r88901  
    8585        /** Handles translation event. */
    8686        virtual void retranslateUi() /* override */;
     87        virtual void resizeEvent(QResizeEvent *pEvent) /* override */;
     88        virtual void moveEvent(QMoveEvent *pEvent) /* override */;
    8789    /** @} */
    8890
     
    9597        /** Perform final preparations. */
    9698        virtual void finalize() /* override */;
    97         /** Loads dialog setting from extradata. */
    98         virtual void loadSettings() /* override */;
     99        /** Loads dialog geometry from extradata. */
     100        virtual void loadDialogGeometry() /* override */;
    99101
    100         /** Saves dialog setting into extradata. */
    101         virtual void saveSettings() /* override */;
     102        /** Saves dialog geometry into extradata. */
     103        virtual void saveDialogGeometry() /* override */;
    102104    /** @} */
    103105
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