[libcalamaresui] Give ViewManager data about side-panels

main
Adriaan de Groot 5 years ago
parent 1648f311fe
commit d7ed450dbf

@ -67,6 +67,7 @@ ViewManager::ViewManager( QObject* parent )
: QAbstractListModel( parent ) : QAbstractListModel( parent )
, m_currentStep( -1 ) , m_currentStep( -1 )
, m_widget( new QWidget() ) , m_widget( new QWidget() )
, m_panelSides( Qt::Horizontal | Qt::Vertical )
{ {
Q_ASSERT( !s_instance ); Q_ASSERT( !s_instance );

@ -54,6 +54,9 @@ class UIDLLEXPORT ViewManager : public QAbstractListModel
Q_PROPERTY( bool quitVisible READ quitVisible NOTIFY quitVisibleChanged FINAL ) Q_PROPERTY( bool quitVisible READ quitVisible NOTIFY quitVisibleChanged FINAL )
///@brief Sides on which the ViewManager has side-panels
Q_PROPERTY( Qt::Orientations panelSides MEMBER m_panelSides )
public: public:
/** /**
* @brief instance access to the ViewManager singleton. * @brief instance access to the ViewManager singleton.
@ -245,6 +248,8 @@ private:
QString m_quitTooltip; QString m_quitTooltip;
bool m_quitVisible = true; bool m_quitVisible = true;
Qt::Orientations m_panelSides;
public: public:
/** @section Model /** @section Model
* *

Loading…
Cancel
Save