QHash<int, QByteArray> NewsSqlModel::roleNames() const
{
QHash<int, QByteArray> roles;
roles[ObjectRole] = "object";
return roles;
}
duplicate symbol __ZN12NewsSqlModel7refreshEv in:
mainwindow.o
moc_newssqlmodel.o
duplicate symbol __ZN12NewsSqlModelC2EP7QObject in:
mainwindow.o
moc_newssqlmodel.o
duplicate symbol __ZN12NewsSqlModelC1EP7QObject in:
mainwindow.o
moc_newssqlmodel.o
duplicate symbol __ZNK12NewsSqlModel4dataERK11QModelIndexi in:
mainwindow.o
moc_newssqlmodel.o
duplicate symbol __ZN12NewsSqlModel10SQL_SELECTE in:
mainwindow.o
moc_newssqlmodel.o
duplicate symbol __ZN12NewsSqlModel12COLUMN_NAMESE in:
mainwindow.o
moc_newssqlmodel.o
ld: 6 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)