More clazy fixes
This commit is contained in:
parent
b91171e21f
commit
a4b456efb2
@ -42,7 +42,7 @@ QVariant EntryListModel::data(const QModelIndex &index, int role) const
|
|||||||
{
|
{
|
||||||
if (role == Updated || role == Created) {
|
if (role == Updated || role == Created) {
|
||||||
QDateTime updated;
|
QDateTime updated;
|
||||||
updated.setSecsSinceEpoch(QSqlQueryModel::data(createIndex(index.row(), role), 0).toInt());
|
updated.setSecsSinceEpoch(QSqlTableModel::data(createIndex(index.row(), role), 0).toInt());
|
||||||
return updated;
|
return updated;
|
||||||
}
|
}
|
||||||
return QSqlQueryModel::data(createIndex(index.row(), role), 0);
|
return QSqlQueryModel::data(createIndex(index.row(), role), 0);
|
||||||
|
@ -59,7 +59,7 @@ void FeedListModel::addFeed(QString url)
|
|||||||
QSqlRecord rec = record();
|
QSqlRecord rec = record();
|
||||||
rec.setValue(0, url);
|
rec.setValue(0, url);
|
||||||
rec.setValue(1, url);
|
rec.setValue(1, url);
|
||||||
rec.setValue(2, QStringLiteral(""));
|
rec.setValue(2, QLatin1String(""));
|
||||||
|
|
||||||
insertRecord(-1, rec);
|
insertRecord(-1, rec);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user