[PATCH 1/1] Fix build: add missing #includes

Dirk Hohndel dirk at hohndel.org
Sat Jan 17 09:33:37 PST 2015


Interesting.
I obviously was aggressively trying to thin out our include file forest.
What is strange is that I did test build on a hand full of OSs and didn't 
run into those two problems.

Out of curiosity, which OS, which version of Qt?  Any special config options?

/D


On January 18, 2015 3:01:16 AM Thiago Macieira <thiago at macieira.org> wrote:

> qt-ui/profile/profilewidget2.cpp:1351:10: error: invalid use of incomplete 
> type ‘class QDebug’
> qt-ui/printlayout.cpp:141:27: error: variable ‘QPointer<ProfileWidget2> 
> profile’ has initializer but incomplete type
>
> Signed-off-by: Thiago Macieira <thiago at macieira.org>
> ---
>  qt-ui/printlayout.cpp            | 1 +
>  qt-ui/profile/profilewidget2.cpp | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
> index a347e1f..6b88f0d 100644
> --- a/qt-ui/printlayout.cpp
> +++ b/qt-ui/printlayout.cpp
> @@ -2,6 +2,7 @@
>  #include <QDesktopWidget>
>  #include <QPicture>
>  #include <QMessageBox>
> +#include <QPointer>
>
>  #include "mainwindow.h"
>  #include "printdialog.h"
> diff --git a/qt-ui/profile/profilewidget2.cpp 
> b/qt-ui/profile/profilewidget2.cpp
> index 516b14c..c651033 100644
> --- a/qt-ui/profile/profilewidget2.cpp
> +++ b/qt-ui/profile/profilewidget2.cpp
> @@ -15,6 +15,7 @@
>  #include <QtCore/qmath.h>
>  #include <QMessageBox>
>  #include <QInputDialog>
> +#include <QDebug>
>
>  #ifndef QT_NO_DEBUG
>  #include <QTableView>
> --
> 2.1.2
>
> _______________________________________________
> subsurface mailing list
> subsurface at subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface




More information about the subsurface mailing list