From kde-devel Tue Jan 27 15:47:15 2015 From: anu mittal Date: Tue, 27 Jan 2015 15:47:15 +0000 To: kde-devel Subject: Re: Porting Kalzium Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=142237293818244 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============3904235862230513052==" --===============3904235862230513052== Content-Type: multipart/alternative; boundary=047d7bdc08a662d263050da400bc --047d7bdc08a662d263050da400bc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It then says error: no matching function for call to =E2=80=98QMessageBox::warning(int, = QString)=E2=80=99 QMessageBox::warning(0,i18n("Cannot save to the specified file."))= ; On Mon, Jan 26, 2015 at 9:00 PM, anu mittal wrote: > There is an error: =E2=80=98i18n=E2=80=99 was not declared in this scope > QMessageBox::warning(0,i18n("Problem while opening the file") > > then according to localization notes i included KLocalizedString in the > class and also have KF5::KDELibs4Support set, then also got the following > error: > > KLocalizedString: No such file or directory > #include > How can i resolve it? > > On Mon, Jan 26, 2015 at 10:15 AM, anu mittal > wrote: > >> It worked, Thanks. >> >> On Mon, Jan 26, 2015 at 4:58 AM, Aleix Pol wrote: >> >>> n Sun, Jan 25, 2015 at 6:48 PM, anu mittal >>> wrote: >>> >>>> Hi, >>>> Where do i need to make these changes? >>>> KDE_IMPORT OpenBabel2Wrapper is no where defined in .h file or in any >>>> cmake. >>>> I can also not find any kdemacro.h.cmake file in my project Kalzium. >>>> >>>> On Sun, Jan 25, 2015 at 4:30 PM, Tomas Mecir wrote: >>>> >>>>> Replacing KDE_IMPORT with Q_DECL_IMPORT should fix that. >>>>> >>>>> 2015-01-24 17:56 GMT+01:00 anu mittal : >>>>> >>>>>> Can anybody please give me hint, how to solve the issue shown? >>>>>> openbabel2wrapper.h contains the code:- >>>>>> >>>>>> class COMPOUNDVIEWER_EXPORT OpenBabel2Wrapper >>>>>> { >>>>>> public: >>>>>> /** >>>>>> * This class reads the molecule in the file @p filename. It >>>>>> returns 0 if >>>>>> * the file couldn't be read. >>>>>> */ >>>>>> static Avogadro::Molecule *readMolecule(const QString& filename)= ; >>>>>> >>>>>> bool writeMolecule(const QString& filename, Avogadro::Molecule *= ); >>>>>> >>>>>> QString getFormula(Avogadro::Molecule *molecule); >>>>>> >>>>>> QString getPrettyFormula(Avogadro::Molecule *molecule); >>>>>> }; >>>>>> >>>>>> and the issues shown are: >>>>>> http://pastebin.com/cZyYtyPU >>>>>> >>>>>> Please find the attachment which shows the snippet. >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> Anu. >>>>>> >>>>> >>> You can either do as Tomas says or epend on KF5::KDELibs4Support. >>> >>> Aleix >>> >>> >>> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to >>> unsubscribe << >>> >>> >> >> >> -- >> Regards, >> Anu. >> > > > > -- > Regards, > Anu. > --=20 Regards, Anu. --047d7bdc08a662d263050da400bc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It then says
error: no matching function for call to = =E2=80=98QMessageBox::warning(int, QString)=E2=80=99
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 QMessageBox::warning(0,i18n("Cannot sav= e to the specified file."));

<= div class=3D"gmail_quote">On Mon, Jan 26, 2015 at 9:00 PM, anu mittal <anu22mittal@gmail.com> wrote:
There is an error: =E2=80=98i18n=E2=80=99 was not= declared in this scope
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= QMessageBox::warning(0,i18n("Problem while opening the file")
then according to localization notes i included KLocalizedString in th= e class and also have KF5::KDELibs4Support set, then also got the following= error:

KLocalizedString: No such file or directory
=C2=A0#includ= e <KLocalizedString>
How can i resolve it?

On Mon, Jan 26, 2015 at 10:15 AM, anu mittal <= ;anu22mittal@gma= il.com> wrote:
It worked, Thanks.

On Mon, Jan 26, 2015 at 4:58 AM, Aleix Pol <aleixpol= @kde.org> wrote:
n Sun, Jan 25, 2015 at 6:48 PM, anu mittal <anu22mit= tal@gmail.com> wrote:
Hi,
Where do i need to make these changes?=C2=A0
= KDE_IMPORT OpenBabel2Wrapper is no where=C2=A0defined=C2=A0=C2=A0in .h file= or in any cmake.
I can also not find any kdemacro.h.cmake file i= n my project Kalzium.=C2=A0

On Sun, Jan 25, 2015 at 4:30 PM, Tomas Meci= r <mecirt@gmail.com> wrote:
Replacing KDE_IMPORT with Q_DECL_IMPORT should fix that.<= br>

2015-01-24 17:56 GMT+01:00 anu mittal <anu22mittal@gmail.com>= :
Can anybody please give me hint, = how to solve the issue shown?
openbabel2wrapper.h contains the code:-
class COMPOUNDVIEWER_EXPORT OpenBabel2Wrapper
{
public:
=C2= =A0=C2=A0=C2=A0 /**
=C2=A0=C2=A0=C2=A0=C2=A0 * This class reads the mole= cule in the file @p filename. It returns 0 if
=C2=A0=C2=A0=C2=A0=C2=A0 *= the file couldn't be read.
=C2=A0=C2=A0=C2=A0=C2=A0 */
=C2=A0=C2= =A0=C2=A0 static Avogadro::Molecule *readMolecule(const QString& filena= me);

=C2=A0=C2=A0=C2=A0 bool writeMolecule(const QString& filena= me, Avogadro::Molecule *);

=C2=A0=C2=A0=C2=A0 QString getFormula(Avo= gadro::Molecule *molecule);

=C2=A0=C2=A0=C2=A0 QString getPrettyForm= ula(Avogadro::Molecule *molecule);
};

and the issues shown are:
http://pastebin.com/cZyYtyPU

Please find the attachment which shows the snip= pet.
--
Regards,
Anu.
<= /blockquote>

You can = either do as Tomas says or epend on KF5::KDELibs4Support.

Aleix


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




--
Regards,
Anu.



--
Regards,
Anu.=



--
Regards,
Anu.
--047d7bdc08a662d263050da400bc-- --===============3904235862230513052== 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 << --===============3904235862230513052==--