|
From: Carlos P. <cpa...@ce...> - 2016-02-01 09:53:26
|
Applied to develop
On Tue 19 January 2016 16:07:53 cpa...@ce... wrote:
> From: cpascual <cpa...@ce...>
>
> When launching taurusform as an standalone application, store the
> window geometry in the config dict/file so that it is restored when
> loading the stored settings.
> ---
> lib/taurus/qt/qtgui/panel/taurusform.py | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/lib/taurus/qt/qtgui/panel/taurusform.py
> b/lib/taurus/qt/qtgui/panel/taurusform.py index 99c2ec5..4b38c58
> 100644
> --- a/lib/taurus/qt/qtgui/panel/taurusform.py
> +++ b/lib/taurus/qt/qtgui/panel/taurusform.py
> @@ -947,6 +947,10 @@ def taurusFormMain():
> dialog.setModifiableByUser(True)
> dialog.setModelInConfig(True)
> dialog.setWindowTitle(options.window_name)
> +
> + # Make sure the window size and position are restored
> + dialog.registerConfigProperty(dialog.saveGeometry,
> dialog.restoreGeometry, +
> 'MainWindowGeometry')
>
> from taurus.qt.qtgui.resource import getThemeIcon
> quitApplicationAction =
> Qt.QAction(getThemeIcon("process-stop"),'Close Form', dialog)
--
+----------------------------------------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
ALBA Synchrotron [http://www.albasynchrotron.es]
Carrer de la Llum 2-26
E-08290 Cerdanyola del Valles (Barcelona), Spain
E-mail: cpa...@ce...
Phone: +34 93 592 4428
+----------------------------------------------------+
|