Merge branch 'remove-chapters'
# Conflicts: # src/backend/ReadingModel.h # src/qml/components/Footer.qml # tests/ReadingModelTest.cpp
This commit is contained in:
commit
43e75d3d8f
4 files changed
+43
-1
No files matched your search
@@ -49,6 +49,11 @@ int ReadingModel::totalChapters() const
|
||||
return m_totalChapters;
|
||||
}
|
||||
|
||||
bool ReadingModel::hasChapters() const
|
||||
{
|
||||
return m_totalChapters > 1;
|
||||
}
|
||||
|
||||
double ReadingModel::progress() const
|
||||
{
|
||||
if (m_totalChapters == 0)
|
||||
|
||||
Reference in new issue
Block a user