<div dir="ltr">Hi Aleix,<div><br></div><div>Thanks for help but do you have any reference for <span style="font-size:12.8000001907349px">error: 'setButtons' was not declared in this scope.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Thank you</span></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8000001907349px">Cheers</span>,<br>Garvit Khatri</div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Feb 16, 2015 at 7:19 PM, Aleix Pol <span dir="ltr"><<a href="mailto:aleixpol@kde.org" target="_blank">aleixpol@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Feb 16, 2015 at 2:30 PM, Garvit Khatri <<a href="mailto:garvitdelhi@gmail.com">garvitdelhi@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I am porting LabPlot app. I am getting the following error along with Ok,<br>
> Apply, Cancel ans Default not in scope error as well. for that i used<br>
> QDialogButtonBox::Ok. This solved problem for Ok, Apply and Cancel but not<br>
> for Default. Can anyone help me with this.<br>
><br>
> /home/garvitdelhi/dev/sok/labplot_port/src/kdefrontend/SettingsDialog.cpp:54:<br>
> error: 'setButtons' was not declared in this scope<br>
>      setButtons(Ok | Apply | Cancel | Default);<br>
>                                              ^<br>
><br>
> /home/garvitdelhi/dev/sok/labplot_port/src/kdefrontend/SettingsDialog.cpp:55:<br>
> error: 'setDefaultButton' was not declared in this scope<br>
>      setDefaultButton(Ok);<br>
>                         ^<br>
><br>
> /home/garvitdelhi/dev/sok/labplot_port/src/kdefrontend/SettingsDialog.cpp:55:<br>
> error: 'setDefaultButton' was not declared in this scope<br>
>      setDefaultButton(Ok);<br>
>                         ^<br>
><br>
> Cheers,<br>
> Garvit Khatri<br>
><br>
><br>
</div></div>>>> Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to unsubscribe<br>
>>> <<<br>
><br>
<br>
<a href="http://doc-snapshot.qt-project.org/qt5-5.4/qdialogbuttonbox.html#StandardButton-enum" target="_blank">http://doc-snapshot.qt-project.org/qt5-5.4/qdialogbuttonbox.html#StandardButton-enum</a><br>
<br>
For setDefaultButton, you can use setFocus, although QDialogButton box<br>
should use a sane default anyway.<br>
<br>
Aleix<br>
<br>
PS: <a href="http://hackles.org/strips/cartoon2.png" target="_blank">http://hackles.org/strips/cartoon2.png</a> I miss hackles <3<br>
<br>
------------------------------------------------------------------------------<br>
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server<br>
from Actuate! Instantly Supercharge Your Business Reports and Dashboards<br>
with Interactivity, Sharing, Native Excel Exports, App Integration & more<br>
Get technology previously reserved for billion-dollar corporations, FREE<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk</a><br>
_______________________________________________<br>
Labplot-devel mailing list<br>
<a href="mailto:Labplot-devel@lists.sourceforge.net">Labplot-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/labplot-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/labplot-devel</a><br>
</blockquote></div><br></div>