VirtualBox

Changeset 72713 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 28, 2018 9:34:12 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt Undo the changes introduced by r123230

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

Legend:

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

    r72701 r72713  
    5858    : QIWithRetranslateUI<QIManagerDialog>(pCenterWidget)
    5959    , m_comMachine(machine)
    60     , pWidget(0)
    6160{
    62 }
    63 
    64 UIVMLogViewerDialog::~UIVMLogViewerDialog()
    65 {
    66     if (pWidget)
    67         pWidget->setBeingClosed(true);
    6861}
    6962
     
    8174{
    8275    /* Create widget: */
    83     pWidget = new UIVMLogViewerWidget(EmbedTo_Dialog, this, m_comMachine);
     76    UIVMLogViewerWidget *pWidget = new UIVMLogViewerWidget(EmbedTo_Dialog, this, m_comMachine);
    8477    if (pWidget)
    8578    {
     
    165158        button(ButtonType_Close)->setShortcut(shortCut);
    166159}
    167 
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.h

    r72706 r72713  
    3636class QVBoxLayout;
    3737class UIVMLogViewerDialog;
    38 class UIVMLogViewerWidget;
    3938class CMachine;
    4039
     
    5049      * @param  pCenterWidget  Brings the widget to center wrt. pCenterWidget. */
    5150    virtual void create(QIManagerDialog *&pDialog, QWidget *pCenterWidget) /* override */;
    52 
    5351    CMachine m_comMachine;
    5452};
     
    6361
    6462    UIVMLogViewerDialog(QWidget *pCenterWidget, const CMachine &machine);
    65     ~UIVMLogViewerDialog();
    6663
    6764protected:
     
    8683    void retranslateUi();
    8784    CMachine m_comMachine;
    88     UIVMLogViewerWidget *pWidget;
    8985};
    9086
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r72701 r72713  
    7979    , m_bWrapLines(false)
    8080    , m_font(QFontDatabase::systemFont(QFontDatabase::FixedFont))
    81     , m_fBeingClosed(false)
    8281{
    8382    /* Prepare VM Log-Viewer: */
     
    854853void UIVMLogViewerWidget::manageEscapeShortCut()
    855854{
    856     if (m_fBeingClosed)
    857         return;
    858855    /* if there is no visible panels give the escape shortcut to parent dialog: */
    859856    if (m_visiblePanelsList.isEmpty())
     
    1002999    return logPage->currentFont();
    10031000}
    1004 
    1005 void UIVMLogViewerWidget::setBeingClosed(bool flag)
    1006 {
    1007     m_fBeingClosed = flag;
    1008 }
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h

    r72701 r72713  
    7676    void setMachine(const CMachine &machine);
    7777    QFont currentFont() const;
    78     void setBeingClosed(bool flag);
    7978
    8079protected:
     
    229228        QFont m_font;
    230229    /** @} */
    231     bool m_fBeingClosed;
    232230    friend class UIVMLogViewerBookmarksPanel;
    233231    friend class UIVMLogViewerFilterPanel;
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