projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TextField to limit Input to maximum characters and emit signal
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
text-controls
/
text-label-impl.cpp
diff --git
a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
index
f247c61
..
3f0cf0d
100644
(file)
--- a/
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
+++ b/
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
@@
-173,7
+173,7
@@
void TextLabel::SetProperty( BaseObject* object, Property::Index index, const Pr
{
float pointSize = value.Get< float >();
{
float pointSize = value.Get< float >();
- if(
fabsf(impl.mController->GetDefaultPointSize() - pointSize) > Math::MACHINE_EPSILON_1
)
+ if(
!Equals( impl.mController->GetDefaultPointSize(), pointSize )
)
{
impl.mController->SetDefaultPointSize( pointSize );
impl.RequestTextRelayout();
{
impl.mController->SetDefaultPointSize( pointSize );
impl.RequestTextRelayout();
@@
-481,6
+481,11
@@
void TextLabel::RequestTextRelayout()
RelayoutRequest();
}
RelayoutRequest();
}
+void TextLabel::MaxLengthReached()
+{
+ // Pure Virtual from TextController Interface, only needed when inputting text
+}
+
TextLabel::TextLabel()
: Control( ControlBehaviour( REQUIRES_STYLE_CHANGE_SIGNALS ) ),
mRenderingBackend( DEFAULT_RENDERING_BACKEND )
TextLabel::TextLabel()
: Control( ControlBehaviour( REQUIRES_STYLE_CHANGE_SIGNALS ) ),
mRenderingBackend( DEFAULT_RENDERING_BACKEND )