Update README [skip ci]
This commit is contained in:
parent
3f9005a1ca
commit
a8f25afb9f
10
README.md
10
README.md
|
|
@ -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*>();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue