Changeset View
Changeset View
Standalone View
Standalone View
src/document/katedocument.h
Show First 20 Lines • Show All 1062 Lines • ▼ Show 20 Line(s) | |||||
1063 | 1063 | | |||
1064 | public: | 1064 | public: | ||
1065 | /** | 1065 | /** | ||
1066 | * Returns a git compatible sha1 checksum of this document on disk. | 1066 | * Returns a git compatible sha1 checksum of this document on disk. | ||
1067 | * @return checksum for this document on disk | 1067 | * @return checksum for this document on disk | ||
1068 | */ | 1068 | */ | ||
1069 | QByteArray checksum() const override; | 1069 | QByteArray checksum() const override; | ||
1070 | 1070 | | |||
1071 | void updateFileType(const QString &newType, bool user = false); | 1071 | /** | ||
1072 | * @return false if @p newType is an invalid mode. | ||||
1073 | */ | ||||
1074 | bool updateFileType(const QString &newType, bool user = false); | ||||
1072 | 1075 | | |||
1073 | QString fileType() const | 1076 | QString fileType() const | ||
1074 | { | 1077 | { | ||
1075 | return m_fileType; | 1078 | return m_fileType; | ||
1076 | } | 1079 | } | ||
1077 | 1080 | | |||
1078 | /** | 1081 | /** | ||
1079 | * Get access to buffer of this document. | 1082 | * Get access to buffer of this document. | ||
▲ Show 20 Lines • Show All 369 Lines • Show Last 20 Lines |