2022-07-12 16:51:39 +02:00
|
|
|
/******************************************************************************
|
2023-04-06 09:23:37 +02:00
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2022-07-12 16:51:39 +02:00
|
|
|
*****************************************************************************/
|
|
|
|
|
2023-03-10 15:45:53 +01:00
|
|
|
#ifndef QSK_MAIN_VIEW_H
|
|
|
|
#define QSK_MAIN_VIEW_H
|
2022-07-12 16:51:39 +02:00
|
|
|
|
|
|
|
#include "QskLinearBox.h"
|
|
|
|
|
2023-03-10 15:45:53 +01:00
|
|
|
class QSK_EXPORT QskMainView : public QskLinearBox
|
2022-07-12 16:51:39 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
using Inherited = QskLinearBox;
|
|
|
|
|
|
|
|
public:
|
2023-03-10 15:45:53 +01:00
|
|
|
QskMainView( QQuickItem* parent = nullptr );
|
|
|
|
~QskMainView() override;
|
2022-07-12 16:51:39 +02:00
|
|
|
|
|
|
|
QskControl* header() const;
|
|
|
|
void setHeader( QskControl* );
|
|
|
|
|
|
|
|
QskControl* body() const;
|
|
|
|
void setBody( QskControl* );
|
|
|
|
|
|
|
|
QskControl* footer() const;
|
|
|
|
void setFooter( QskControl* );
|
|
|
|
|
2023-05-15 15:04:47 +02:00
|
|
|
protected:
|
|
|
|
void focusInEvent( QFocusEvent* );
|
|
|
|
|
2022-07-12 16:51:39 +02:00
|
|
|
private:
|
|
|
|
class PrivateData;
|
|
|
|
std::unique_ptr< PrivateData > m_data;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|