summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/documenthandler.h
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-09-12 11:20:44 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-09-12 11:20:44 +0200
commit1364120d319702b52f827d6ee1e5034f51eea3cb (patch)
tree90f7a514116999b6e796b34d134ded211abc826b /framework/src/domain/documenthandler.h
parentac17e4de1b24524ddf37322b49a2b689d366d644 (diff)
downloadkube-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.h17
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
87public: 83public:
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
127public Q_SLOTS:
128 void load(const QUrl &fileUrl);
129 void saveAs(const QUrl &fileUrl);
130
131Q_SIGNALS: 119Q_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
153private: 137private:
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