Changeset bb6f7d6 for src


Ignore:
Timestamp:
01/28/10 09:50:52 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
7da2b49
Parents:
ac43c29
Message:

search tab - header is hidden in case no conf exists in the DB

Location:
src/gui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    rac43c29 rbb6f7d6  
    136136    tracksTabContainer->setDates(startDate, endDate);
    137137    roomsTabContainer->setDates(startDate, endDate);
    138     favsTabContainer->setDates(startDate, endDate);
    139     searchTabContainer->setDates(startDate, endDate);
     138    //favsTabContainer->setDates(startDate, endDate);
     139    //searchTabContainer->setDates(startDate, endDate);
     140    searchTabContainer->searchAgainClicked();
    140141    nowTabContainer->updateTreeView(QDate::currentDate());
    141142}
  • src/gui/searchtabcontainer.cpp

    rac43c29 rbb6f7d6  
    3535    searchAgainButton->hide();
    3636    treeView->hide();
     37    // do not show 'search' header if there are no conferences in the DB
     38    if(Conference::getAll().count()==0)
     39    {
     40        header->hide();
     41    }
    3742
    3843    connect( header, SIGNAL(searchClicked()), SLOT(searchButtonClicked()));
  • src/gui/searchtabcontainer.h

    rac43c29 rbb6f7d6  
    1515protected:
    1616    virtual void loadEvents( const QDate &aDate, const int aConferenceId );
     17public slots:
     18    void searchAgainClicked(); // made it public - to show header when 1.st conf importing is done successfuly
    1719private slots:
    1820    void searchButtonClicked();
    19     void searchAgainClicked();
    2021
    2122private:
  • src/gui/tabcontainer.cpp

    rac43c29 rbb6f7d6  
    3232    connect(treeView, SIGNAL(requestForConflicts(const QModelIndex &)), SLOT(displayConflicts(const QModelIndex &)));
    3333
    34     if(!Conference::getAll().count()) // no conference(s) in the DB
    35     {
    36         dayNavigator->hide();
    37     }
    38     else
    39     {
    40         QDate aStartDate = Conference::getById(Conference::activeConference()).start();
    41         QDate aEndDate = Conference::getById(Conference::activeConference()).end();
    42         dayNavigator->setDates(aStartDate, aEndDate);
    43     }
     34    // day navigator is hidden by default
     35    dayNavigator->hide();
    4436}
    4537
Note: See TracChangeset for help on using the changeset viewer.