Re: save and restore the geometry of KMainWindow

2018-02-02 Thread Alexander Semke
On 01.02.2018 20:52, Albert Astals Cid wrote: El dimarts, 30 de gener de 2018, a les 21:06:02 CET, Alexander Semke va escriure: The state is already saved and restored there. Why not to do the same for the geometry? I think that it's generally frowned upon putting your position on screen

Re: save and restore the geometry of KMainWindow

2018-02-01 Thread Albert Astals Cid
El dimarts, 30 de gener de 2018, a les 21:06:02 CET, Alexander Semke va escriure: > On 30.01.2018 16:38, Milian Wolff wrote: > > This works for me: > > https://github.com/KDAB/hotspot/blob/4d1177d1631902dce1dd82f53553e97a7544b > > 1fa/ src/mainwindow.cpp#L162 > > Thanks, that helped. I was using

Re: save and restore the geometry of KMainWindow

2018-02-01 Thread Albert Astals Cid
El dimarts, 30 de gener de 2018, a les 21:06:02 CET, Alexander Semke va escriure: > On 30.01.2018 16:38, Milian Wolff wrote: > > This works for me: > > https://github.com/KDAB/hotspot/blob/4d1177d1631902dce1dd82f53553e97a7544b > > 1fa/ src/mainwindow.cpp#L162 > > Thanks, that helped. I was using

Re: save and restore the geometry of KMainWindow

2018-01-30 Thread Alexander Semke
On 30.01.2018 16:38, Milian Wolff wrote: This works for me: https://github.com/KDAB/hotspot/blob/4d1177d1631902dce1dd82f53553e97a7544b1fa/ src/mainwindow.cpp#L162 Thanks, that helped. I was using restoreGeometry(group.readEntry("geometry").toLatin1()) instead of

Re: save and restore the geometry of KMainWindow

2018-01-30 Thread Alexander Semke
On 30.01.2018 16:38, Milian Wolff wrote: This works for me: https://github.com/KDAB/hotspot/blob/4d1177d1631902dce1dd82f53553e97a7544b1fa/ src/mainwindow.cpp#L162 Thanks, that helped. I was using restoreGeometry(group.readEntry("geometry").toLatin1()) instead of

Re: save and restore the geometry of KMainWindow

2018-01-30 Thread Milian Wolff
On Monday, January 29, 2018 9:17:54 AM CET Alexander Semke wrote: > resending this to kde-devel... > > On 28.01.2018 18:45, Alexander Semke wrote: > > Hi, > > > > KMainWindow takes care of saving/restoring the state of the main > > window, menus and toolbars. > > Also, the size of the main

Re: save and restore the geometry of KMainWindow

2018-01-30 Thread Milian Wolff
On Monday, January 29, 2018 9:17:54 AM CET Alexander Semke wrote: > resending this to kde-devel... > > On 28.01.2018 18:45, Alexander Semke wrote: > > Hi, > > > > KMainWindow takes care of saving/restoring the state of the main > > window, menus and toolbars. > > Also, the size of the main

Re: save and restore the geometry of KMainWindow

2018-01-29 Thread Alexander Semke
resending this to kde-devel... On 28.01.2018 18:45, Alexander Semke wrote: Hi, KMainWindow takes care of saving/restoring the state of the main window, menus and toolbars. Also, the size of the main window is correctly stored and restored. However, I don't see how to save and restore the

Re: save and restore the geometry of KMainWindow

2018-01-29 Thread Alexander Semke
resending this to kde-devel... On 28.01.2018 18:45, Alexander Semke wrote: Hi, KMainWindow takes care of saving/restoring the state of the main window, menus and toolbars. Also, the size of the main window is correctly stored and restored. However, I don't see how to save and restore the