VirtualBox

Changeset 71479 in vbox for trunk


Ignore:
Timestamp:
Mar 23, 2018 10:43:03 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9072: Don't disable bookmark panel's close button, never.

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

Legend:

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

    r71370 r71479  
    8282}
    8383
     84void UIVMLogViewerBookmarksPanel::disableEnableBookmarking(bool flag)
     85{
     86    m_pBookmarksComboBox->setEnabled(flag);
     87    m_pGotoSelectedBookmark->setEnabled(flag);
     88    m_pDeleteAllButton->setEnabled(flag);
     89    m_pDeleteCurrentButton->setEnabled(flag);
     90    m_pNextButton->setEnabled(flag);
     91    m_pPreviousButton->setEnabled(flag);
     92    m_pNextPreviousButtonContainer->setEnabled(flag);
     93}
     94
    8495void UIVMLogViewerBookmarksPanel::setBookmarkIndex(int index)
    8596{
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksPanel.h

    r70706 r71479  
    4444    UIVMLogViewerBookmarksPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer);
    4545
    46     /* Adds a single bookmark to an existing list of bookmarks. Possibly called
     46    /** Adds a single bookmark to an existing list of bookmarks. Possibly called
    4747       by UIVMLogViewerWidget when user adds a bookmark thru context menu etc. */
    4848    void addBookmark(const QPair<int, QString> &newBookmark);
    49     /* Clear the bookmark list and show this list instead. Probably done after
     49    /** Clear the bookmark list and show this list instead. Probably done after
    5050       user switches to another log page tab etc. */
    5151    void setBookmarksList(const QVector<QPair<int, QString> > &bookmarkList);
    5252    void updateBookmarkList(const QVector<QPair<int, QString> > &bookmarkVector);
     53    /** Disable/enable all the widget except the close button */
     54    void disableEnableBookmarking(bool flag);
    5355
    5456public slots:
     
    7274private:
    7375
    74     /* @a index is the index of the curent bookmark. */
     76    /** @a index is the index of the curent bookmark. */
    7577    void setBookmarkIndex(int index);
    7678
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r71477 r71479  
    214214    if (m_pActionBookmarks)
    215215        m_pActionBookmarks->setEnabled(!noLogsToShow);
    216     //m_pTabWidget->setEnabled(!noLogsToShow);
     216
    217217    if (m_pActionSettings)
    218218        m_pActionSettings->setEnabled(!noLogsToShow);
     
    297297       the original log text and does not mean much in a reduced/filtered one. */
    298298    if (m_pBookmarksPanel)
    299     {
    300         if (isFiltered)
    301         {
    302             m_pBookmarksPanel->setEnabled(false);
    303             m_pBookmarksPanel->setVisible(false);
    304         }
    305         else
    306             m_pBookmarksPanel->setEnabled(true);
    307     }
     299        m_pBookmarksPanel->disableEnableBookmarking(!isFiltered);
    308300}
    309301
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