forked from qt-creator/qt-creator
basetextdocument.h: code cosmetics
This commit is contained in:
@@ -44,9 +44,6 @@ class QTextDocument;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace TextEditor {
|
||||
namespace Internal {
|
||||
class DocumentMarker;
|
||||
}
|
||||
|
||||
class ITextMarkable;
|
||||
class StorageSettings;
|
||||
@@ -73,7 +70,7 @@ public:
|
||||
|
||||
ITextMarkable *documentMarker() const;
|
||||
|
||||
//IFile
|
||||
// IFile implementation.
|
||||
virtual bool save(const QString &fileName = QString());
|
||||
virtual QString fileName() const;
|
||||
virtual bool isReadOnly() const;
|
||||
@@ -99,22 +96,20 @@ public:
|
||||
void setSyntaxHighlighter(SyntaxHighlighter *highlighter);
|
||||
SyntaxHighlighter *syntaxHighlighter() const;
|
||||
|
||||
|
||||
bool hasDecodingError() const;
|
||||
QTextCodec *codec() const;
|
||||
void setCodec(QTextCodec *c);
|
||||
QByteArray decodingErrorSample() const;
|
||||
|
||||
void reload(QTextCodec *codec);
|
||||
|
||||
void cleanWhitespace(const QTextCursor &cursor);
|
||||
|
||||
signals:
|
||||
void titleChanged(QString title);
|
||||
|
||||
private:
|
||||
void cleanWhitespace(QTextCursor& cursor, bool cleanIndentation, bool inEntireDocument);
|
||||
void ensureFinalNewLine(QTextCursor& cursor);
|
||||
void cleanWhitespace(QTextCursor &cursor, bool cleanIndentation, bool inEntireDocument);
|
||||
void ensureFinalNewLine(QTextCursor &cursor);
|
||||
void documentClosing();
|
||||
|
||||
BaseTextDocumentPrivate *d;
|
||||
|
||||
Reference in New Issue
Block a user