[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [Labplot-devel] LabPLot POrt
From:       Garvit Khatri <garvitdelhi () gmail ! com>
Date:       2015-02-16 16:58:24
Message-ID: CAE_LK93fcODPOsabeaLUJU363F1oEntXvyETZHQSrs5EZmmALA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks it works

Cheers,
Garvit Khatri

On Mon, Feb 16, 2015 at 10:08 PM, Aleix Pol <aleixpol@kde.org> wrote:

> On Mon, Feb 16, 2015 at 5:23 PM, Garvit Khatri <garvitdelhi@gmail.com>
> wrote:
> > 
> > i am not getting you I tried this:
> > 
> > setButtons(QDialogButtonBox::Ok | QDialogButtonBox::Apply |
> > QDialogButtonBox::Cancel | QDialogButtonBox::Reset);
> > 
> > 
> > but still the same error.The class in which i am using this is inherited
> > from KPageDialog.
> > 
> > 
> > Code: http://pastebin.com/95FGKXea
> > 
> > 
> > 
> > Cheers,
> > Garvit Khatri
> > 
> > On Mon, Feb 16, 2015 at 8:47 PM, Aleix Pol <aleixpol@kde.org> wrote:
> > > 
> > > On Mon, Feb 16, 2015 at 4:09 PM, Garvit Khatri <garvitdelhi@gmail.com>
> > > wrote:
> > > > Hi Aleix,
> > > > 
> > > > Thanks for help but do you have any reference for error: 'setButtons'
> > > > was
> > > > not declared in this scope.
> > > > 
> > > > Thank you
> > > > 
> > > > Cheers,
> > > > Garvit Khatri
> > > > 
> > > > On Mon, Feb 16, 2015 at 7:19 PM, Aleix Pol <aleixpol@kde.org> wrote:
> > > > > 
> > > > > On Mon, Feb 16, 2015 at 2:30 PM, Garvit Khatri <
> garvitdelhi@gmail.com>
> > > > > wrote:
> > > > > > Hi All,
> > > > > > 
> > > > > > I am porting LabPlot app. I am getting the following error along
> with
> > > > > > Ok,
> > > > > > Apply, Cancel ans Default not in scope error as well. for that i
> used
> > > > > > QDialogButtonBox::Ok. This solved problem for Ok, Apply and Cancel
> > > > > > but
> > > > > > not
> > > > > > for Default. Can anyone help me with this.
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> /home/garvitdelhi/dev/sok/labplot_port/src/kdefrontend/SettingsDialog.cpp:54:
> > > > > > error: 'setButtons' was not declared in this scope
> > > > > > setButtons(Ok | Apply | Cancel | Default);
> > > > > > ^
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> /home/garvitdelhi/dev/sok/labplot_port/src/kdefrontend/SettingsDialog.cpp:55:
> > > > > > error: 'setDefaultButton' was not declared in this scope
> > > > > > setDefaultButton(Ok);
> > > > > > ^
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> /home/garvitdelhi/dev/sok/labplot_port/src/kdefrontend/SettingsDialog.cpp:55:
> > > > > > error: 'setDefaultButton' was not declared in this scope
> > > > > > setDefaultButton(Ok);
> > > > > > ^
> > > > > > 
> > > > > > Cheers,
> > > > > > Garvit Khatri
> > > > > > 
> > > > > > 
> > > > > > > > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > > > > > > > unsubscribe
> > > > > > > > <<
> > > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> http://doc-snapshot.qt-project.org/qt5-5.4/qdialogbuttonbox.html#StandardButton-enum
> 
> > > > > 
> > > > > For setDefaultButton, you can use setFocus, although QDialogButton
> box
> > > > > should use a sane default anyway.
> > > > > 
> > > > > Aleix
> > > > > 
> > > > > PS: http://hackles.org/strips/cartoon2.png I miss hackles <3
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> ------------------------------------------------------------------------------
> > > > > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > > > > from Actuate! Instantly Supercharge Your Business Reports and
> > > > > Dashboards
> > > > > with Interactivity, Sharing, Native Excel Exports, App Integration &
> > > > > more
> > > > > Get technology previously reserved for billion-dollar corporations,
> > > > > FREE
> > > > > 
> > > > > 
> > > > > 
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> > > > > _______________________________________________
> > > > > Labplot-devel mailing list
> > > > > Labplot-devel@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/labplot-devel
> > > > 
> > > > 
> > > 
> > > You have to call setButtons on QDialogButtonBox, not on QDialog.
> > > 
> > > Aleix
> > 
> > 
> 
> 
> http://api.kde.org/frameworks-api/frameworks5-apidocs/kwidgetsaddons/html/classKPageDialog.html#aa9c62f4350bcfefa0c11607b3dfed0d0
>  
> Aleix
> 


[Attachment #5 (text/html)]

<div dir="ltr">Thanks it works</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 10:08 PM, Aleix Pol <span dir="ltr">&lt;<a \
href="mailto:aleixpol@kde.org" target="_blank">aleixpol@kde.org</a>&gt;</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 5:23 PM, Garvit Khatri &lt;<a \
href="mailto:garvitdelhi@gmail.com">garvitdelhi@gmail.com</a>&gt; wrote:<br> &gt;<br>
&gt; i am not getting you I tried this:<br>
&gt;<br>
&gt; setButtons(QDialogButtonBox::Ok | QDialogButtonBox::Apply |<br>
&gt; QDialogButtonBox::Cancel | QDialogButtonBox::Reset);<br>
&gt;<br>
&gt;<br>
&gt; but still the same error.The class in which i am using this is inherited<br>
&gt; from KPageDialog.<br>
&gt;<br>
&gt;<br>
&gt; Code: <a href="http://pastebin.com/95FGKXea" \
target="_blank">http://pastebin.com/95FGKXea</a><br> &gt;<br>
&gt;<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Garvit Khatri<br>
&gt;<br>
&gt; On Mon, Feb 16, 2015 at 8:47 PM, Aleix Pol &lt;<a \
href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>&gt; wrote:<br> &gt;&gt;<br>
&gt;&gt; On Mon, Feb 16, 2015 at 4:09 PM, Garvit Khatri &lt;<a \
href="mailto:garvitdelhi@gmail.com">garvitdelhi@gmail.com</a>&gt;<br> &gt;&gt; \
wrote:<br> &gt;&gt; &gt; Hi Aleix,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks for help but do you have any reference for error: \
&#39;setButtons&#39;<br> &gt;&gt; &gt; was<br>
&gt;&gt; &gt; not declared in this scope.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thank you<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Cheers,<br>
&gt;&gt; &gt; Garvit Khatri<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Mon, Feb 16, 2015 at 7:19 PM, Aleix Pol &lt;<a \
href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>&gt; wrote:<br> &gt;&gt; \
&gt;&gt;<br> &gt;&gt; &gt;&gt; On Mon, Feb 16, 2015 at 2:30 PM, Garvit Khatri &lt;<a \
href="mailto:garvitdelhi@gmail.com">garvitdelhi@gmail.com</a>&gt;<br> &gt;&gt; \
&gt;&gt; wrote:<br> &gt;&gt; &gt;&gt; &gt; Hi All,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I am porting LabPlot app. I am getting the following error \
along with<br> &gt;&gt; &gt;&gt; &gt; Ok,<br>
&gt;&gt; &gt;&gt; &gt; Apply, Cancel ans Default not in scope error as well. for that \
i used<br> &gt;&gt; &gt;&gt; &gt; QDialogButtonBox::Ok. This solved problem for Ok, \
Apply and Cancel<br> &gt;&gt; &gt;&gt; &gt; but<br>
&gt;&gt; &gt;&gt; &gt; not<br>
&gt;&gt; &gt;&gt; &gt; for Default. Can anyone help me with this.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; \
/home/garvitdelhi/dev/sok/labplot_port/src/kdefrontend/SettingsDialog.cpp:54:<br> \
&gt;&gt; &gt;&gt; &gt; error: &#39;setButtons&#39; was not declared in this scope<br> \
&gt;&gt; &gt;&gt; &gt;         setButtons(Ok | Apply | Cancel | Default);<br> \
&gt;&gt; &gt;&gt; &gt;                                                                \
^<br> &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; \
/home/garvitdelhi/dev/sok/labplot_port/src/kdefrontend/SettingsDialog.cpp:55:<br> \
&gt;&gt; &gt;&gt; &gt; error: &#39;setDefaultButton&#39; was not declared in this \
scope<br> &gt;&gt; &gt;&gt; &gt;         setDefaultButton(Ok);<br>
&gt;&gt; &gt;&gt; &gt;                                      ^<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; \
/home/garvitdelhi/dev/sok/labplot_port/src/kdefrontend/SettingsDialog.cpp:55:<br> \
&gt;&gt; &gt;&gt; &gt; error: &#39;setDefaultButton&#39; was not declared in this \
scope<br> &gt;&gt; &gt;&gt; &gt;         setDefaultButton(Ok);<br>
&gt;&gt; &gt;&gt; &gt;                                      ^<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Cheers,<br>
&gt;&gt; &gt;&gt; &gt; Garvit Khatri<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;&gt; 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<br> \
&gt;&gt; &gt;&gt; &gt;&gt;&gt; unsubscribe<br> &gt;&gt; &gt;&gt; &gt;&gt;&gt; \
&lt;&lt;<br> &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; <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>
 &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; For setDefaultButton, you can use setFocus, although QDialogButton \
box<br> &gt;&gt; &gt;&gt; should use a sane default anyway.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Aleix<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; PS: <a href="http://hackles.org/strips/cartoon2.png" \
target="_blank">http://hackles.org/strips/cartoon2.png</a> I miss hackles &lt;3<br> \
&gt;&gt; &gt;&gt;<br> &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; ------------------------------------------------------------------------------<br>
 &gt;&gt; &gt;&gt; Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT \
Server<br> &gt;&gt; &gt;&gt; from Actuate! Instantly Supercharge Your Business \
Reports and<br> &gt;&gt; &gt;&gt; Dashboards<br>
&gt;&gt; &gt;&gt; with Interactivity, Sharing, Native Excel Exports, App Integration \
&amp;<br> &gt;&gt; &gt;&gt; more<br>
&gt;&gt; &gt;&gt; Get technology previously reserved for billion-dollar \
corporations,<br> &gt;&gt; &gt;&gt; FREE<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; <a \
href="http://pubads.g.doubleclick.net/gampad/clk?id=190641631&amp;iu=/4140/ostg.clktrk" \
target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=190641631&amp;iu=/4140/ostg.clktrk</a><br>
 &gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; Labplot-devel mailing list<br>
&gt;&gt; &gt;&gt; <a \
href="mailto:Labplot-devel@lists.sourceforge.net">Labplot-devel@lists.sourceforge.net</a><br>
 &gt;&gt; &gt;&gt; <a \
href="https://lists.sourceforge.net/lists/listinfo/labplot-devel" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/labplot-devel</a><br> \
&gt;&gt; &gt;<br> &gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; You have to call setButtons on QDialogButtonBox, not on QDialog.<br>
&gt;&gt;<br>
&gt;&gt; Aleix<br>
&gt;<br>
&gt;<br>
<br>
</div></div><a href="http://api.kde.org/frameworks-api/frameworks5-apidocs/kwidgetsaddons/html/classKPageDialog.html#aa9c62f4350bcfefa0c11607b3dfed0d0" \
target="_blank">http://api.kde.org/frameworks-api/frameworks5-apidocs/kwidgetsaddons/html/classKPageDialog.html#aa9c62f4350bcfefa0c11607b3dfed0d0</a><br>
 <span class="HOEnZb"><font color="#888888"><br>
Aleix<br>
</font></span></blockquote></div><br></div>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic