Added settings for seasons and number series. Added static method

ComboData::createComboData for easier combo bindings.
This commit is contained in:
2016-06-24 16:15:19 +02:00
committed by Rokos Josef
parent b33ff1b169
commit a89b0381b1
15 changed files with 578 additions and 195 deletions
+12
View File
@@ -125,6 +125,16 @@ Context::Context()
m_dbOpened = false;
}
SeasonPtr Context::currentSeason() const
{
return m_currentSeason;
}
void Context::setCurrentSeason(const SeasonPtr &currentSeason)
{
m_currentSeason = currentSeason;
}
QSharedPointer<User> Context::currentUser() const
{
return m_currentUser;
@@ -271,6 +281,8 @@ void Context::checkSeason()
season->setActive(true);
srv.save(season);
}
m_currentSeason = season;
}
void Context::checkNumberSeries()