Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/kalzium.knsrc
- ===================================================================
- --- src/kalzium.knsrc (revision 1091805)
- +++ src/kalzium.knsrc (working copy)
- @@ -1,3 +1,3 @@
- -[KNewStuff2]
- +[KNewStuff3]
- ProvidersUrl=http://data.kstuff.org/cgi-bin/hotstuff-provider?site=kalzium
- TargetDir=kalzium/data/molecules/
- Index: src/tools/moleculeview.cpp
- ===================================================================
- --- src/tools/moleculeview.cpp (revision 1091805)
- +++ src/tools/moleculeview.cpp (working copy)
- @@ -24,7 +24,7 @@
- #include <kstandarddirs.h>
- #include <kmessagebox.h>
- #include <KLocale>
- -#include <knewstuff2/engine.h>
- +#include <knewstuff3/downloaddialog.h>
- #include <openbabel2wrapper.h>
- @@ -236,15 +236,17 @@
- void MoleculeDialog::slotDownloadNewStuff()
- {
- kDebug() << "Kalzium new stuff";
- - KNS::Entry::List entries = KNS::Engine::download();
- +
- + KNS3::DownloadDialog dialog(this);
- + dialog.exec();
- +
- // list of changed entries
- - foreach(KNS::Entry* entry, entries) {
- + foreach (const KNS3::Entry& entry, dialog.changedEntries()) {
- // care only about installed ones
- - if (entry->status() == KNS::Entry::Installed) {
- - kDebug() << "Files downloaded: " << entry->installedFiles();
- + if (entry.status() == KNS3::Entry::Installed) {
- + kDebug() << "Changed Entry: " << entry.installedFiles();
- }
- }
- - qDeleteAll(entries);
- }
- void MoleculeDialog::elementCombo()
- Index: src/CMakeLists.txt
- ===================================================================
- --- src/CMakeLists.txt (revision 1091805)
- +++ src/CMakeLists.txt (working copy)
- @@ -131,7 +131,7 @@
- kde4_add_executable(kalzium ${kalzium_SRCS} )
- -target_link_libraries(kalzium ${KDE4_KHTML_LIBRARY} ${KDE4_KUTILS_LIBRARY} ${KDE4_KNEWSTUFF2_LIBS} ${KDE4_KUNITCONVERSION_LIBS} science kdeeduui)
- +target_link_libraries(kalzium ${KDE4_KHTML_LIBRARY} ${KDE4_KUTILS_LIBRARY} ${KDE4_KNEWSTUFF3_LIBS} ${KDE4_KUNITCONVERSION_LIBS} science kdeeduui)
- if (OPENBABEL2_FOUND)
- target_link_libraries(kalzium ${OPENBABEL2_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement