summaryrefslogtreecommitdiffstats
path: root/examples/notesmanagerplugin/notesmanager.cpp
diff options
context:
space:
mode:
authorEvan Nguyen <evan.nguyen@nokia.com>2010-10-26 15:17:54 +1000
committerEvan Nguyen <evan.nguyen@nokia.com>2010-10-26 15:17:54 +1000
commit376e1bdfdcaaf5508ce596307b78b21ef3cf0dad (patch)
treee1a63e5996875b511d5b1a1431db99823b7388d5 /examples/notesmanagerplugin/notesmanager.cpp
parent664f190cc626c615811d7f4fd7e75addad424999 (diff)
added SFW notes resource file
Diffstat (limited to 'examples/notesmanagerplugin/notesmanager.cpp')
-rw-r--r--examples/notesmanagerplugin/notesmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/notesmanagerplugin/notesmanager.cpp b/examples/notesmanagerplugin/notesmanager.cpp
index 0a6e1f2b3e..37f93417d9 100644
--- a/examples/notesmanagerplugin/notesmanager.cpp
+++ b/examples/notesmanagerplugin/notesmanager.cpp
@@ -39,7 +39,6 @@
****************************************************************************/
#include <QtCore>
-#include <QDebug>
#include "notesmanager.h"
@@ -51,7 +50,7 @@ NotesManager::NotesManager(QObject *parent)
bool NotesManager::init()
{
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
- db.setDatabaseName("notesmanager.db");
+ db.setDatabaseName(QCoreApplication::applicationDirPath() + "/notesmanager.db");
if (!db.open())
db.setDatabaseName(QDir::homePath() + "/notesmanager.db");