Remove unneeded private moc include

Doesn't play nice with unity builds
This commit is contained in:
Sergio Martins
2020-12-16 15:48:32 +00:00
parent 96439339c7
commit e18fb7ffd8
2 changed files with 14 additions and 16 deletions

View File

@@ -20,20 +20,6 @@
using namespace Layouting; using namespace Layouting;
namespace Layouting {
class RubberBand : public QRubberBand
, public Layouting::Widget_qwidget
{
Q_OBJECT
public:
RubberBand(Layouting::Widget *parent)
: QRubberBand(QRubberBand::Line, parent ? parent->asQWidget() : nullptr)
, Layouting::Widget_qwidget(this) {
}
};
}
SeparatorWidget::SeparatorWidget(Layouting::Widget *parent) SeparatorWidget::SeparatorWidget(Layouting::Widget *parent)
: QWidget(parent->asQWidget()) : QWidget(parent->asQWidget())
, Separator(parent) , Separator(parent)
@@ -108,4 +94,8 @@ Widget *SeparatorWidget::asWidget()
return this; return this;
} }
#include <Separator_qwidget.moc> Layouting::RubberBand::RubberBand(Widget *parent)
: QRubberBand(QRubberBand::Line, parent ? parent->asQWidget() : nullptr)
, Layouting::Widget_qwidget(this)
{
}

View File

@@ -17,7 +17,7 @@
#include "Widget_qwidget.h" #include "Widget_qwidget.h"
#include "kddockwidgets/Qt5Qt6Compat_p.h" #include "kddockwidgets/Qt5Qt6Compat_p.h"
#include <QWidget> #include <QRubberBand>
namespace Layouting { namespace Layouting {
@@ -41,6 +41,14 @@ protected:
Widget *asWidget() override; Widget *asWidget() override;
}; };
class RubberBand : public QRubberBand
, public Layouting::Widget_qwidget
{
Q_OBJECT
public:
explicit RubberBand(Layouting::Widget *parent);
};
} }
#endif #endif