+<<<<<<< HEAD
+ Button {
+ x: 2
+ width: menu.width-4
+ height: menu.height
+ id: searchbutton
+ keyUsing: true;
+ opacity: 1
+ text: "Go"
+ KeyNavigation.tab: fromIn
+ Keys.onReturnPressed: searchbutton.doSearch();
+ Keys.onEnterPressed: searchbutton.doSearch();
+ Keys.onSelectPressed: searchbutton.doSearch();
+ Keys.onSpacePressed: searchbutton.doSearch();
+ onClicked: searchbutton.doSearch();
+
+ function doSearch() {
+ // Search ! allowed
+ if (wrappersc.state=="invalidinput")
+ return;
+
+ schModel.from=fromIn.text;
+ schModel.phrase = phraseIn.text;
+ fond.focus = true;
+ fond.state = ""
+ }
+ }
+ }
+
+ states:
+ State {
+ name: "invalidinput"
+ when: fromIn.text=="" // && phraseIn.text==""
+ PropertyChanges { target: searchbutton ; opacity: 0.6 ; }
+ }
+
+=======