[Kde-games-devel] KHotNewStuff3 Support

Stefan Majewsky stefan.majewsky at googlemail.com
Sat Apr 14 19:54:21 UTC 2012


On Sat, Apr 7, 2012 at 5:04 AM, Robert Marmorstein
<robert at narnia.homeunix.com> wrote:
> +void Palapeli::MainWindow::actionGHNS()
> +{
> +       KNS3::DownloadDialog dialog("palapeli_puzzles.knsrc");
> +       dialog.exec();
> +}

After the dialog has been exec'd, you need to check whether new
puzzles have been downloaded, and add these to the collection view.
The simplest way to do so is to completely rebuild the contents of the
collection view. See e.g. libkdegames/kgthemeselector.cpp where it
calls rediscoverThemes() and rebuilds its list view after the "Get new
themes" dialog has been exec'd.

Greetings
Stefan


More information about the kde-games-devel mailing list