Git: Avoid usage of deprecated QDateTime::fromTime_t

Change-Id: I37ce617990ee385e37261624d847a0aef757d283
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2018-09-21 01:58:59 +03:00
committed by Orgad Shaneh
parent f350c4d1d4
commit 6296e7bb38
3 changed files with 6 additions and 6 deletions

View File

@@ -115,8 +115,8 @@ void GerritPushDialog::initRemoteBranches()
continue;
const QString ref = entries.at(0).mid(remotesPrefix.size());
int refBranchIndex = ref.indexOf('/');
unsigned int timeT = entries.at(1).leftRef(entries.at(1).indexOf(' ')).toUInt();
BranchDate bd(ref.mid(refBranchIndex + 1), QDateTime::fromTime_t(timeT).date());
qint64 timeT = entries.at(1).leftRef(entries.at(1).indexOf(' ')).toLongLong();
BranchDate bd(ref.mid(refBranchIndex + 1), QDateTime::fromSecsSinceEpoch(timeT).date());
m_remoteBranches.insertMulti(ref.left(refBranchIndex), bd);
}
m_ui->remoteComboBox->updateRemotes(false);