[Kst] [kst] [Bug 337594] Save Default Update Type in Data Wizard

Nicolas Brisset nicolas.brisset at eurocopter.com
Sun Jul 20 18:31:02 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=337594

Nicolas Brisset <nicolas.brisset at eurocopter.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicolas.brisset at eurocopter.
                   |                            |com
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #1 from Nicolas Brisset <nicolas.brisset at eurocopter.com> ---
I gave it a quick try, by adding:

  dialogDefaults().setValue("wizard/updateType",
_pageDataSource->updateType());
to datawizard.cpp (DataWizard::finished())

but I'm not really sure where to add the corresponding call to restore the last
used value. It should certainly go to
DataWizardPageDataSource::updateUpdateBox(), but there I seem to hit an issue,
which is that the call to _dataSource->updateType() seems to default to
returning 0, and I don't see how to distinguish between a 0 read from stored
settings and a 0 as default value. The defaults are managed by NamedParameter,
where I don't see an easy way to specify reading that value from the settings. 
Any help would be nice, maybe I'm on a completely wrong way...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kst mailing list