libs: adjust the minimum and preferred size of Plasma::Calendar widget

both to fit default configuration, font size not taken into account but it
was so before. resizing the widget is an option (the plasma applets and the
calendar that pops from the date on the panel are resizeble)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-07-24 00:46:18 +03:00
parent 81834ca011
commit 525c3a7610

View file

@ -229,8 +229,8 @@ void Calendar::configAccepted(KConfigGroup cg)
void CalendarPrivate::updateSize()
{
QSize minSize = QSize(200, 200);
QSize prefSize = calendarWidget ? calendarWidget->size().toSize() : QSize(250, 250);
QSize minSize = QSize(300, 250);
QSize prefSize = calendarWidget ? calendarWidget->size().toSize() : QSize(300, 250);
q->setMinimumSize(minSize);
q->setPreferredSize(prefSize);