diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-01-05 21:07:35 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-01-13 20:14:07 +0000 |
commit | 0c65ffef9b021555c03081e4e60e91a268d46c98 (patch) | |
tree | 40be4ab28c3bc754105b9f8d04dfa118cc0bb00d /src/imports/calendar | |
parent | 6d00ed2d5328e605bf846622a9dbe4dfe821aee4 (diff) |
QtQuickControls2: Use the newly-introduced qmlWarning instead of qmlInfo
qmlInfo will shortly be returning info-level messages (as the name
hints), rather than warning level messages.
Change-Id: I94123464b12b30a4ba085cfb7b606bc26df9b76e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/imports/calendar')
-rw-r--r-- | src/imports/calendar/qquickmonthgrid.cpp | 4 | ||||
-rw-r--r-- | src/imports/calendar/qquickweeknumbercolumn.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/calendar/qquickmonthgrid.cpp b/src/imports/calendar/qquickmonthgrid.cpp index 1b2315da..5eb0798c 100644 --- a/src/imports/calendar/qquickmonthgrid.cpp +++ b/src/imports/calendar/qquickmonthgrid.cpp @@ -240,7 +240,7 @@ void QQuickMonthGrid::setMonth(int month) { Q_D(QQuickMonthGrid); if (month < 0 || month > 11) { - qmlInfo(this) << "month " << month << " is out of range [0...11]"; + qmlWarning(this) << "month " << month << " is out of range [0...11]"; return; } d->model->setMonth(month + 1); @@ -264,7 +264,7 @@ void QQuickMonthGrid::setYear(int year) { Q_D(QQuickMonthGrid); if (year < -271820 || year > 275759) { - qmlInfo(this) << "year " << year << " is out of range [-271820...275759]"; + qmlWarning(this) << "year " << year << " is out of range [-271820...275759]"; return; } d->model->setYear(year); diff --git a/src/imports/calendar/qquickweeknumbercolumn.cpp b/src/imports/calendar/qquickweeknumbercolumn.cpp index 31992412..c1179879 100644 --- a/src/imports/calendar/qquickweeknumbercolumn.cpp +++ b/src/imports/calendar/qquickweeknumbercolumn.cpp @@ -144,7 +144,7 @@ void QQuickWeekNumberColumn::setMonth(int month) { Q_D(QQuickWeekNumberColumn); if (month < 0 || month > 11) { - qmlInfo(this) << "month " << month << " is out of range [0...11]"; + qmlWarning(this) << "month " << month << " is out of range [0...11]"; return; } d->model->setMonth(month + 1); @@ -168,7 +168,7 @@ void QQuickWeekNumberColumn::setYear(int year) { Q_D(QQuickWeekNumberColumn); if (year < -271820 || year > 275759) { - qmlInfo(this) << "year " << year << " is out of range [-271820...275759]"; + qmlWarning(this) << "year " << year << " is out of range [-271820...275759]"; return; } d->model->setYear(year); |