Skip to content

Commit

Permalink
Changed some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
logicxd committed Oct 29, 2016
1 parent 5bc79d7 commit a5f802e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 2 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
#include <QDebug>
#include <dbmanager.h>

// Set valid db path before first run
// Change to any path you wish
static const QString path = "example.db";

int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);

DbManager db(path);

if (db.isOpen())
{
db.createTable();
db.createTable(); // Creates a table if it doens't exist. Otherwise, it will use existing table.
db.addPerson("A");
db.addPerson("B");
db.addPerson("C");
Expand Down
10 changes: 6 additions & 4 deletions sqlite_qt.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.1.0, 2016-10-29T01:00:44. -->
<!-- Written by QtCreator 4.1.0, 2016-10-29T01:05:53. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down Expand Up @@ -54,7 +54,9 @@
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap"/>
<valuemap type="QVariantMap">
<valuelist type="QVariantList" key="ClangStaticAnalyzer.SuppressedDiagnostics"/>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
Expand Down Expand Up @@ -303,8 +305,8 @@
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">sqlite_qt</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/Users/aungmoe/Codes/Backend/sql2/sqlite_qt.pro</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">sqlite_qt2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/Users/aungmoe/Codes/Backend/sql_with_qt/sqlite_qt.pro</value>
<value type="bool" key="QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath">true</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">sqlite_qt.pro</value>
Expand Down

0 comments on commit a5f802e

Please sign in to comment.