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

List:       kde-devel
Subject:    Re: Porting Kalzium
From:       anu mittal <anu22mittal () gmail ! com>
Date:       2015-01-27 15:47:15
Message-ID: CALdSTMuoui-0DrB1P-dXV4CFHFra7tAWtLp-_HcBL1VmDN6Akw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


It then says
error: no matching function for call to ‘QMessageBox::warning(int, QString)'
         QMessageBox::warning(0,i18n("Cannot save to the specified file."));

On Mon, Jan 26, 2015 at 9:00 PM, anu mittal <anu22mittal@gmail.com> wrote:

> There is an error: ‘i18n' 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 <KLocalizedString>
> How can i resolve it?
>
> On Mon, Jan 26, 2015 at 10:15 AM, anu mittal <anu22mittal@gmail.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 <anu22mittal@gmail.com>
>>> 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 <mecirt@gmail.com> wrote:
>>>>
>>>>> Replacing KDE_IMPORT with Q_DECL_IMPORT should fix that.
>>>>>
>>>>> 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:
>>>>>>     /**
>>>>>>      * 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.
>



-- 
Regards,
Anu.

[Attachment #5 (text/html)]

<div dir="ltr">It then says<br>error: no matching function for call to \
‘QMessageBox::warning(int, QString)'<br>                 \
QMessageBox::warning(0,i18n(&quot;Cannot save to the specified \
file.&quot;));<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, \
Jan 26, 2015 at 9:00 PM, anu mittal <span dir="ltr">&lt;<a \
href="mailto:anu22mittal@gmail.com" \
target="_blank">anu22mittal@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>There is an error: ‘i18n' was not \
declared in this scope<br>                 QMessageBox::warning(0,i18n(&quot;Problem \
while opening the file&quot;)<br><br>then according to localization notes i included \
KLocalizedString in the class and also have KF5::KDELibs4Support set, then also got \
the following error:<br><br>KLocalizedString: No such file or directory<br>  #include \
&lt;KLocalizedString&gt;<br></div><div>How can i resolve it?<br></div></div><div \
class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Mon, Jan 26, \
2015 at 10:15 AM, anu mittal <span dir="ltr">&lt;<a \
href="mailto:anu22mittal@gmail.com" \
target="_blank">anu22mittal@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">It worked, Thanks.</div><div \
class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Jan 26, 2015 at \
4:58 AM, Aleix Pol <span dir="ltr">&lt;<a href="mailto:aleixpol@kde.org" \
target="_blank">aleixpol@kde.org</a>&gt;</span> wrote:<br></div></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div \
class="gmail_extra"><div class="gmail_quote">n Sun, Jan 25, 2015 at 6:48 PM, anu \
mittal <span dir="ltr">&lt;<a href="mailto:anu22mittal@gmail.com" \
target="_blank">anu22mittal@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi,<div>Where do i need to make these changes? \
</div><div>KDE_IMPORT OpenBabel2Wrapper is no where  defined    in .h file or in any \
cmake.</div><div>I can also not find any kdemacro.h.cmake file in my project Kalzium. \
</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Sun, \
Jan 25, 2015 at 4:30 PM, Tomas Mecir <span dir="ltr">&lt;<a \
href="mailto:mecirt@gmail.com" target="_blank">mecirt@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">Replacing KDE_IMPORT with Q_DECL_IMPORT \
should fix that.<br></div><div class="gmail_extra"><br><div \
class="gmail_quote"><div><div>2015-01-24 17:56 GMT+01:00 anu mittal <span \
dir="ltr">&lt;<a href="mailto:anu22mittal@gmail.com" \
target="_blank">anu22mittal@gmail.com</a>&gt;</span>:<br></div></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div><div dir="ltr"><span style="font-size:12.8px">Can \
anybody please give me hint, how to solve the issue shown?<br>openbabel2wrapper.h \
contains the code:-<br><br>class COMPOUNDVIEWER_EXPORT \
OpenBabel2Wrapper<br>{<br>public:<br>       /**<br>         * This class reads the \
molecule in the file @p filename. It returns 0 if<br>         * the file couldn&#39;t \
be read.<br>         */<br>       static Avogadro::Molecule *readMolecule(const \
QString&amp; filename);<br><br>       bool writeMolecule(const QString&amp; filename, \
Avogadro::Molecule *);<br><br>       QString getFormula(Avogadro::Molecule \
*molecule);<br><br>       QString getPrettyFormula(Avogadro::Molecule \
*molecule);<br>};<br><br></span><div style="font-size:12.8px">and the issues shown \
are:<br><a href="http://pastebin.com/cZyYtyPU" \
target="_blank">http://pastebin.com/cZyYtyPU</a><br><br></div><div \
style="font-size:12.8px">Please find the attachment which shows the \
snippet.<div><div><img></div></div></div><span><font \
color="#888888"><div><br></div>-- <br><div><div \
dir="ltr">Regards,<div>Anu.</div></div></div> </font></span></div>
</div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div><br></div></div></div><div \
class="gmail_extra">You can either do as Tomas says or epend on \
KF5::KDELibs4Support.</div><span><font color="#888888"><div \
class="gmail_extra"><br></div><div \
class="gmail_extra">Aleix</div></font></span></div> <br><br></div></div><span>
&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 \
unsubscribe &lt;&lt;<br> <br></span></blockquote></div><span><font \
color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div \
dir="ltr">Regards,<div>Anu.</div></div></div> </font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font \
color="#888888">-- <br><div><div dir="ltr">Regards,<div>Anu.</div></div></div> \
</font></span></div> </blockquote></div><br><br clear="all"><br>-- <br><div \
class="gmail_signature"><div dir="ltr">Regards,<div>Anu.</div></div></div> </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