Commit f3a5a1c0 authored by André Hoarau's avatar André Hoarau 🍆

add doc config

parent 606cab4c
outputdir = ./doc/
outputformats = HTML
sourcedirs = .
sources.fileextensions = "*.cpp *.qml"
headers.fileextensions = "*.h"
\ No newline at end of file
......@@ -21,6 +21,7 @@
#include "sqltablemodel.h"
SqlTableModel::SqlTableModel(QObject *parent)
: QSqlRelationalTableModel(parent)
{
......@@ -36,7 +37,12 @@ bool SqlTableModel::insertRecord(int row, const QSqlRecord &record)
return ok;
}
// Return last inserted rowid.
/*!
\fn int SqlTableModel::add(QVariantMap map)
Insert a new row in model's table using values from \a map. Returns
the id of the new row.
*/
int SqlTableModel::add(QVariantMap map)
{
if (tableName().isNull())
......@@ -54,7 +60,10 @@ int SqlTableModel::add(QVariantMap map)
return id;
}
// Return last inserted rowid.
/*!
\fn void SqlTableModel::update(int id, QVariantMap map)
Update row \a id using values from \a map.
*/
void SqlTableModel::update(int id, QVariantMap map)
{
if (id < 0)
......@@ -76,7 +85,11 @@ void SqlTableModel::update(int id, QVariantMap map)
debugQuery(query);
}
// Return last inserted rowid.
/*!
\fn int SqlTableModel::duplicate(int id)
Insert a new row in model's table duplicating values from row \a id. Returns
the id of the new row.
*/
int SqlTableModel::duplicate(int id)
{
if (tableName().isNull())
......
......@@ -25,6 +25,9 @@
#include "core_global.h"
/*!
\class SqlTableModel
*/
class CORESHARED_EXPORT SqlTableModel : public QSqlRelationalTableModel
{
Q_OBJECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment