input panel: derive from QskBox
This commit is contained in:
parent
c1945a00ec
commit
7af9cc6cdf
@ -259,7 +259,7 @@ class QskInputPanel::PrivateData
|
||||
};
|
||||
|
||||
QskInputPanel::QskInputPanel( QQuickItem* parent ):
|
||||
QskControl( parent ),
|
||||
Inherited( parent ),
|
||||
m_data( new PrivateData )
|
||||
{
|
||||
qRegisterMetaType< Qt::Key >();
|
||||
@ -324,7 +324,7 @@ QskInputPanel::~QskInputPanel()
|
||||
|
||||
QskAspect::Subcontrol QskInputPanel::effectiveSubcontrol( QskAspect::Subcontrol subControl ) const
|
||||
{
|
||||
if( subControl == QskAspect::Control )
|
||||
if( subControl == QskBox::Panel )
|
||||
{
|
||||
return QskInputPanel::Panel;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
#ifndef QSK_INPUT_PANEL_H
|
||||
#define QSK_INPUT_PANEL_H
|
||||
|
||||
#include "QskControl.h"
|
||||
#include "QskBox.h"
|
||||
#include "QskPushButton.h"
|
||||
|
||||
#include <QRectF>
|
||||
@ -38,7 +38,7 @@ class QskKeyButton : public QskPushButton // ### rename to QskInputButton or so?
|
||||
QskInputPanel* m_inputPanel;
|
||||
};
|
||||
|
||||
class QSK_EXPORT QskInputPanel : public QskControl
|
||||
class QSK_EXPORT QskInputPanel : public QskBox
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@ -47,7 +47,7 @@ class QSK_EXPORT QskInputPanel : public QskControl
|
||||
Q_PROPERTY( QString displayLanguageName READ displayLanguageName
|
||||
NOTIFY displayLanguageNameChanged )
|
||||
|
||||
using Inherited = QskControl;
|
||||
using Inherited = QskBox;
|
||||
|
||||
public:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user