summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorJohn Layt <jlayt@kde.org>2012-01-16 20:20:39 +0000
committerQt by Nokia <qt-info@nokia.com>2012-01-31 04:02:25 +0100
commit35b96c0d3d45ac991528099f4effa708bbb170e8 (patch)
tree5344cca7ff27d9e5c84c1272fbface74ac0fc1e8 /src/network
parent21b5d0e2c3dfcafcca098d285498ffc9fbbf0498 (diff)
QDateTime: Deprecate setYMD()
Change-Id: I077332df554fb750666d51486c97724411276679 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qftp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qftp.cpp b/src/network/access/qftp.cpp
index de3b07750a..c7ad810084 100644
--- a/src/network/access/qftp.cpp
+++ b/src/network/access/qftp.cpp
@@ -472,7 +472,7 @@ static void _q_fixupDateTime(QDateTime *dateTime)
const int futureTolerance = 86400;
if (dateTime->secsTo(QDateTime::currentDateTime()) < -futureTolerance) {
QDate d = dateTime->date();
- d.setYMD(d.year() - 1, d.month(), d.day());
+ d.setDate(d.year() - 1, d.month(), d.day());
dateTime->setDate(d);
}
}