Skip to content

Commit

Permalink
Merge pull request escoz#650 from luiza-cicone/master
Browse files Browse the repository at this point in the history
fixed bug when initializing QFloatElement from json
  • Loading branch information
escoz committed Feb 25, 2014
2 parents e3ea106 + 637fa3f commit 67c69fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion quickdialog/QFloatElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@property(nonatomic, assign) float minimumValue;
@property(nonatomic, assign) float maximumValue;


- (QFloatElement *)init;
- (QFloatElement *)initWithTitle:(NSString *)string value:(float)value;
- (QElement *)initWithValue:(float)value;
@end
4 changes: 4 additions & 0 deletions quickdialog/QFloatElement.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ @implementation QFloatElement
@synthesize minimumValue = _minimumValue;
@synthesize maximumValue = _maximumValue;

- (QFloatElement *)init {
return [self initWithValue:0.0];
}

- (QFloatElement *)initWithTitle:(NSString *)title value:(float)value {
self = [super initWithTitle:title Value:nil] ;
if (self) {
Expand Down

0 comments on commit 67c69fc

Please sign in to comment.