![Uwe Rathmann](/assets/img/avatar_default.png)
commit f429d3ab4e82ab06bfd40577aef8e2d5fdfd59fd Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de> Date: Wed Aug 4 14:40:36 2021 +0200 subcontrolProxy introduced
60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
/******************************************************************************
|
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
*****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include <QskGridBox.h>
|
|
#include <QskLinearBox.h>
|
|
|
|
class ShadowedRectangle;
|
|
|
|
class ShadowPositioner : public QskControl
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QSK_SUBCONTROLS( Panel )
|
|
|
|
ShadowPositioner( QQuickItem* parent );
|
|
|
|
void updateLayout() override;
|
|
void setGridBox( QskGridBox* gridBox );
|
|
|
|
private:
|
|
QskGridBox* m_gridBox;
|
|
QVector< ShadowedRectangle* > m_rectangles;
|
|
};
|
|
|
|
class MainContentGridBox : public QskGridBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QSK_SUBCONTROLS( Panel )
|
|
|
|
MainContentGridBox( QQuickItem* parent = nullptr )
|
|
: QskGridBox( parent )
|
|
{
|
|
setSubcontrolProxy( QskGridBox::Panel, Panel );
|
|
}
|
|
};
|
|
|
|
class MainContent : public QskLinearBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QSK_SUBCONTROLS( Panel )
|
|
|
|
MainContent( QQuickItem* parent );
|
|
|
|
protected:
|
|
void geometryChangeEvent( QskGeometryChangeEvent* ) override;
|
|
|
|
private:
|
|
QList< QskLinearBox* > m_columns;
|
|
ShadowPositioner* m_shadowPositioner;
|
|
};
|