--===============5571717281132981323== Content-Type: multipart/alternative; boundary=001a1134dea2a61364050f3753b0 --001a1134dea2a61364050f3753b0 Content-Type: text/plain; charset=UTF-8 Thanks it works Cheers, Garvit Khatri On Mon, Feb 16, 2015 at 10:08 PM, Aleix Pol wrote: > On Mon, Feb 16, 2015 at 5:23 PM, Garvit Khatri > 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 wrote: > >> > >> On Mon, Feb 16, 2015 at 4:09 PM, Garvit Khatri > >> 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 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 > --001a1134dea2a61364050f3753b0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks it works

Cheers,
Garvit Khatri
<= /div>

On Mon, Feb 16, 2015 at 10:08 PM, Aleix Pol = <aleixpol@kde.org> wrote:
<= div class=3D"HOEnZb">
On Mon, Feb 16, 2015 at 5:23 PM, Gar= vit Khatri <garvitdelhi@gmail.c= om> 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 inherit= ed
> 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, Ap= ply and Cancel
>> >> > but
>> >> > not
>> >> > for Default. Can anyone help me with this.
>> >> >
>> >> >
>> >> >
>> >> > /home/garvitdelhi/dev/sok/labplot_port/src/kdefronte= nd/SettingsDialog.cpp:54:
>> >> > error: 'setButtons' was not declared in this= scope
>> >> >=C2=A0 =C2=A0 =C2=A0 setButtons(Ok | Apply | Cancel |= Default);
>> >> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
>> >> >
>> >> >
>> >> >
>> >> > /home/garvitdelhi/dev/sok/labplot_port/src/kdefronte= nd/SettingsDialog.cpp:55:
>> >> > error: 'setDefaultButton' was not declared i= n this scope
>> >> >=C2=A0 =C2=A0 =C2=A0 setDefaultButton(Ok);
>> >> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^
>> >> >
>> >> >
>> >> >
>> >> > /home/garvitdelhi/dev/sok/labplot_port/src/kdefronte= nd/SettingsDialog.cpp:55:
>> >> > error: 'setDefaultButton' was not declared i= n this scope
>> >> >=C2=A0 =C2=A0 =C2=A0 setDefaultButton(Ok);
>> >> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^
>> >> >
>> >> > Cheers,
>> >> > Garvit Khatri
>> >> >
>> >> >
>> >> >>> Visit http://mail.kde.org/mailman/li= stinfo/kde-devel#unsub to
>> >> >>> unsubscribe
>> >> >>> <<
>> >> >
>> >>
>> >>
>> >>
>> >> http://doc-snapsh= ot.qt-project.org/qt5-5.4/qdialogbuttonbox.html#StandardButton-enum
>> >>
>> >> For setDefaultButton, you can use setFocus, although QDia= logButton box
>> >> should use a sane default anyway.
>> >>
>> >> Aleix
>> >>
>> >> PS: http://hackles.org/strips/cartoon2.png I miss hackles &= lt;3
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------= ---------------------
>> >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIR= T Server
>> >> from Actuate! Instantly Supercharge Your Business Reports= and
>> >> Dashboards
>> >> with Interactivity, Sharing, Native Excel Exports, App In= tegration &
>> >> more
>> >> Get technology previously reserved for billion-dollar cor= porations,
>> >> FREE
>> >>
>> >>
>> >> http://pubads.g.= doubleclick.net/gampad/clk?id=3D190641631&iu=3D/4140/ostg.clktrk >> >> _______________________________________________
>> >> Labplot-devel mailing list
>> >> La= bplot-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinf= o/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#aa9c62f4350bcfefa0c11607b3dfed0d= 0

Aleix

--001a1134dea2a61364050f3753b0-- --===============5571717281132981323== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============5571717281132981323==--