[Differential] [Accepted] D1647: kfontinst: Port to QDialog

mart (Marco Martin) noreply at phabricator.kde.org
Mon May 23 08:37:26 UTC 2016


mart accepted this revision.
mart added a reviewer: mart.
mart added inline comments.
This revision is now accepted and ready to land.

INLINE COMMENTS

> volkov wrote in Printer.cpp:349
> From the Qt documentation ( https://doc.qt.io/qt-5/layout.html ):
> "When you use a layout, you do not need to pass a parent when constructing the child widgets. The layout will automatically reparent the widgets (using QWidget::setParent()) so that they are children of the widget on which the layout is installed."

yep, that's correct, or alternatively to make it clearer, it works also the form
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, layout);
that would add the widget to the layout and reparent it at the same time right upon creation

REPOSITORY
  rPLASMADESKTOP Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D1647

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: volkov, Plasma, mart
Cc: mart, apol, plasma-devel, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160523/075c8a6b/attachment-0001.html>


More information about the Plasma-devel mailing list