blob: df52dcce76fd85c1cac21f196c3211a215055312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "board.h"
#include "action.h"
Action::Action(Board *board) :
QObject(board), _board(board)
{
}
void Action::handleDatabaseError(const char *what, const QSqlError &err)
{
QString message = QString("Database error while %1: %2").arg(what).arg(err.text());
emit error(this, message);
}
void Action::handleDatabaseError(const char *what, const QSqlQuery &query)
{
handleDatabaseError(what, query.lastError());
}
|