From 1364120d319702b52f827d6ee1e5034f51eea3cb Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Tue, 12 Sep 2017 11:20:44 +0200 Subject: remove file loading/saving related code from documenthandler --- framework/src/domain/documenthandler.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'framework/src/domain/documenthandler.h') diff --git a/framework/src/domain/documenthandler.h b/framework/src/domain/documenthandler.h index a6125bc3..74b7c4f9 100644 --- a/framework/src/domain/documenthandler.h +++ b/framework/src/domain/documenthandler.h @@ -80,10 +80,6 @@ class DocumentHandler : public QObject Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged) - Q_PROPERTY(QString fileName READ fileName NOTIFY fileUrlChanged) - Q_PROPERTY(QString fileType READ fileType NOTIFY fileUrlChanged) - Q_PROPERTY(QUrl fileUrl READ fileUrl NOTIFY fileUrlChanged) - public: explicit DocumentHandler(QObject *parent = nullptr); @@ -120,14 +116,6 @@ public: int fontSize() const; void setFontSize(int size); - QString fileName() const; - QString fileType() const; - QUrl fileUrl() const; - -public Q_SLOTS: - void load(const QUrl &fileUrl); - void saveAs(const QUrl &fileUrl); - Q_SIGNALS: void documentChanged(); void cursorPositionChanged(); @@ -145,10 +133,6 @@ Q_SIGNALS: void fontSizeChanged(); void textChanged(); - void fileUrlChanged(); - - void loaded(const QString &text); - void error(const QString &message); private: void reset(); @@ -164,7 +148,6 @@ private: QFont m_font; int m_fontSize; - QUrl m_fileUrl; }; #endif // DOCUMENTHANDLER_H -- cgit v1.2.3