GUI: Fix includes for dialogs/views.
At first we created the GUI in the code and so needed all the layouts etc include to the code. Now when we are using UI files we don't need all those included. So clean them up. Also use forward declarations instead of includes in header files when possible.
This commit is contained in:
parent
bc8242dcce
commit
3261f848c3
|
@ -15,11 +15,9 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QVBoxLayout>
|
#include <QWidget>
|
||||||
#include <QHBoxLayout>
|
|
||||||
#include <QLabel>
|
|
||||||
#include <QPushButton>
|
|
||||||
#include "aboutdialog.h"
|
#include "aboutdialog.h"
|
||||||
|
|
||||||
AboutDialog::AboutDialog(const QString &version, QWidget *parent)
|
AboutDialog::AboutDialog(const QString &version, QWidget *parent)
|
||||||
|
|
|
@ -21,9 +21,10 @@
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
#include "ui_about.h"
|
#include "ui_about.h"
|
||||||
|
|
||||||
|
class QWidget;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
@ -16,14 +16,11 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "applicationdialog.h"
|
#include <QWidget>
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QPushButton>
|
|
||||||
#include <QHBoxLayout>
|
|
||||||
#include <QLabel>
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include "applicationdialog.h"
|
||||||
|
|
||||||
|
|
||||||
ApplicationDialog::ApplicationDialog(const QString &name,
|
ApplicationDialog::ApplicationDialog(const QString &name,
|
||||||
|
|
|
@ -21,8 +21,11 @@
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
|
#include <QString>
|
||||||
#include "ui_application.h"
|
#include "ui_application.h"
|
||||||
|
|
||||||
|
class QWidget;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
@ -16,14 +16,10 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QHBoxLayout>
|
|
||||||
#include <QTextEdit>
|
|
||||||
#include <QPushButton>
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include <QTextEdit>
|
||||||
#include "fileviewdialog.h"
|
#include "fileviewdialog.h"
|
||||||
|
|
||||||
FileViewDialog::FileViewDialog(const QString &file,
|
FileViewDialog::FileViewDialog(const QString &file,
|
||||||
|
|
|
@ -23,6 +23,9 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include "ui_file.h"
|
#include "ui_file.h"
|
||||||
|
|
||||||
|
class QWidget;
|
||||||
|
class QTextEdit;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
#include "resultsview.h"
|
#include "resultsview.h"
|
||||||
|
#include "resultstree.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "txtreport.h"
|
#include "txtreport.h"
|
||||||
#include "xmlreport.h"
|
#include "xmlreport.h"
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QProgressBar>
|
#include <QProgressBar>
|
||||||
#include "../lib/errorlogger.h"
|
#include "../lib/errorlogger.h"
|
||||||
#include "resultstree.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "ui_resultsview.h"
|
#include "ui_resultsview.h"
|
||||||
|
|
|
@ -17,13 +17,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "settingsdialog.h"
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QTabWidget>
|
#include <QTabWidget>
|
||||||
|
#include <QSettings>
|
||||||
|
#include "settingsdialog.h"
|
||||||
#include "applicationdialog.h"
|
#include "applicationdialog.h"
|
||||||
|
#include "applicationlist.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
SettingsDialog::SettingsDialog(QSettings *programSettings,
|
SettingsDialog::SettingsDialog(QSettings *programSettings,
|
||||||
|
|
|
@ -21,18 +21,13 @@
|
||||||
#define SETTINGSDIALOG_H
|
#define SETTINGSDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QLineEdit>
|
|
||||||
#include <QComboBox>
|
|
||||||
#include <QSettings>
|
|
||||||
#include <QCheckBox>
|
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QPushButton>
|
|
||||||
#include "applicationlist.h"
|
|
||||||
|
|
||||||
#include <QListWidget>
|
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include "ui_settings.h"
|
#include "ui_settings.h"
|
||||||
|
|
||||||
|
class QSettings;
|
||||||
|
class QWidget;
|
||||||
|
class ApplicationList;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue