<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Dylan,<br>
<br>
Tried with Sailfish OS SDK 1709 on Linux. It works for me. Whenever I had cursor on the identifier (not after semicolon or before preceding space) the menu popped up on ALT+ENTER. It didn't pop up when the getter and setter already existed.<br>
<br>
BR,<br>
Martin<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF378467" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>From:</b> Devel [devel-bounces@lists.sailfishos.org] on behalf of Dylan Van Assche via Devel [devel@lists.sailfishos.org]<br>
<b>Sent:</b> Friday, October 27, 2017 6:03 PM<br>
<b>To:</b> Sailfish OS Developers mailing list<br>
<b>Subject:</b> [SailfishDevel] SDK auto setter/getter<br>
</font><br>
</div>
<div></div>
<div>
<div>Hi,<br>
</div>
<div><br>
</div>
<div>I'm rewriting my Sailfish OS apps with a C++ backend by following the encapsulation rules.<br>
</div>
<div>This implies that I need a get/set for each C++ class so I searched online if QtCreator cannot generate these automatically and it should do it: <a href="https://stackoverflow.com/questions/21142940/how-to-make-getter-and-setter-methods-in-qt-creator-automatically" target="_blank">https://stackoverflow.com/questions/21142940/how-to-make-getter-and-setter-methods-in-qt-creator-automatically</a><br>
</div>
<div>However, the Sailfish OS QtCreator doesn't seem to do this when I press ALT + ENTER on a member variable, the same for the Refactor option.</div>
<div><br>
</div>
<div>Is it disabled or am I doing something wrong?<br>
</div>
<div>Writing each setter/getter myself takes a lot of time...</div>
<div><br>
</div>
<div>Kind regards,<br>
</div>
<div>Dylan Van Assche</div>
<div><br>
</div>
<div class="protonmail_signature_block protonmail_signature_block-empty">
<div class="protonmail_signature_block-user protonmail_signature_block-empty">
<div><br>
</div>
</div>
<div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br>
</div>
</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>