From 87eea5a2a93f1dac0ecb635e89dce781f0d0be77 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 11 Jun 2018 11:34:12 +0200 Subject: [PATCH] QskTextInput signals fixed --- src/controls/QskTextInput.cpp | 3 --- src/controls/QskTextInput.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controls/QskTextInput.cpp b/src/controls/QskTextInput.cpp index 504c8aac..0012b20e 100644 --- a/src/controls/QskTextInput.cpp +++ b/src/controls/QskTextInput.cpp @@ -40,9 +40,6 @@ static inline void qskBindSignals( const QQuickTextInput* wrappedInput, input, [ input ] { input->Q_EMIT textEdited( input->text() ); } ); #endif - QObject::connect( wrappedInput, &QQuickTextInput::textChanged, - input, [ input ] { input->Q_EMIT textChanged( input->text() ); } ); - QObject::connect( wrappedInput, &QQuickTextInput::validatorChanged, input, &QskTextInput::validatorChanged ); diff --git a/src/controls/QskTextInput.h b/src/controls/QskTextInput.h index 994b987b..29e42da4 100644 --- a/src/controls/QskTextInput.h +++ b/src/controls/QskTextInput.h @@ -159,7 +159,10 @@ Q_SIGNALS: void readOnlyChanged( bool ); void textChanged( const QString& ); + +#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0) void textEdited( const QString& ); +#endif void descriptionChanged( const QString& );