From 47561fdd6e67ab1918acf8f44ed54759bdf467a7 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 22 Feb 2011 15:41:12 +0000 Subject: Make collapser use QPixmap during animation. --- client/macrowindow.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'client/macrowindow.cc') diff --git a/client/macrowindow.cc b/client/macrowindow.cc index 481ee0c..04cc2cb 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -233,13 +233,14 @@ void MacroWindow::expandWrapper() } } } - if(mainwidget) setExpandedWidget(mainwidget->qwidget()); - expand(); - // Set values here, to be sure that the widgets are visible and thereby - // validate correctly. + // Set values here, to be sure that the widgets are visible to the value + // system and thereby validate correctly. if(mainwidget) mainwidget->setValues(); + if(mainwidget) setExpandedWidget(mainwidget->qwidget()); + expand(); + // Set keyboard focus on the first focusable widget in the macro. QVector< Widget* > widgets; if(mainwidget) widgets = mainwidget->widgetList(true); -- cgit v1.2.3