Merge 1af5648965
into 86b3c9f556
This commit is contained in:
commit
f085f1514a
|
@ -8,6 +8,7 @@ list(APPEND HEADERS
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND PRIVATE_HEADERS
|
list(APPEND PRIVATE_HEADERS
|
||||||
|
QskFluent2TextAreaSkinlet.h
|
||||||
QskFluent2TextFieldSkinlet.h
|
QskFluent2TextFieldSkinlet.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -15,6 +16,7 @@ list(APPEND SOURCES
|
||||||
QskFluent2Theme.cpp
|
QskFluent2Theme.cpp
|
||||||
QskFluent2Skin.cpp
|
QskFluent2Skin.cpp
|
||||||
QskFluent2SkinFactory.cpp
|
QskFluent2SkinFactory.cpp
|
||||||
|
QskFluent2TextAreaSkinlet.cpp
|
||||||
QskFluent2TextFieldSkinlet.cpp
|
QskFluent2TextFieldSkinlet.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
*/
|
*/
|
||||||
#include "QskFluent2Skin.h"
|
#include "QskFluent2Skin.h"
|
||||||
#include "QskFluent2Theme.h"
|
#include "QskFluent2Theme.h"
|
||||||
|
#include "QskFluent2TextAreaSkinlet.h"
|
||||||
#include "QskFluent2TextFieldSkinlet.h"
|
#include "QskFluent2TextFieldSkinlet.h"
|
||||||
|
|
||||||
#include <QskTextAreaSkinlet.h>
|
#include <QskTextAreaSkinlet.h>
|
||||||
|
@ -2080,6 +2081,7 @@ void Editor::setupVirtualKeyboardColors(
|
||||||
QskFluent2Skin::QskFluent2Skin( QObject* parent )
|
QskFluent2Skin::QskFluent2Skin( QObject* parent )
|
||||||
: Inherited( parent )
|
: Inherited( parent )
|
||||||
{
|
{
|
||||||
|
declareSkinlet< QskTextArea, QskFluent2TextAreaSkinlet >();
|
||||||
declareSkinlet< QskTextField, QskFluent2TextFieldSkinlet >();
|
declareSkinlet< QskTextField, QskFluent2TextFieldSkinlet >();
|
||||||
|
|
||||||
setupFonts();
|
setupFonts();
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* QSkinny - Copyright (C) The authors
|
||||||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#include "QskFluent2TextAreaSkinlet.h"
|
||||||
|
#include "QskTextArea.h"
|
||||||
|
|
||||||
|
using Q = QskTextArea;
|
||||||
|
|
||||||
|
QskFluent2TextAreaSkinlet::QskFluent2TextAreaSkinlet( QskSkin* skin )
|
||||||
|
: Inherited( skin )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QskFluent2TextAreaSkinlet::~QskFluent2TextAreaSkinlet()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QRectF QskFluent2TextAreaSkinlet::subControlRect( const QskSkinnable* skinnable,
|
||||||
|
const QRectF& contentsRect, QskAspect::Subcontrol subControl ) const
|
||||||
|
{
|
||||||
|
return Inherited::subControlRect( skinnable, contentsRect, subControl );
|
||||||
|
}
|
||||||
|
|
||||||
|
QSizeF QskFluent2TextAreaSkinlet::sizeHint( const QskSkinnable* skinnable,
|
||||||
|
Qt::SizeHint which, const QSizeF& constraint ) const
|
||||||
|
{
|
||||||
|
return Inherited::sizeHint( skinnable, which, constraint );
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "moc_QskFluent2TextAreaSkinlet.cpp"
|
|
@ -0,0 +1,29 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* QSkinny - Copyright (C) The authors
|
||||||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#ifndef QSK_FLUENT2_TEXTAREA_SKINLET_H
|
||||||
|
#define QSK_FLUENT2_TEXTAREA_SKINLET_H
|
||||||
|
|
||||||
|
#include "QskFluent2Global.h"
|
||||||
|
#include "QskTextAreaSkinlet.h"
|
||||||
|
|
||||||
|
class QSK_FLUENT2_EXPORT QskFluent2TextAreaSkinlet : public QskTextAreaSkinlet
|
||||||
|
{
|
||||||
|
Q_GADGET
|
||||||
|
|
||||||
|
using Inherited = QskTextAreaSkinlet;
|
||||||
|
|
||||||
|
public:
|
||||||
|
Q_INVOKABLE QskFluent2TextAreaSkinlet( QskSkin* = nullptr );
|
||||||
|
~QskFluent2TextAreaSkinlet() override;
|
||||||
|
|
||||||
|
QRectF subControlRect( const QskSkinnable*,
|
||||||
|
const QRectF& rect, QskAspect::Subcontrol ) const override;
|
||||||
|
|
||||||
|
QSizeF sizeHint( const QskSkinnable*,
|
||||||
|
Qt::SizeHint, const QSizeF& ) const override;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
|
@ -10,6 +10,7 @@ list(APPEND HEADERS
|
||||||
list(APPEND PRIVATE_HEADERS
|
list(APPEND PRIVATE_HEADERS
|
||||||
QskMaterial3ProgressBarSkinlet.h
|
QskMaterial3ProgressBarSkinlet.h
|
||||||
QskMaterial3SliderSkinlet.h
|
QskMaterial3SliderSkinlet.h
|
||||||
|
QskMaterial3TextAreaSkinlet.h
|
||||||
QskMaterial3TextFieldSkinlet.h
|
QskMaterial3TextFieldSkinlet.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -18,6 +19,7 @@ list(APPEND SOURCES
|
||||||
QskMaterial3SkinFactory.cpp
|
QskMaterial3SkinFactory.cpp
|
||||||
QskMaterial3ProgressBarSkinlet.cpp
|
QskMaterial3ProgressBarSkinlet.cpp
|
||||||
QskMaterial3SliderSkinlet.cpp
|
QskMaterial3SliderSkinlet.cpp
|
||||||
|
QskMaterial3TextAreaSkinlet.cpp
|
||||||
QskMaterial3TextFieldSkinlet.cpp
|
QskMaterial3TextFieldSkinlet.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include "QskMaterial3Skin.h"
|
#include "QskMaterial3Skin.h"
|
||||||
#include "QskMaterial3ProgressBarSkinlet.h"
|
#include "QskMaterial3ProgressBarSkinlet.h"
|
||||||
#include "QskMaterial3SliderSkinlet.h"
|
#include "QskMaterial3SliderSkinlet.h"
|
||||||
|
#include "QskMaterial3TextAreaSkinlet.h"
|
||||||
#include "QskMaterial3TextFieldSkinlet.h"
|
#include "QskMaterial3TextFieldSkinlet.h"
|
||||||
#include <QskTextEditSkinlet.h>
|
#include <QskTextEditSkinlet.h>
|
||||||
|
|
||||||
|
@ -1641,6 +1642,7 @@ QskMaterial3Skin::QskMaterial3Skin( QObject* parent )
|
||||||
{
|
{
|
||||||
declareSkinlet< QskProgressBar, QskMaterial3ProgressBarSkinlet >();
|
declareSkinlet< QskProgressBar, QskMaterial3ProgressBarSkinlet >();
|
||||||
declareSkinlet< QskSlider, QskMaterial3SliderSkinlet >();
|
declareSkinlet< QskSlider, QskMaterial3SliderSkinlet >();
|
||||||
|
declareSkinlet< QskTextArea, QskMaterial3TextAreaSkinlet >();
|
||||||
declareSkinlet< QskTextField, QskMaterial3TextFieldSkinlet >();
|
declareSkinlet< QskTextField, QskMaterial3TextFieldSkinlet >();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* QSkinny - Copyright (C) The authors
|
||||||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#include "QskMaterial3TextAreaSkinlet.h"
|
||||||
|
#include "QskTextArea.h"
|
||||||
|
|
||||||
|
QskMaterial3TextAreaSkinlet::QskMaterial3TextAreaSkinlet( QskSkin* skin )
|
||||||
|
: Inherited( skin )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QskMaterial3TextAreaSkinlet::~QskMaterial3TextAreaSkinlet()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QRectF QskMaterial3TextAreaSkinlet::subControlRect( const QskSkinnable* skinnable,
|
||||||
|
const QRectF& contentsRect, QskAspect::Subcontrol subControl ) const
|
||||||
|
{
|
||||||
|
return Inherited::subControlRect( skinnable, contentsRect, subControl );
|
||||||
|
}
|
||||||
|
|
||||||
|
QSGNode* QskMaterial3TextAreaSkinlet::updateSubNode(
|
||||||
|
const QskSkinnable* skinnable, quint8 nodeRole, QSGNode* node ) const
|
||||||
|
{
|
||||||
|
return Inherited::updateSubNode( skinnable, nodeRole, node );
|
||||||
|
}
|
||||||
|
|
||||||
|
QSizeF QskMaterial3TextAreaSkinlet::sizeHint( const QskSkinnable* skinnable,
|
||||||
|
Qt::SizeHint which, const QSizeF& constraint ) const
|
||||||
|
{
|
||||||
|
return Inherited::sizeHint( skinnable, which, constraint );
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "moc_QskMaterial3TextAreaSkinlet.cpp"
|
|
@ -0,0 +1,33 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* QSkinny - Copyright (C) The authors
|
||||||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#ifndef QSK_MATERIAL3_TEXTAREA_SKINLET_H
|
||||||
|
#define QSK_MATERIAL3_TEXTAREA_SKINLET_H
|
||||||
|
|
||||||
|
#include "QskMaterial3Global.h"
|
||||||
|
#include "QskTextAreaSkinlet.h"
|
||||||
|
|
||||||
|
class QSK_MATERIAL3_EXPORT QskMaterial3TextAreaSkinlet : public QskTextAreaSkinlet
|
||||||
|
{
|
||||||
|
Q_GADGET
|
||||||
|
|
||||||
|
using Inherited = QskTextAreaSkinlet;
|
||||||
|
|
||||||
|
public:
|
||||||
|
Q_INVOKABLE QskMaterial3TextAreaSkinlet( QskSkin* = nullptr );
|
||||||
|
~QskMaterial3TextAreaSkinlet() override;
|
||||||
|
|
||||||
|
QRectF subControlRect( const QskSkinnable*,
|
||||||
|
const QRectF& rect, QskAspect::Subcontrol ) const override;
|
||||||
|
|
||||||
|
QSizeF sizeHint( const QskSkinnable*,
|
||||||
|
Qt::SizeHint, const QSizeF& ) const override;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
QSGNode* updateSubNode( const QskSkinnable*,
|
||||||
|
quint8 nodeRole, QSGNode* ) const override;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue