X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-impl.h;h=e9d99f1fe4db80164d826a08a2c7af6f25342c8b;hb=52bf7f299f84eb2a64e744f2b9183d560689caf2;hp=3014edb68a4ed3b9cb35409157f6ce114163633d;hpb=ba7e2eefb4cad9fe2575cdedc56b86fa64bf5833;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller-impl.h b/dali-toolkit/internal/text/text-controller-impl.h index 3014edb..e9d99f1 100644 --- a/dali-toolkit/internal/text/text-controller-impl.h +++ b/dali-toolkit/internal/text/text-controller-impl.h @@ -104,6 +104,7 @@ struct EventData DecoratorPtr mDecorator; ///< Pointer to the decorator. ImfManager mImfManager; ///< The Input Method Framework Manager. + std::string mPlaceholderText; ///< The text to display when the TextField is empty. std::string mPlaceholderTextActive; ///< The text to display when the TextField is empty with key-input focus. std::string mPlaceholderTextInactive; ///< The text to display when the TextField is empty and inactive. Vector4 mPlaceholderTextColor; ///< The in/active placeholder text color. @@ -383,10 +384,9 @@ struct Controller::Impl */ bool IsPlaceholderAvailable() const { - return ( mEventData && - ( !mEventData->mPlaceholderTextInactive.empty() || - !mEventData->mPlaceholderTextActive.empty() ) - ); + return ( mEventData && ( !mEventData->mPlaceholderText.empty() || + !mEventData->mPlaceholderTextInactive.empty() || + !mEventData->mPlaceholderTextActive.empty() ) ); } bool IsShowingPlaceholderText() const @@ -399,7 +399,8 @@ struct Controller::Impl */ bool IsFocusedPlaceholderAvailable() const { - return ( mEventData && !mEventData->mPlaceholderTextActive.empty() ); + return ( mEventData && ( !mEventData->mPlaceholderTextActive.empty() || + !mEventData->mPlaceholderText.empty() ) ); } bool IsShowingRealText() const