bookpage.cpp 353 B

123456789101112131415161718192021222324252627
  1. #include "bookpage.h"
  2. BookPage::BookPage(QObject *parent) :
  3. QObject(parent)
  4. {
  5. }
  6. void BookPage::setPage(QString name)
  7. {
  8. m_page = QUrl(name);
  9. }
  10. QUrl BookPage::pageUrl() const
  11. {
  12. return m_page;
  13. }
  14. void BookPage::setNumber(int index)
  15. {
  16. m_index = index;
  17. }
  18. int BookPage::pageNumber() const
  19. {
  20. return m_index;
  21. }