Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-10706 Blackberry: getValue doesn't return the current value when m... #148

Merged
merged 2 commits into from Sep 5, 2012

Conversation

jpl-mac
Copy link

@jpl-mac jpl-mac commented Sep 4, 2012

...odification happens via UI interaction

Reviewer: Harut

Changelog:

  • Updated Slider apidoc to mark support for value prop
  • Added tiObject field for pointer to correspondinf TiObject in NativeObject's
  • Removed need for a NativeOptionObject class as it has no Ti API equivalent
  • added updateValue function in NSliderO, NSwitchO and NTextFieldO to set the value from the cascades signal in the JS object
  • Made the ToggleButton::checkedChanged signal work by removing param name in connect statement
  • Added TiObject::forceSetProp to set the value on the js without setting it on the NO as this is already done in cases where the change was done via the UI

Removed files: NativeOptionObject.*

Tests:

  • Tested that the value property is updated correctly when modifying via the UI
  • Verified that it still is updated properly when set programmatically

…n modification happens via UI interaction

Reviewer: Harut

Changelog:
- Updated Slider apidoc to mark support for value prop
- Added tiObject field for pointer to correspondinf TiObject in NativeObject's
- Removed need for a NativeOptionObject class as it has no Ti API equivalent
- added updateValue function in NSliderO, NSwitchO and NTextFieldO to set the value from the cascades signal in the JS object
- Made the ToggleButton::checkedChanged signal work by removing param name in connect statement
- Added TiObject::forceSetProp to set the value on the js without setting it on the NO as this is already done in cases where the change was done via the UI

Removed files: NativeOptionObject.*

Tests:
- Tested that the value property is updated correctly when modifying via the UI
- Verified that it still is updated properly when set programmatically
@@ -23,7 +23,8 @@
static const char* FONT_WEIGHT_NORMAL = "normal";
static const char* FONT_WEIGHT_BOLD = "bold";

NativeAbstractTextControlObject::NativeAbstractTextControlObject()
NativeAbstractTextControlObject::NativeAbstractTextControlObject(TiObject* tiObject)
: NativeControlObject(tiObject)
{
textControl_ = NULL;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this into initialization list as well

@Harutyun
Copy link

Harutyun commented Sep 5, 2012

Approved.

Following test was done:

  • build new sdk
  • ran KS , made sure no regression is introduced
  • made sure value property for textField and Slider is working

jpl-mac pushed a commit that referenced this pull request Sep 5, 2012
TIMOB-10706 Blackberry: getValue doesn't return the current value when m...
@jpl-mac jpl-mac merged commit 6110582 into Macadamian:blackberry Sep 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants