diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-11 20:15:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-11 20:21:09 +0100 |
commit | d61168908ced2e4bae32b8e0ae0a6eba6dbf37fc (patch) | |
tree | a49a6bc2264b0966f7ef3ad968faa37dd5272949 /include/svtools | |
parent | 9b6b916ef39619f681f714397a0e3f85f442833d (diff) |
have another shot at placing the expander checkitem optimally
reverts 03569dc7d38e4edf3f3e50f7dff3252116c28ab1 "I hate the positioning of the
expander checkitem in hierarchical view". I still hate it, so merge together
the various places where different efforts are made to try and position the
checkitem optimally and provide a single central place to do that.
Change-Id: I047504945fb5bf94e5f451007eb74328b8b56785
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/treelistbox.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index 404689a52b0e..2fb4dcdcb5e4 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -686,6 +686,8 @@ public: Size GetOutputSizePixel() const; short GetIndent() const { return nIndent; } void SetIndent( short nIndent ); + // Place the expander checkitem at the optimal indent for hierarchical lists + void SetOptimalImageIndent() { SetIndent(12); } void SetSpaceBetweenEntries( short nSpace ); short GetSpaceBetweenEntries() const {return nEntryHeightOffs;} Point GetEntryPosition( SvTreeListEntry* ) const; |