2017-07-21 18:21:34 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
#include "LineEdit.h"
|
|
|
|
#include "LineEditSkinlet.h"
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
#include <QskAspect.h>
|
|
|
|
|
|
|
|
// VS2012+ disable keyword macroizing unless _ALLOW_KEYWORD_MACROS is set
|
|
|
|
#if ( _MSC_VER >= 1700 ) && !defined( _ALLOW_KEYWORD_MACROS )
|
|
|
|
#define _ALLOW_KEYWORD_MACROS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QSK_QT_PRIVATE_BEGIN
|
|
|
|
#define protected public
|
|
|
|
#define private public
|
|
|
|
#include <private/qquicktextinput_p.h>
|
|
|
|
#include <private/qquicktextinput_p_p.h>
|
|
|
|
#undef protected
|
|
|
|
#undef private
|
|
|
|
QSK_QT_PRIVATE_END
|
|
|
|
|
|
|
|
#define Q_P(ClassName) \
|
|
|
|
auto p = reinterpret_cast< ClassName* >( this )
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QSK_SUBCONTROL( LineEdit, Panel )
|
|
|
|
QSK_SUBCONTROL( LineEdit, Text )
|
2017-07-21 18:21:34 +02:00
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
class LineEditPrivate : public QQuickTextInputPrivate
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
2017-07-24 07:48:36 +02:00
|
|
|
Q_DECLARE_PUBLIC(LineEdit)
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
using Inherited = QQuickTextInputPrivate;
|
|
|
|
public:
|
|
|
|
QLocale locale;
|
|
|
|
|
|
|
|
void mirrorChange() override
|
|
|
|
{
|
|
|
|
Q_Q( QskControl );
|
|
|
|
QEvent event( QEvent::LayoutDirectionChange );
|
|
|
|
QCoreApplication::sendEvent( q, &event );
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
LineEdit::LineEdit( QQuickItem* parent ):
|
|
|
|
QskControl( *( new LineEditPrivate ), parent )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
2017-07-24 07:48:36 +02:00
|
|
|
Q_D( LineEdit );
|
2017-07-21 18:21:34 +02:00
|
|
|
d->init();
|
|
|
|
|
|
|
|
setActiveFocusOnTab( true );
|
2017-07-24 07:48:36 +02:00
|
|
|
#if 1
|
2017-07-28 14:47:11 +02:00
|
|
|
auto skinlet = new LineEditSkinlet();
|
|
|
|
skinlet->setOwnedBySkinnable( true );
|
|
|
|
|
|
|
|
setSkinlet( skinlet );
|
2017-07-24 07:48:36 +02:00
|
|
|
#endif
|
2017-07-21 18:21:34 +02:00
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
LineEdit::~LineEdit()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::updateLayout()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Inherited::updateLayout();
|
|
|
|
|
2017-08-23 14:53:29 +02:00
|
|
|
const QMarginsF padding = marginsHint( Panel | QskAspect::Padding );
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setLeftPadding( padding.left() );
|
|
|
|
p->QQuickTextInput::setTopPadding( padding.top() );
|
|
|
|
p->QQuickTextInput::setRightPadding( padding.right() );
|
|
|
|
p->QQuickTextInput::setBottomPadding( padding.bottom() );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Begin proxy methods
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::componentComplete()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::componentComplete();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::positionAt( QQmlV4Function* args ) const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
p->QQuickTextInput::positionAt( args );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QRectF LineEdit::positionToRectangle( int pos ) const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::positionToRectangle( pos );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::moveCursorSelection( int pos )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::moveCursorSelection( pos );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::moveCursorSelection( int pos, LineEdit::SelectionMode mode )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::moveCursorSelection(
|
|
|
|
pos, static_cast< QQuickTextInput::SelectionMode >( mode ) );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
LineEdit::RenderType LineEdit::renderType() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
2017-07-24 07:48:36 +02:00
|
|
|
return static_cast< LineEdit::RenderType >( p->QQuickTextInput::renderType() );
|
2017-07-21 18:21:34 +02:00
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setRenderType( RenderType renderType )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setRenderType( static_cast< QQuickTextInput::RenderType >( renderType ) );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QString LineEdit::text() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::text();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setText( const QString& text )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setText( text );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
int LineEdit::length() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::length();
|
|
|
|
}
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QFont LineEdit::font() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::font();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setFont( const QFont& font )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setFont( font );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QColor LineEdit::color() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::color();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setColor( const QColor& color )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setColor( color );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QColor LineEdit::selectionColor() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::selectionColor();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setSelectionColor( const QColor& color )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setSelectionColor( color );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QColor LineEdit::selectedTextColor() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::selectedTextColor();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setSelectedTextColor( const QColor& color )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setSelectedTextColor( color );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
LineEdit::HAlignment LineEdit::hAlign() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return static_cast< HAlignment >( p->QQuickTextInput::hAlign() );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setHAlign( HAlignment alignment )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setHAlign( static_cast< QQuickTextInput::HAlignment >( alignment ) );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::resetHAlign()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::resetHAlign();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
LineEdit::HAlignment LineEdit::effectiveHAlign() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return static_cast< HAlignment >( p->QQuickTextInput::effectiveHAlign() );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
LineEdit::VAlignment LineEdit::vAlign() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return static_cast< VAlignment >( p->QQuickTextInput::vAlign() );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setVAlign( LineEdit::VAlignment alignment )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setVAlign( static_cast< QQuickTextInput::VAlignment >( alignment ) );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
LineEdit::WrapMode LineEdit::wrapMode() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return static_cast< WrapMode >( p->QQuickTextInput::wrapMode() );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setWrapMode( LineEdit::WrapMode wrapMode )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setWrapMode( static_cast< QQuickTextInput::WrapMode >( wrapMode ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::isReadOnly() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::isReadOnly();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setReadOnly( bool readOnly )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setReadOnly( readOnly );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::isCursorVisible() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::isCursorVisible();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setCursorVisible( bool cursorVisible )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setCursorVisible( cursorVisible );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
int LineEdit::cursorPosition() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::cursorPosition();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setCursorPosition( int cursorPosition )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setCursorPosition( cursorPosition );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QRectF LineEdit::cursorRectangle() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::cursorRectangle();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
int LineEdit::selectionStart() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::selectionStart();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
int LineEdit::selectionEnd() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::selectionEnd();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QString LineEdit::selectedText() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::selectedText();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
int LineEdit::maxLength() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::maxLength();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setMaxLength( int maxLength )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setMaxLength( maxLength );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QValidator* LineEdit::validator() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::validator();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setValidator( QValidator* validator )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setValidator( validator );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QString LineEdit::inputMask() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::inputMask();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setInputMask( const QString& inputMask )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setInputMask( inputMask );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
LineEdit::EchoMode LineEdit::echoMode() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return static_cast< EchoMode >( p->QQuickTextInput::echoMode() );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setEchoMode( LineEdit::EchoMode echoMode )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setEchoMode( static_cast< QQuickTextInput::EchoMode >( echoMode ) );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QString LineEdit::passwordCharacter() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::passwordCharacter();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setPasswordCharacter( const QString& passordCharacter )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setPasswordCharacter( passordCharacter );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
int LineEdit::passwordMaskDelay() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::passwordMaskDelay();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setPasswordMaskDelay( int delay )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setPasswordMaskDelay( delay );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::resetPasswordMaskDelay()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::resetPasswordMaskDelay();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QString LineEdit::displayText() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::displayText();
|
|
|
|
}
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QQmlComponent* LineEdit::cursorDelegate() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::cursorDelegate();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setCursorDelegate( QQmlComponent* component )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setCursorDelegate( component );
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::focusOnPress() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::focusOnPress();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setFocusOnPress( bool focusOnPress )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setFocusOnPress( focusOnPress );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::autoScroll() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::autoScroll();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setAutoScroll( bool autoScroll )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setAutoScroll( autoScroll );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::selectByMouse() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::selectByMouse();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setSelectByMouse( bool selectByMouse )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setSelectByMouse( selectByMouse );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
LineEdit::SelectionMode LineEdit::mouseSelectionMode() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return static_cast< SelectionMode >( p->QQuickTextInput::mouseSelectionMode() );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setMouseSelectionMode( SelectionMode selectionMode )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setMouseSelectionMode(
|
|
|
|
static_cast< QQuickTextInput::SelectionMode >( selectionMode ) );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::persistentSelection() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::persistentSelection();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setPersistentSelection( bool persistentSelection )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setPersistentSelection( persistentSelection );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::hasAcceptableInput() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::hasAcceptableInput();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QVariant LineEdit::inputMethodQuery( Qt::InputMethodQuery inputMethodQuery ) const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
2017-07-24 07:48:36 +02:00
|
|
|
Q_D( const LineEdit );
|
2017-07-21 18:21:34 +02:00
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
auto value = p->QQuickTextInput::inputMethodQuery( inputMethodQuery );
|
|
|
|
if ( inputMethodQuery == Qt::ImPreferredLanguage && value.isNull() )
|
|
|
|
return d->locale;
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QVariant LineEdit::inputMethodQuery(
|
2017-07-21 18:21:34 +02:00
|
|
|
Qt::InputMethodQuery inputMethodQuery, QVariant argument ) const
|
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::inputMethodQuery( inputMethodQuery, argument );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QRectF LineEdit::boundingRect() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
// Special case: we use the control definition of boundingRect instead of
|
|
|
|
// QQuickLineEdit's, because boundingRect is used in layout and rendering
|
|
|
|
return Inherited::boundingRect();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QRectF LineEdit::clipRect() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::clipRect();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::canPaste() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::canPaste();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::canUndo() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::canUndo();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::canRedo() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::canRedo();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::isInputMethodComposing() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::isInputMethodComposing();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
Qt::InputMethodHints LineEdit::inputMethodHints() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::inputMethodHints();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setInputMethodHints( Qt::InputMethodHints inputMethodHints )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setInputMethodHints( inputMethodHints );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QString LineEdit::getText( int start, int end ) const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::getText( start, end );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
qreal LineEdit::contentWidth() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::contentWidth();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
qreal LineEdit::contentHeight() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::contentHeight();
|
|
|
|
}
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
qreal LineEdit::padding() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::padding();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setPadding( qreal padding )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setPadding( padding );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::resetPadding()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::resetPadding();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
qreal LineEdit::topPadding() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::padding();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setTopPadding( qreal topPadding )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setTopPadding( topPadding );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::resetTopPadding()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::resetTopPadding();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
qreal LineEdit::leftPadding() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::leftPadding();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setLeftPadding( qreal leftPadding )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setLeftPadding( leftPadding );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::resetLeftPadding()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::resetLeftPadding();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
qreal LineEdit::rightPadding() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::leftPadding();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setRightPadding( qreal rightPadding )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setRightPadding( rightPadding );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::resetRightPadding()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::resetRightPadding();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
qreal LineEdit::bottomPadding() const
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( const QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::leftPadding();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::setBottomPadding( qreal bottomPadding )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::setBottomPadding( bottomPadding );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::resetBottomPadding()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::resetBottomPadding();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::geometryChanged( const QRectF& newGeometry, const QRectF& oldGeometry )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::geometryChanged( newGeometry, oldGeometry );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::mousePressEvent( QMouseEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::mousePressEvent( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::mouseMoveEvent( QMouseEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::mouseMoveEvent( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::mouseReleaseEvent( QMouseEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::mouseReleaseEvent( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::mouseDoubleClickEvent( QMouseEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::mouseDoubleClickEvent( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::keyPressEvent( QKeyEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::keyPressEvent( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::inputMethodEvent( QInputMethodEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::inputMethodEvent( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::mouseUngrabEvent()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::mouseUngrabEvent();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::event( QEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::event( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::focusOutEvent( QFocusEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::focusOutEvent( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::focusInEvent( QFocusEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::focusInEvent( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::timerEvent( QTimerEvent* event )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::timerEvent( event );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::selectAll()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::selectAll();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::selectWord()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::selectWord();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::select( int start, int end )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::select( start, end );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::deselect()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::deselect();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
bool LineEdit::isRightToLeft( int start, int end )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::isRightToLeft( start, end );
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef QT_NO_CLIPBOARD
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::cut()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::cut();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::copy()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::copy();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::paste()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::paste();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // QT_NO_CLIPBOARD
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::undo()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::undo();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::redo()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::redo();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::insert( int position, const QString& text )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::insert( position, text );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::remove( int start, int end )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::remove( start, end );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::ensureVisible( int position )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::ensureVisible( position );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::selectionChanged()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::selectionChanged();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::createCursor()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::createCursor();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::updateCursorRectangle( bool scroll )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::updateCursorRectangle( scroll );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::q_canPasteChanged()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::q_canPasteChanged();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::q_updateAlignment()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::q_updateAlignment();
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::triggerPreprocess()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::triggerPreprocess();
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef QT_NO_VALIDATOR
|
2017-07-24 07:48:36 +02:00
|
|
|
void LineEdit::q_validatorChanged()
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
p->QQuickTextInput::q_validatorChanged();
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// end proxy methods
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
QSGNode* LineEdit::updateTextInputNode( QSGNode* node )
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
|
|
|
Q_P( QQuickTextInput );
|
|
|
|
return p->QQuickTextInput::updatePaintNode( node, nullptr );
|
|
|
|
}
|
|
|
|
|
2017-07-24 07:48:36 +02:00
|
|
|
#include "moc_LineEdit.cpp"
|