Fixed a bug, Added a setter and reorganized code 

Hi, I just added a setter for the time formatter, I fixed an error in setSelectedItem: in IQDropDownModeTime and reorganized code a little bit using pragma in order to make the code clearer.