Changeset 71479 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 23, 2018 10:43:03 AM (7 years ago)
- 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 82 82 } 83 83 84 void 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 84 95 void UIVMLogViewerBookmarksPanel::setBookmarkIndex(int index) 85 96 { -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksPanel.h
r70706 r71479 44 44 UIVMLogViewerBookmarksPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer); 45 45 46 /* Adds a single bookmark to an existing list of bookmarks. Possibly called46 /** Adds a single bookmark to an existing list of bookmarks. Possibly called 47 47 by UIVMLogViewerWidget when user adds a bookmark thru context menu etc. */ 48 48 void addBookmark(const QPair<int, QString> &newBookmark); 49 /* Clear the bookmark list and show this list instead. Probably done after49 /** Clear the bookmark list and show this list instead. Probably done after 50 50 user switches to another log page tab etc. */ 51 51 void setBookmarksList(const QVector<QPair<int, QString> > &bookmarkList); 52 52 void updateBookmarkList(const QVector<QPair<int, QString> > &bookmarkVector); 53 /** Disable/enable all the widget except the close button */ 54 void disableEnableBookmarking(bool flag); 53 55 54 56 public slots: … … 72 74 private: 73 75 74 /* @a index is the index of the curent bookmark. */76 /** @a index is the index of the curent bookmark. */ 75 77 void setBookmarkIndex(int index); 76 78 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r71477 r71479 214 214 if (m_pActionBookmarks) 215 215 m_pActionBookmarks->setEnabled(!noLogsToShow); 216 //m_pTabWidget->setEnabled(!noLogsToShow); 216 217 217 if (m_pActionSettings) 218 218 m_pActionSettings->setEnabled(!noLogsToShow); … … 297 297 the original log text and does not mean much in a reduced/filtered one. */ 298 298 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); 308 300 } 309 301
Note:
See TracChangeset
for help on using the changeset viewer.