This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Can someone help me understand KTMainWindow#saveProperties?

Tags: None
(comma "," separated)
User avatar
MountainX
Registered Member
Posts
56
Karma
0
OS
I am not a KDE developer. However, I would like to investigate, learn about and possibly debug an issue related to the two methods below.

Code: Select all
void DolphinMainWindow::saveProperties(KConfigGroup& group)
void DolphinMainWindow::readProperties(const KConfigGroup& group)


Here is the only documentation I have found so far. I know there must be more, but I cannot find it.

Code: Select all
    /** saves the window properties for each open window during session end to the session config file,
     *  including saving the currently opened file by a temporary filename provided by KApplication.
     *  @see KTMainWindow#saveProperties
     */
    virtual void saveProperties(KConfig *_cfg);
    /** reads the session config file and restores the application's state including the last
     *  opened files and documents by reading the temporary files saved by saveProperties()
     *  @see KTMainWindow#readProperties
     */
    virtual void readProperties(KConfig *_cfg);


I'm starting my KDE education by watching these videos:

Building KDE Software from git.kde.org Part 1 - YouTube
https://www.youtube.com/watch?v=cqnNVmJocR4

However, I appreciate any details in particular about the two methods above. For example, where are the files that these properties are saved to?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I'm afraid the types KConfig and KConfigGroup are different - so the documentation you have found is likely for something different despite the similar function names.

I would suggest reviewing the documentation for KConfigGroup and KConfig, which are available on api.kde.org, as these should help answer your question.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
MountainX
Registered Member
Posts
56
Karma
0
OS
bcooksley wrote:I would suggest reviewing the documentation for KConfigGroup and KConfig, which are available on api.kde.org, as these should help answer your question.


Thanks.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]