KShortcutWidget margins/paddings
Aurélien Gâteau
agateau at kde.org
Mon Jun 21 23:04:20 BST 2010
On 21/06/2010 17:09, Andras Mantia wrote:
> On Monday 21 June 2010, Aurélien Gâteau wrote:
>> shortcutWidget->layout()->setMargin(0)
>
> setMargin() is deprecated, use setContentsMargin(0, 0, 0, 0);
Wow, how comes nobody told me about that! Actually I think it shouldn't
be marked as deprecated: I find it quite handy to be able to be able to
set all four margins to the same value without having to type it four
times. At least there should be a setContentsMargin(int) IMO.
Aurélien
More information about the kde-core-devel
mailing list