diff --git a/src/plugins/texteditor/basetexteditor.h b/src/plugins/texteditor/basetexteditor.h
index 2aa8f39f31e3cf5ebfa67cc885ee68f73c462516..afa439ed9fde7c8eae08a9b10cc187e015f92fc4 100644
--- a/src/plugins/texteditor/basetexteditor.h
+++ b/src/plugins/texteditor/basetexteditor.h
@@ -47,7 +47,7 @@ namespace Utils {
 }
 
 namespace TextEditor {
-struct TabSettings;
+class TabSettings;
 
 namespace Internal {
     class BaseTextEditorPrivate;
@@ -85,10 +85,10 @@ class ITextMarkable;
 class BaseTextDocument;
 class BaseTextEditorEditable;
 class FontSettings;
-struct BehaviorSettings;
-struct CompletionSettings;
-struct DisplaySettings;
-struct StorageSettings;
+class BehaviorSettings;
+class CompletionSettings;
+class DisplaySettings;
+class StorageSettings;
 
 class TEXTEDITOR_EXPORT BaseTextEditorAnimator : public QObject
 {
diff --git a/src/plugins/texteditor/behaviorsettings.h b/src/plugins/texteditor/behaviorsettings.h
index dcb9269313672868f5d29855c0c4d40cf2afc4ca..156525e3f43a8a99e9e3e089f8d9cfe0727a29ad 100644
--- a/src/plugins/texteditor/behaviorsettings.h
+++ b/src/plugins/texteditor/behaviorsettings.h
@@ -42,8 +42,9 @@ namespace TextEditor {
  * Settings that describe how the text editor behaves. This does not include
  * the TabSettings and StorageSettings.
  */
-struct TEXTEDITOR_EXPORT BehaviorSettings
+class TEXTEDITOR_EXPORT BehaviorSettings
 {
+public:
     BehaviorSettings();
 
     void toSettings(const QString &category, QSettings *s) const;
diff --git a/src/plugins/texteditor/behaviorsettingspage.h b/src/plugins/texteditor/behaviorsettingspage.h
index 8d2040bc684930f977eaaaaace1f3bc043967128..b973519ae6008971240eda4b54e9514a7d60e86d 100644
--- a/src/plugins/texteditor/behaviorsettingspage.h
+++ b/src/plugins/texteditor/behaviorsettingspage.h
@@ -36,12 +36,13 @@
 
 namespace TextEditor {
 
-struct TabSettings;
-struct StorageSettings;
-struct BehaviorSettings;
+class TabSettings;
+class StorageSettings;
+class BehaviorSettings;
 
-struct BehaviorSettingsPageParameters
+class BehaviorSettingsPageParameters
 {
+public:
     QString id;
     QString displayName;
     QString settingsPrefix;
diff --git a/src/plugins/texteditor/completionsettings.h b/src/plugins/texteditor/completionsettings.h
index dcec5cc4f1f4ee5069a284d1a19345886e8babdb..80796bb3897f3caf588b7ac6fd340852e9959c35 100644
--- a/src/plugins/texteditor/completionsettings.h
+++ b/src/plugins/texteditor/completionsettings.h
@@ -53,8 +53,9 @@ enum CompletionTrigger {
 /**
  * Settings that describe how the code completion behaves.
  */
-struct TEXTEDITOR_EXPORT CompletionSettings
+class TEXTEDITOR_EXPORT CompletionSettings
 {
+public:
     CompletionSettings();
 
     void toSettings(const QString &category, QSettings *s) const;
diff --git a/src/plugins/texteditor/completionsupport.h b/src/plugins/texteditor/completionsupport.h
index 6cf43cd6a9121fc577106a363c77f1161cc0594e..ec83e49aed432f42faf92791d5945019bd5ab86b 100644
--- a/src/plugins/texteditor/completionsupport.h
+++ b/src/plugins/texteditor/completionsupport.h
@@ -36,7 +36,7 @@
 
 namespace TextEditor {
 
-struct CompletionItem;
+class CompletionItem;
 class ICompletionCollector;
 class ITextEditable;
 
diff --git a/src/plugins/texteditor/completionwidget.h b/src/plugins/texteditor/completionwidget.h
index abaf50f7f9467564e63d0aac5ed8b3d4ce074ece..a550b3c1e23f95a99dc6a7776b628d0f32a2c584 100644
--- a/src/plugins/texteditor/completionwidget.h
+++ b/src/plugins/texteditor/completionwidget.h
@@ -36,7 +36,7 @@
 
 namespace TextEditor {
 
-struct CompletionItem;
+class CompletionItem;
 class ITextEditable;
 
 namespace Internal {
diff --git a/src/plugins/texteditor/displaysettings.h b/src/plugins/texteditor/displaysettings.h
index 424a276e46a0ff55e0870bc3466b01fc1f7ee2a2..0be9d9af8497a4871991d8e39b7024648c3aa160 100644
--- a/src/plugins/texteditor/displaysettings.h
+++ b/src/plugins/texteditor/displaysettings.h
@@ -38,8 +38,9 @@ QT_END_NAMESPACE
 
 namespace TextEditor {
 
-struct TEXTEDITOR_EXPORT DisplaySettings
+class TEXTEDITOR_EXPORT DisplaySettings
 {
+public:
     DisplaySettings();
 
     void toSettings(const QString &category, QSettings *s) const;
diff --git a/src/plugins/texteditor/displaysettingspage.h b/src/plugins/texteditor/displaysettingspage.h
index 2ba246a042acbfd49c7a87268a78573e1ab3ce70..dc43ee5a683d1f0e30a46d27c65ea140e3bac5eb 100644
--- a/src/plugins/texteditor/displaysettingspage.h
+++ b/src/plugins/texteditor/displaysettingspage.h
@@ -36,10 +36,11 @@
 
 namespace TextEditor {
 
-struct DisplaySettings;
+class DisplaySettings;
 
-struct DisplaySettingsPageParameters
+class DisplaySettingsPageParameters
 {
+public:
     QString id;
     QString displayName;
     QString settingsPrefix;
diff --git a/src/plugins/texteditor/generichighlighter/highlighter.h b/src/plugins/texteditor/generichighlighter/highlighter.h
index a7135982f213c77f54d9c5db95800ed784444978..f633eb93d3d4f9e13428ce67db38004146253717 100644
--- a/src/plugins/texteditor/generichighlighter/highlighter.h
+++ b/src/plugins/texteditor/generichighlighter/highlighter.h
@@ -44,7 +44,7 @@
 
 namespace TextEditor {
 
-struct TabSettings;
+class TabSettings;
 
 namespace Internal {
 
diff --git a/src/plugins/texteditor/icompletioncollector.h b/src/plugins/texteditor/icompletioncollector.h
index 7db7e9a94590370ecd2d957c41091c34f958baf7..5ec3574326efe6ba31863d3f5d1fec66500680a8 100644
--- a/src/plugins/texteditor/icompletioncollector.h
+++ b/src/plugins/texteditor/icompletioncollector.h
@@ -44,10 +44,11 @@ class ICompletionCollectorPrivate;
 
 class ICompletionCollector;
 class ITextEditable;
-struct CompletionSettings;
+class CompletionSettings;
 
-struct CompletionItem
+class CompletionItem
 {
+public:
     CompletionItem(ICompletionCollector *collector = 0)
         : relevance(0),
           duplicateCount(0),
diff --git a/src/plugins/texteditor/indenter.h b/src/plugins/texteditor/indenter.h
index c6aff2ac7feee04943cce634be4fcf6990cd8375..51b2131b28792a01b90647e8e7daa9cb933d7d42 100644
--- a/src/plugins/texteditor/indenter.h
+++ b/src/plugins/texteditor/indenter.h
@@ -41,7 +41,7 @@ QT_END_NAMESPACE
 
 namespace TextEditor {
 
-struct TabSettings;
+class TabSettings;
 
 class TEXTEDITOR_EXPORT Indenter
 {
diff --git a/src/plugins/texteditor/storagesettings.h b/src/plugins/texteditor/storagesettings.h
index e3627eca58bc2652b01eedffcf411a8c8faac941..531e928a11159575725326be68f229a0e59ff74a 100644
--- a/src/plugins/texteditor/storagesettings.h
+++ b/src/plugins/texteditor/storagesettings.h
@@ -38,8 +38,9 @@ QT_END_NAMESPACE
 
 namespace TextEditor {
 
-struct TEXTEDITOR_EXPORT StorageSettings
+class TEXTEDITOR_EXPORT StorageSettings
 {
+public:
     StorageSettings();
 
     void toSettings(const QString &category, QSettings *s) const;
diff --git a/src/plugins/texteditor/tabsettings.h b/src/plugins/texteditor/tabsettings.h
index edccbbe1986bc1d11502ff2ed7bc68e2b5673425..75ec461f0c16db8f11c50b6891eba22480d70e51 100644
--- a/src/plugins/texteditor/tabsettings.h
+++ b/src/plugins/texteditor/tabsettings.h
@@ -42,8 +42,9 @@ namespace TextEditor {
 
 // Tab settings: Data type the GeneralSettingsPage acts on
 // with some convenience functions for formatting.
-struct TEXTEDITOR_EXPORT TabSettings
+class TEXTEDITOR_EXPORT TabSettings
 {
+public:
     // This enum must match the indexes of tabKeyBehavior widget
     enum TabKeyBehavior {
         TabNeverIndents = 0,
diff --git a/src/plugins/texteditor/texteditorsettings.h b/src/plugins/texteditor/texteditorsettings.h
index 8e44d597181bc23f319f121ee3f662aae1057aa4..737b68dd56dccd3790f804c1edcc189245447dc3 100644
--- a/src/plugins/texteditor/texteditorsettings.h
+++ b/src/plugins/texteditor/texteditorsettings.h
@@ -38,11 +38,11 @@ namespace TextEditor {
 
 class BaseTextEditor;
 class FontSettings;
-struct TabSettings;
-struct StorageSettings;
-struct BehaviorSettings;
-struct DisplaySettings;
-struct CompletionSettings;
+class TabSettings;
+class StorageSettings;
+class BehaviorSettings;
+class DisplaySettings;
+class CompletionSettings;
 class HighlighterSettings;
 
 namespace Internal {