VirtualBox

Changeset 78435 in vbox


Ignore:
Timestamp:
May 7, 2019 2:19:26 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: Some fixes in UIMediumSearchWidget.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSearchWidget.cpp

    r78432 r78435  
    249249void UIMediumSearchWidget::sltShowNextMatchingItem()
    250250{
    251     if (m_matchedItemList.isEmpty())
    252         return;
    253251    goToNextPrevious(true);
    254252}
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSearchWidget.h

    r78432 r78435  
    5656    SearchType searchType() const;
    5757    QString searchTerm() const;
     58    /** Performs the search on the items of the @p pTreeWidget. If @p is true
     59      * then the next marched item is selected. */
    5860    void    search(QITreeWidget* pTreeWidget, bool fGotoNext = true);
    5961
     
    7173
    7274    void    prepareWidgets();
     75    /** Marks/unmarks the items of @p itemList depending on @p fMark. */
    7376    void    markUnmarkItems(QList<QTreeWidgetItem*> &itemList, bool fMark);
    7477    void    setUnderlineItemText(QTreeWidgetItem* pItem, bool fUnderline);
     
    7881    /** Updates the feedback text of th line edit that shows # of matches. */
    7982    void    updateSearchLineEdit(int iMatchCount, int iScrollToIndex);
     83
    8084    QIComboBox       *m_pSearchComboxBox;
    8185    UISearchLineEdit *m_pSearchTermLineEdit;
     
    8589    QList<QTreeWidgetItem*> m_matchedItemList;
    8690    QITreeWidget           *m_pTreeWidget;
     91    /** The index to the matched item (in m_matchedItemList) which is currently selected/scrolled to. */
    8792    int                     m_iScrollToIndex;
    8893};
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