{"id":491,"date":"2018-08-04T08:36:29","date_gmt":"2018-08-04T07:36:29","guid":{"rendered":"http:\/\/pusling.com\/blog\/?p=491"},"modified":"2018-08-04T08:36:29","modified_gmt":"2018-08-04T07:36:29","slug":"the-smart-button","status":"publish","type":"post","link":"https:\/\/pusling.com\/blog\/?p=491","title":{"rendered":"The smart button"},"content":{"rendered":"\n<pre class=\"lang:generic decode:true \" >Item {\r\n    property string text;\r\n    Text { ... }\r\n    MouseArea {\r\n        onClicked: {\r\n            if (parent.text === \"Quit\") {\r\n                Qt.quit()\r\n            } else if (parent.text === \"Start\") {\r\n                globalObject.start()\r\n            } else if (parent.text === \"Stop\") {\r\n                globalObject.stop()\r\n            }\r\n        }\r\n    }\r\n}<\/pre>\n<p>I don&#8217;t always understand why people do things in some ways.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Item { property string text; Text { &#8230; } MouseArea { onClicked: { if (parent.text === &#8220;Quit&#8221;) { Qt.quit() } else if (parent.text === &#8220;Start&#8221;) { globalObject.start() } else if (parent.text === &#8220;Stop&#8221;) { globalObject.stop() } } } } I don&#8217;t always understand why people do things in some ways.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,11],"tags":[],"class_list":["post-491","post","type-post","status-publish","format-standard","hentry","category-english","category-kde","category-qt"],"_links":{"self":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=491"}],"version-history":[{"count":2,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/491\/revisions"}],"predecessor-version":[{"id":493,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/491\/revisions\/493"}],"wp:attachment":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}