[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: The correct way of saving settings and how focusing work
From: Stefan Majewsky <majewsky () gmx ! net>
Date: 2009-11-15 23:11:27
Message-ID: 200911160011.28029.majewsky () gmx ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Am Montag, 16. November 2009 00:06:40 schrieb Alessandro Sivieri:
> 1) what is the correct way of saving settings before the application quits?
> For now, my quit() action from the standard actions just calls
> kapp->quit(), but I would like to invoke the writeConfig function of a
> KDirOperator before quitting, so it can save its configurations; should I
> simply call a personalized function instead of kapp->quit() directly, and
> from there call the writeConfig and then the final quit?
QCoreApplication has an aboutToQuit() signal. Connect this to your settings
saver method.
> 2) I have a KLineEdit and a KTabWidget, and the line gets the focus when I
> start the application; how can I force the focus to the tab widget instead?
tabWidget->setFocus(Qt::OtherFocusReason);
Greetings
Stefan
["signature.asc" (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic