qml: decouple ClassicIndicator from QRubberBand

the rubber band is now returned from the factory, meaning it can
be a QQuickItem when QtQuick is being used

Still need to remove the QtWidget'isms from IndicatorWindow
though
This commit is contained in:
Sergio Martins
2020-08-09 18:39:56 +01:00
parent dc3aa354ec
commit 64791eec82
4 changed files with 20 additions and 7 deletions

View File

@@ -14,10 +14,6 @@
#include "DropIndicatorOverlayInterface_p.h"
QT_BEGIN_NAMESPACE
class QRubberBand;
QT_END_NAMESPACE
namespace KDDockWidgets {
class IndicatorWindow;
@@ -45,7 +41,7 @@ private:
QRect geometryForRubberband(QRect localRect) const;
bool rubberBandIsTopLevel() const;
QRubberBand *const m_rubberBand;
QWidgetOrQuick *const m_rubberBand;
IndicatorWindow *const m_indicatorWindow;
};