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 <anu22mit...@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 <anu22mit...@gmail.com>
> wrote:
>
>> It worked, Thanks.
>>
>> On Mon, Jan 26, 2015 at 4:58 AM, Aleix Pol <aleix...@kde.org> wrote:
>>
>>> n Sun, Jan 25, 2015 at 6:48 PM, anu mittal <anu22mit...@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 <mec...@gmail.com> wrote:
>>>>
>>>>> Replacing KDE_IMPORT with Q_DECL_IMPORT should fix that.
>>>>>
>>>>> 2015-01-24 17:56 GMT+01:00 anu mittal <anu22mit...@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.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to