diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-15 09:21:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-15 11:56:09 +0100 |
commit | 65ecb0d8f43f99f3794fe1aa19c87c153534fbf2 (patch) | |
tree | 61dc4dd87e68520eee49be0a47d713e0cfed5c1b /cui | |
parent | 835c9e6d842fb726e11afee032ef1d25d28efd58 (diff) |
Related: fdo#80633 we can retain cached size for visibility change
we still need to invalidate the layout of our parents, but we can
keep the cached optimal size
Change-Id: I8e77366bd61ff45d34f9d411c7f501a3a9ccbd4e
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/treeopt.hxx | 2 | ||||
-rw-r--r-- | cui/source/options/treeopt.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/inc/treeopt.hxx b/cui/source/inc/treeopt.hxx index e698653efa56..d8077d2fe51a 100644 --- a/cui/source/inc/treeopt.hxx +++ b/cui/source/inc/treeopt.hxx @@ -189,7 +189,7 @@ private: VectorOfNodes LoadNodes( Module* pModule, const OUString& rExtensionId ); void InsertNodes( const VectorOfNodes& rNodeList ); - virtual void queue_resize() SAL_OVERRIDE; + virtual void queue_resize(StateChangedType eReason = STATE_CHANGE_LAYOUT) SAL_OVERRIDE; void SetPaneSize(Window *pPane); protected: diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index ed363cce9f2a..5817013a8136 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -934,7 +934,7 @@ bool OfaTreeOptionsDialog::hasTreePendingLayout() const return maTreeLayoutTimer.IsActive(); } -void OfaTreeOptionsDialog::queue_resize() +void OfaTreeOptionsDialog::queue_resize(StateChangedType /*eReason*/) { if (hasTreePendingLayout()) return; |