Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 95416ca0 authored by Laurent Montel's avatar Laurent Montel 😁

Assign parent directly. Remove setLayout(...) when not necessary

parent cbfdc528
......@@ -319,7 +319,6 @@ TodoView::TodoView(const EventViews::PrefsPtr &prefs,
dummyLayout->addWidget(mFlatViewButton);
layout->addLayout(dummyLayout, 2, 1);
setLayout(layout);
// ---------------- POPUP-MENUS -----------------------
mItemPopupMenu = new QMenu(this);
......
......@@ -106,8 +106,6 @@ TodoViewQuickSearch::TodoViewQuickSearch(const Akonadi::ETMCalendar::Ptr &calend
layout->addWidget(mPriorityCombo, 1);
fillPriorities();
setLayout(layout);
}
void TodoViewQuickSearch::setCalendar(const Akonadi::ETMCalendar::Ptr &calendar)
......
......@@ -29,8 +29,7 @@
CreateColorGui_test::CreateColorGui_test(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *vbox = new QVBoxLayout;
setLayout(vbox);
QVBoxLayout *vbox = new QVBoxLayout(this);
mListWidget = new QListWidget;
vbox->addWidget(mListWidget);
createListWidgetItem();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment