forked from qt-creator/qt-creator
Git: Avoid usage of deprecated QDateTime::fromTime_t
Change-Id: I37ce617990ee385e37261624d847a0aef757d283 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
f350c4d1d4
commit
6296e7bb38
@@ -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);
|
||||
|
Reference in New Issue
Block a user