Commit 6e345c8b authored by David Jarvie's avatar David Jarvie
Browse files

Bug 357018: Fix reminder time edit field being covered up

The 'in advance' combo box covered the reminder time value edit
field due to not being added to a layout. Note that this happened
to work ok with Qt4, but no longer does with Qt5.
parent cabaa23e
/*
* timeselector.cpp - widget to optionally set a time period
* Program: kalarm
* Copyright © 2004,2005,2007,2009-2011 by David Jarvie <djarvie@kde.org>
* Copyright © 2004-2016 by David Jarvie <djarvie@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -67,8 +67,11 @@ TimeSelector::TimeSelector(const QString& selectText, const QString& selectWhats
ComboBox* TimeSelector::createSignCombo()
{
delete mSignWidget;
mSignWidget = new ComboBox(mPeriod->parentWidget());
QWidget* p = mPeriod->parentWidget();
mSignWidget = new ComboBox(p);
mSignWidget = new ComboBox(p);
mSignWidget->setEnabled(mPeriod->isEnabled());
p->layout()->addWidget(mSignWidget);
return mSignWidget;
}
......
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