diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-09-12 11:20:44 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-09-12 11:20:44 +0200 |
commit | 1364120d319702b52f827d6ee1e5034f51eea3cb (patch) | |
tree | 90f7a514116999b6e796b34d134ded211abc826b /framework/src/domain/documenthandler.h | |
parent | ac17e4de1b24524ddf37322b49a2b689d366d644 (diff) | |
download | kube-1364120d319702b52f827d6ee1e5034f51eea3cb.tar.gz kube-1364120d319702b52f827d6ee1e5034f51eea3cb.zip |
remove file loading/saving related code from documenthandler
Diffstat (limited to 'framework/src/domain/documenthandler.h')
-rw-r--r-- | framework/src/domain/documenthandler.h | 17 |
1 files changed, 0 insertions, 17 deletions
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 | |||
80 | 80 | ||
81 | Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged) | 81 | Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged) |
82 | 82 | ||
83 | Q_PROPERTY(QString fileName READ fileName NOTIFY fileUrlChanged) | ||
84 | Q_PROPERTY(QString fileType READ fileType NOTIFY fileUrlChanged) | ||
85 | Q_PROPERTY(QUrl fileUrl READ fileUrl NOTIFY fileUrlChanged) | ||
86 | |||
87 | public: | 83 | public: |
88 | explicit DocumentHandler(QObject *parent = nullptr); | 84 | explicit DocumentHandler(QObject *parent = nullptr); |
89 | 85 | ||
@@ -120,14 +116,6 @@ public: | |||
120 | int fontSize() const; | 116 | int fontSize() const; |
121 | void setFontSize(int size); | 117 | void setFontSize(int size); |
122 | 118 | ||
123 | QString fileName() const; | ||
124 | QString fileType() const; | ||
125 | QUrl fileUrl() const; | ||
126 | |||
127 | public Q_SLOTS: | ||
128 | void load(const QUrl &fileUrl); | ||
129 | void saveAs(const QUrl &fileUrl); | ||
130 | |||
131 | Q_SIGNALS: | 119 | Q_SIGNALS: |
132 | void documentChanged(); | 120 | void documentChanged(); |
133 | void cursorPositionChanged(); | 121 | void cursorPositionChanged(); |
@@ -145,10 +133,6 @@ Q_SIGNALS: | |||
145 | void fontSizeChanged(); | 133 | void fontSizeChanged(); |
146 | 134 | ||
147 | void textChanged(); | 135 | void textChanged(); |
148 | void fileUrlChanged(); | ||
149 | |||
150 | void loaded(const QString &text); | ||
151 | void error(const QString &message); | ||
152 | 136 | ||
153 | private: | 137 | private: |
154 | void reset(); | 138 | void reset(); |
@@ -164,7 +148,6 @@ private: | |||
164 | 148 | ||
165 | QFont m_font; | 149 | QFont m_font; |
166 | int m_fontSize; | 150 | int m_fontSize; |
167 | QUrl m_fileUrl; | ||
168 | }; | 151 | }; |
169 | 152 | ||
170 | #endif // DOCUMENTHANDLER_H | 153 | #endif // DOCUMENTHANDLER_H |