Ignore:
Timestamp:
12/12/11 23:53:04 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
e21d164
Parents:
167a532
Message:

When the search toolbox button is clicked when the search dialog is already open, it is closed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/searchtabcontainer.cpp

    r167a532 rd12c1e0  
    4040
    4141
     42bool SearchTabContainer::searchDialogIsVisible() const {
     43    return header->isVisible();
     44}
     45
     46
    4247int SearchTabContainer::searchResultCount(const QDate& date) const {
    4348    int confId = Conference::activeConference();
     
    4752
    4853
    49 void SearchTabContainer::showSearchDialog() {
    50     header->show();
    51     treeView->hide();
     54void SearchTabContainer::showSearchDialog(bool show) {
     55    header->setVisible(show);
     56    treeView->setVisible(!show);
    5257}
    5358
Note: See TracChangeset for help on using the changeset viewer.