diff --git a/gui/aboutdialog.cpp b/gui/aboutdialog.cpp
index 25db77990..2d1b800da 100644
--- a/gui/aboutdialog.cpp
+++ b/gui/aboutdialog.cpp
@@ -15,11 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+
#include
-#include
-#include
-#include
-#include
+#include
#include "aboutdialog.h"
AboutDialog::AboutDialog(const QString &version, QWidget *parent)
diff --git a/gui/aboutdialog.h b/gui/aboutdialog.h
index 8fac3c687..17d7021bc 100644
--- a/gui/aboutdialog.h
+++ b/gui/aboutdialog.h
@@ -21,9 +21,10 @@
#include
#include
-
#include "ui_about.h"
+class QWidget;
+
/// @addtogroup GUI
/// @{
diff --git a/gui/applicationdialog.cpp b/gui/applicationdialog.cpp
index 56df70886..320798417 100644
--- a/gui/applicationdialog.cpp
+++ b/gui/applicationdialog.cpp
@@ -16,14 +16,11 @@
* along with this program. If not, see .
*/
-#include "applicationdialog.h"
-#include
-#include
-#include
-#include
+#include
#include
#include
#include
+#include "applicationdialog.h"
ApplicationDialog::ApplicationDialog(const QString &name,
diff --git a/gui/applicationdialog.h b/gui/applicationdialog.h
index 3ec88846d..803b5b88e 100644
--- a/gui/applicationdialog.h
+++ b/gui/applicationdialog.h
@@ -21,8 +21,11 @@
#include
#include
+#include
#include "ui_application.h"
+class QWidget;
+
/// @addtogroup GUI
/// @{
diff --git a/gui/fileviewdialog.cpp b/gui/fileviewdialog.cpp
index f0d947ee2..5106ee9c2 100644
--- a/gui/fileviewdialog.cpp
+++ b/gui/fileviewdialog.cpp
@@ -16,14 +16,10 @@
* along with this program. If not, see .
*/
-#include
-#include
-#include
-#include
-#include
#include
#include
#include
+#include
#include "fileviewdialog.h"
FileViewDialog::FileViewDialog(const QString &file,
diff --git a/gui/fileviewdialog.h b/gui/fileviewdialog.h
index eaeeba738..876bf3e00 100644
--- a/gui/fileviewdialog.h
+++ b/gui/fileviewdialog.h
@@ -23,6 +23,9 @@
#include
#include "ui_file.h"
+class QWidget;
+class QTextEdit;
+
/// @addtogroup GUI
/// @{
diff --git a/gui/resultsview.cpp b/gui/resultsview.cpp
index bbea6d44f..8d28b44b1 100644
--- a/gui/resultsview.cpp
+++ b/gui/resultsview.cpp
@@ -17,11 +17,11 @@
*/
#include
-#include
#include
#include
#include "erroritem.h"
#include "resultsview.h"
+#include "resultstree.h"
#include "report.h"
#include "txtreport.h"
#include "xmlreport.h"
diff --git a/gui/resultsview.h b/gui/resultsview.h
index bc81d28d1..cb66a5749 100644
--- a/gui/resultsview.h
+++ b/gui/resultsview.h
@@ -24,7 +24,6 @@
#include
#include
#include "../lib/errorlogger.h"
-#include "resultstree.h"
#include "common.h"
#include "report.h"
#include "ui_resultsview.h"
diff --git a/gui/settingsdialog.cpp b/gui/settingsdialog.cpp
index 90f8fcb2f..1272ac687 100644
--- a/gui/settingsdialog.cpp
+++ b/gui/settingsdialog.cpp
@@ -17,13 +17,15 @@
*/
-#include "settingsdialog.h"
#include
#include
#include
#include
#include
+#include
+#include "settingsdialog.h"
#include "applicationdialog.h"
+#include "applicationlist.h"
#include "common.h"
SettingsDialog::SettingsDialog(QSettings *programSettings,
diff --git a/gui/settingsdialog.h b/gui/settingsdialog.h
index 86deebcce..e35239c0c 100644
--- a/gui/settingsdialog.h
+++ b/gui/settingsdialog.h
@@ -21,18 +21,13 @@
#define SETTINGSDIALOG_H
#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "applicationlist.h"
-
-#include
#include
#include "ui_settings.h"
+class QSettings;
+class QWidget;
+class ApplicationList;
+
/// @addtogroup GUI
/// @{