[Kde-pim] Tomboy resource: Questions to KConfigDialog

Daniel Vrátil dvratil at kde.org
Tue Jun 21 23:22:16 BST 2016


On Tuesday, June 21, 2016 11:13:59 PM CEST Stefan Staeglich wrote:
> Am Dienstag, 21. Juni 2016, 23:04:07 schrieben Sie:
> > Hello,
> > 
> > I want to implement the config dialog now. The tutorial suggested the
> > usage
> > of KConfigDialog. But for this I need also my own  Qt GUI-Class? Or is
> > there a easier way?
> > 
> > I created one with QtCreator, so that I have the following new files:
> > configdialog.h
> > configdialog.cpp
> > configdialog.ui
> > 
> > To the CMakeList.txt I added this:
> > ki18n_wrap_ui(tomboynotesresource configdialog.ui)
> 
> Damn copy-paste. I have it:
> ki18n_wrap_ui(tomboynotesresource_SRCS configdialog.ui)
> 
> But the other question is still left.
> 
> > But I get this error:
> > configdialog.cpp:2:29: fatal error: ui_configdialog.h: No such file or
> > directory #include "ui_configdialog.h"
> > 
> > I think that it is a CMake problem again :(


Since the file is generated into your build directory, you may need to add
${CMAKE_CURRENT_BINARY_DIR} to your include_directories()

Dan

> > 
> > Thanks,
> > Stefan
> 
> _______________________________________________
> KDE PIM mailing list kde-pim at kde.org
> https://mail.kde.org/mailman/listinfo/kde-pim
> KDE PIM home page at http://pim.kde.org/


-- 
Daniel Vrátil
www.dvratil.cz | dvratil at kde.org
IRC: dvratil on Freenode (#kde, #kontact, #akonadi, #fedora-kde)

GPG Key: 0x4D69557AECB13683
Fingerprint: 0ABD FA55 A4E6 BEA9 9A83 EA97 4D69 557A ECB1 3683
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20160622/156ca5d6/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list