[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-games-devel
Subject:    Re: [Kde-games-devel] KHotNewStuff3 Support
From:       Stefan Majewsky <stefan.majewsky () googlemail ! com>
Date:       2012-04-14 19:54:21
Message-ID: CACoMYZYu=_G25c9B4VN-8jd2P5twFJLzrrV71q-ZBgowb4nA_Q () mail ! gmail ! com
[Download RAW message or body]

On Sat, Apr 7, 2012 at 5:04 AM, Robert Marmorstein
<robert@narnia.homeunix.com> wrote:
> +void Palapeli::MainWindow::actionGHNS()
> +{
> + =A0 =A0 =A0 KNS3::DownloadDialog dialog("palapeli_puzzles.knsrc");
> + =A0 =A0 =A0 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
_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic