VirtualBox

Changeset 70792 in vbox


Ignore:
Timestamp:
Jan 29, 2018 1:12:06 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt bugref:9072 Some code style changes

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

Legend:

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

    r70716 r70792  
    135135}
    136136
    137 void UIVMLogPage::setFileName(const QString &strFileName)
    138 {
    139     m_strFileName = strFileName;
    140 }
    141 
    142 const QString& UIVMLogPage::fileName() const
    143 {
    144     return m_strFileName;
     137void UIVMLogPage::setLogFileName(const QString &strLogFileName)
     138{
     139    m_strLogFileName = strLogFileName;
     140}
     141
     142const QString& UIVMLogPage::logFileName() const
     143{
     144    return m_strLogFileName;
    145145}
    146146
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogPage.h

    r70663 r70792  
    5252
    5353    UIVMLogPage(QWidget *pParent = 0, int tabIndex = -1);
    54     /** Destructs the VM Log-Viewer. */
    5554    ~UIVMLogPage();
     55
    5656    /** Returns the width of the current log page. return 0 if there is no current log page: */
    5757    int defaultLogPageWidth() const;
     
    6767    const QString& logString() const;
    6868
    69     void setFileName(const QString &strFileName);
    70     const QString& fileName() const;
     69    void setLogFileName(const QString &strFileName);
     70    const QString& logFileName() const;
    7171
    72     /** Ses plaintextEdit's text. Note that the text we
     72    /** Set plaintextEdit's text. Note that the text we
    7373        show currently might be different than
    7474        m_strLog. For example during filtering. */
     
    129129    void updateTextEditBookmarkLineSet();
    130130    void deleteBookmark(LogBookmark bookmark);
    131     /** When settings for this changed, they are applied immediately
    132         only if this is visible, if not they are applied when this becomes
    133         visible. */
     131    /** When settings for this UILogPage instance changed, they are applied immediately
     132        only if this is visible, if not they are applied when this becomes visible. */
    134133    void applySettings();
    135134
     
    139138    QString         m_strLog;
    140139    /** Stores full path and name of the log file. */
    141     QString         m_strFileName;
     140    QString         m_strLogFileName;
    142141    /** This is the index of the tab containing this widget in UIVMLogViewerWidget. */
    143142    int             m_tabIndex;
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksPanel.cpp

    r70715 r70792  
    111111    }
    112112
    113 
    114113    m_pGotoSelectedBookmark = new QIToolButton(this);
    115114    if (m_pGotoSelectedBookmark)
     
    133132            pContainerLayout->setSpacing(qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing) / 2);
    134133#endif
    135        m_pPreviousButton = new QIToolButton;
    136        if (m_pPreviousButton)
    137        {
    138            pContainerLayout->addWidget(m_pPreviousButton);
    139            m_pPreviousButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowBack, this));
    140        }
    141 
    142        m_pNextButton = new QIToolButton;
    143        if (m_pNextButton){
    144            pContainerLayout->addWidget(m_pNextButton);
    145            m_pNextButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowForward, this));
    146        }
     134
     135    m_pPreviousButton = new QIToolButton;
     136    if (m_pPreviousButton)
     137    {
     138        pContainerLayout->addWidget(m_pPreviousButton);
     139        m_pPreviousButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowBack, this));
     140    }
     141
     142    m_pNextButton = new QIToolButton;
     143    if (m_pNextButton){
     144        pContainerLayout->addWidget(m_pNextButton);
     145        m_pNextButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowForward, this));
     146    }
    147147    }
    148148
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.h

    r70139 r70792  
    7777
    7878    void retranslateUi();
    79 
    8079    CMachine m_comMachine;
    8180};
    8281
    8382#endif /* !___UIVMLogViewerDialog_h___ */
    84 
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h

    r70706 r70792  
    7272    /** Holds the reference to VM Log-Viewer this panel belongs to. */
    7373    UIVMLogViewerWidget *m_pViewer;
    74     /** Holds the instance of main-layout we create. */
    7574    QHBoxLayout         *m_pMainLayout;
    76     /** Holds the instance of close-button we create. */
    7775    QIToolButton        *m_pCloseButton;
    7876};
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.h

    r70711 r70792  
    3535class UIVMLogViewerWidget;
    3636
    37 /** QWidget extension
     37/** UIVMLogViewerPanel extension
    3838  * providing GUI for search-panel in VM Log-Viewer. */
    3939class UIVMLogViewerSearchPanel : public UIVMLogViewerPanel
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerTextEdit.h

    r70663 r70792  
    2727
    2828
    29 /* QPlainTextEdit extension for some addtional context menu items,
    30    a special scrollbar, line number area, and bookmarking support: */
     29/* QPlainTextEdit extension with some addtional context menu items,
     30   a special scrollbar, line number area, bookmarking support,
     31   background watermarking etc.: */
    3132class UIVMLogViewerTextEdit : public QIWithRetranslateUI<QPlainTextEdit>
    3233{
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r70746 r70792  
    229229        return;
    230230
    231     const QString& fileName = logPage->fileName();
     231    const QString& fileName = logPage->logFileName();
    232232    if (fileName.isEmpty())
    233233        return;
     
    873873        /* Set the file name only if we really have log file to read. */
    874874        if (!noLogsToShow)
    875             pLogPage->setFileName(strFileName);
     875            pLogPage->setLogFileName(strFileName);
    876876
    877877        /* Add page-container to viewer-container: */
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