KDialog::spacingHint
Christoph Feck
christoph at maxiom.de
Sun Aug 10 15:03:11 UTC 2014
On Sunday 10 August 2014 16:04:34 David Narvaez wrote:
> What's the correct way to port away from KDialog::spacingHint? I
> read the sources of it in KDELibs 4 and replaced it with
>
> QApplication::style()->pixelMetric( QStyle::PM_DefaultLayoutSpacing
> )
>
> is that OK?
No, that is a workaround, because no style and no widget are available
here (spacingHint() it is a static function).
Please use layoutSpacing() called on the style() of your dialog.
Christoph Feck (kdepepo)
More information about the Kde-frameworks-devel
mailing list