Issues porting KGeography to KF5

David Gil Oliva davidgiloliva at gmail.com
Mon Dec 30 23:52:59 UTC 2013


Hi!

I'm porting KGeography to KF5, and I found some issues.

*KConfigDialog::setHelp()*

KConfigDialog* dialog = new KConfigDialog(this, "settings",
kgeographySettings::self());
dialog->setHelp("configuration", "kgeography");

It gives me the following error:

/home/david/devel/kgeography/src/kgeography.cpp:170:13: error: ‘class
KConfigDialog’ has no member named ‘setHelp’
make[2]: *** [src/CMakeFiles/kgeography.dir/kgeography.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/kgeography.dir/all] Error 2
make: *** [all] Error 2

What should I subtitute it for? Or should I drop it?

*KApplication::setTopWidget()*

I substituted KApplication for QApplication in main.cpp.

QApplication app(argc, argv);
(...)
app.setTopWidget(new kgeography());

It gives me the following error:

/home/david/devel/kgeography/src/main.cpp: In function ‘int main(int,
char**)’:
/home/david/devel/kgeography/src/main.cpp:21:9: error: ‘class QApplication’
has no member named ‘setTopWidget’

Should I drop it? Is there anything I can substitute it for?

Thanks,

David Gil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20131231/a09a7be0/attachment.html>


More information about the Kde-frameworks-devel mailing list