Update README [skip ci]

This commit is contained in:
Hamed Masafi 2021-12-13 18:37:35 +03:30 committed by GitHub
parent 3f9005a1ca
commit a8f25afb9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@
### Create table ### Create table
#### sampletable.h #### sampletable.h
``` ```cpp
#ifndef SAMPLETABLE_H #ifndef SAMPLETABLE_H
#define SAMPLETABLE_H #define SAMPLETABLE_H
@ -60,7 +60,7 @@ Q_SIGNALS:
``` ```
#### sampletable.cpp: #### sampletable.cpp:
``` ```cpp
#include "sampletable.h" #include "sampletable.h"
SampleTable::SampleTable(QObject *parent) : Nut::Table(parent) SampleTable::SampleTable(QObject *parent) : Nut::Table(parent)
@ -104,7 +104,7 @@ void SampleTable::setName(QString name)
### Create database ### Create database
#### sampledatabase.h #### sampledatabase.h
``` ```cpp
#ifndef SAMPLEDATABASE_H #ifndef SAMPLEDATABASE_H
#define SAMPLEDATABASE_H #define SAMPLEDATABASE_H
@ -125,7 +125,7 @@ public:
``` ```
sampledatabase.cpp sampledatabase.cpp
``` ```cpp
#include "sampledatabase.h" #include "sampledatabase.h"
#include "sampletable.h" #include "sampletable.h"
@ -138,7 +138,7 @@ SampleDataBase::SampleDataBase() : Nut::Database()
``` ```
#### Sample codes: #### Sample codes:
``` ```cpp
qRegisterMetaType<SampleTable*>(); qRegisterMetaType<SampleTable*>();
qRegisterMetaType<SampleDataBase*>(); qRegisterMetaType<SampleDataBase*>();