-=======
-
-
-
- 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.to= toIn.text;
- schModel.phrase = phraseIn.text;
- fond.focus = true;
- fond.state = ""
-
- }
- }
- }
-/*
- states:
- State {
- name: "invalidinput"
- when: fromIn.text=="" && toIn.text=="" && phraseIn.text==""
- PropertyChanges { target: searchbutton ; opacity: 0.6 ; }
- } */
->>>>>>> 35062d3928ada7bfcb8f08201897545f91b7731b