On Sunday 10 August 2014 17:03:11 Christoph Feck wrote: > 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.
I should add that if the spacingHint() was only needed to get any spacing at all in a K*Box (which defaulted to zero spacing), then you can simply remove the code. Q*BoxLayout already does internally call layoutSpacing(). If unsure, show code. Christoph Feck (kdepepo) _______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel