Commit bb4b88c8 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Made setMimeType virtual.

Subclasses can override this method to do things when the mime-type is set/changed.
parent 89280929
...@@ -151,7 +151,7 @@ public: ...@@ -151,7 +151,7 @@ public:
void setSuggestedFileName(const QString &suggestedFileName); void setSuggestedFileName(const QString &suggestedFileName);
QString mimeType() const; QString mimeType() const;
void setMimeType(const QString &mt); virtual void setMimeType(const QString &mt);
void appendStandardContextMenuActions(QMenu *menu); void appendStandardContextMenuActions(QMenu *menu);
...@@ -341,6 +341,7 @@ public: ...@@ -341,6 +341,7 @@ public:
OtherSelection, OtherSelection,
SnippetPlaceholderSelection, SnippetPlaceholderSelection,
TypeSelection, TypeSelection,
ObjCSelection,
NExtraSelectionKinds NExtraSelectionKinds
}; };
void setExtraSelections(ExtraSelectionKind kind, const QList<QTextEdit::ExtraSelection> &selections); void setExtraSelections(ExtraSelectionKind kind, const QList<QTextEdit::ExtraSelection> &selections);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment