qskinny/src/controls/QskMainView.h
Uwe Rathmann 1f899ebdbf making QskMainView a focus scope, so that the focus does not get lost,
when popups ( f.e menus ) have appeared
2023-05-15 15:04:47 +02:00

39 lines
867 B
C++

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* SPDX-License-Identifier: BSD-3-Clause
*****************************************************************************/
#ifndef QSK_MAIN_VIEW_H
#define QSK_MAIN_VIEW_H
#include "QskLinearBox.h"
class QSK_EXPORT QskMainView : public QskLinearBox
{
Q_OBJECT
using Inherited = QskLinearBox;
public:
QskMainView( QQuickItem* parent = nullptr );
~QskMainView() override;
QskControl* header() const;
void setHeader( QskControl* );
QskControl* body() const;
void setBody( QskControl* );
QskControl* footer() const;
void setFooter( QskControl* );
protected:
void focusInEvent( QFocusEvent* );
private:
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif