VirtualBox

Changeset 77752 in vbox


Ignore:
Timestamp:
Mar 18, 2019 12:20:49 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9378. Closing the search widget when forwarding the search characters from the vm list itself.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserHandlerKeyboard.cpp

    r77638 r77752  
    302302            return false;
    303303        }
     304        case Qt::Key_Escape:
     305        {
     306            /* Make sure that vm search widget is hidden: */
     307            model()->setSearchWidgetVisible(false);
     308            break;
     309        }
    304310        default:
    305311        {
     
    379385#endif
    380386}
    381 
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r77750 r77752  
    536536    }
    537537
    538 
    539538    /* Update the search widget's match count(s): */
    540539    if (view())
    541540        view()->setSearchResultsCount(m_searchResults.size(), m_iCurrentScrolledIndex);
    542 
     541}
     542
     543void UIChooserModel::setSearchWidgetVisible(bool fVisible)
     544{
     545    if (view())
     546        view()->setSearchWidgetVisible(fVisible);
    543547}
    544548
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h

    r77723 r77752  
    195195          * all nodes which may be utilized by the calling code. */
    196196        QList<UIChooserNode*> resetSearch();
     197        /** Scrolls to next/prev (wrt. @a fIsNext) search result. */
    197198        void scrollToSearchResult(bool fIsNext);
     199        /** Shows/hides machine search widget. */
     200        void setSearchWidgetVisible(bool fVisible);
    198201    /** @} */
    199202
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