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:
Kimmo Varis 2010-07-17 22:34:07 +03:00
parent bc8242dcce
commit 3261f848c3
10 changed files with 21 additions and 27 deletions

View File

@ -15,11 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <QDialog>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QWidget>
#include "aboutdialog.h"
AboutDialog::AboutDialog(const QString &version, QWidget *parent)

View File

@ -21,9 +21,10 @@
#include <QDialog>
#include <QString>
#include "ui_about.h"
class QWidget;
/// @addtogroup GUI
/// @{

View File

@ -16,14 +16,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "applicationdialog.h"
#include <QVBoxLayout>
#include <QPushButton>
#include <QHBoxLayout>
#include <QLabel>
#include <QWidget>
#include <QFileDialog>
#include <QDebug>
#include <QMessageBox>
#include "applicationdialog.h"
ApplicationDialog::ApplicationDialog(const QString &name,

View File

@ -21,8 +21,11 @@
#include <QDialog>
#include <QLineEdit>
#include <QString>
#include "ui_application.h"
class QWidget;
/// @addtogroup GUI
/// @{

View File

@ -16,14 +16,10 @@
* 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 <QByteArray>
#include <QMessageBox>
#include <QTextEdit>
#include "fileviewdialog.h"
FileViewDialog::FileViewDialog(const QString &file,

View File

@ -23,6 +23,9 @@
#include <QString>
#include "ui_file.h"
class QWidget;
class QTextEdit;
/// @addtogroup GUI
/// @{

View File

@ -17,11 +17,11 @@
*/
#include <QDebug>
#include <QVBoxLayout>
#include <QFile>
#include <QMessageBox>
#include "erroritem.h"
#include "resultsview.h"
#include "resultstree.h"
#include "report.h"
#include "txtreport.h"
#include "xmlreport.h"

View File

@ -24,7 +24,6 @@
#include <QWidget>
#include <QProgressBar>
#include "../lib/errorlogger.h"
#include "resultstree.h"
#include "common.h"
#include "report.h"
#include "ui_resultsview.h"

View File

@ -17,13 +17,15 @@
*/
#include "settingsdialog.h"
#include <QDialog>
#include <QWidget>
#include <QLabel>
#include <QDebug>
#include <QTabWidget>
#include <QSettings>
#include "settingsdialog.h"
#include "applicationdialog.h"
#include "applicationlist.h"
#include "common.h"
SettingsDialog::SettingsDialog(QSettings *programSettings,

View File

@ -21,18 +21,13 @@
#define SETTINGSDIALOG_H
#include <QDialog>
#include <QLineEdit>
#include <QComboBox>
#include <QSettings>
#include <QCheckBox>
#include <QVBoxLayout>
#include <QPushButton>
#include "applicationlist.h"
#include <QListWidget>
#include <QKeyEvent>
#include "ui_settings.h"
class QSettings;
class QWidget;
class ApplicationList;
/// @addtogroup GUI
/// @{