Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
SPDX-FileCopyrightText: 2011 John Layt <john@layt.net>
|
||||
SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
|
||||
SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include "kdaterangecontrol_p.h"
|
||||
|
||||
bool KDateRangeControlPrivate::isInDateRange(const QDate &date) const
|
||||
{
|
||||
return date.isValid() //
|
||||
&& (!m_minDate.isValid() || date >= m_minDate) //
|
||||
&& (!m_maxDate.isValid() || date <= m_maxDate);
|
||||
}
|
||||
|
||||
bool KDateRangeControlPrivate::setDateRange(const QDate &minDate, const QDate &maxDate)
|
||||
{
|
||||
if (minDate.isValid() && maxDate.isValid() && minDate > maxDate) {
|
||||
return false;
|
||||
}
|
||||
|
||||
m_minDate = minDate;
|
||||
m_maxDate = maxDate;
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user