You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 line
498 B

  1. #include "basedocument.h"
  2. BaseDocument::BaseDocument(DocumentType type, QWidget *parent)
  3. : QWidget(parent), m_type(type) {}
  4. BaseDocument::DocumentType BaseDocument::type() const {
  5. return m_type;
  6. }
  7. QString BaseDocument::filePath() const {
  8. return m_filePath;
  9. }
  10. void BaseDocument::setFilePath(const QString &path) {
  11. m_filePath = path;
  12. }
  13. bool BaseDocument::isModified() const {
  14. return m_modified;
  15. }
  16. void BaseDocument::setModified(bool modified) {
  17. m_modified = modified;
  18. }