Browse Source

Treating the database as external file instead of as resource

Rafael Arce Nazario 9 years ago
parent
commit
84e620dd7b
3 changed files with 3 additions and 8 deletions
  1. 2
    2
      DVDInfo.pro
  2. 0
    5
      database.qrc
  3. 1
    1
      main.cpp

+ 2
- 2
DVDInfo.pro View File

23
     filemanip.h \
23
     filemanip.h \
24
     movie.h
24
     movie.h
25
 
25
 
26
-RESOURCES += \
27
-    database.qrc
26
+#RESOURCES += \
27
+#    database.qrc

+ 0
- 5
database.qrc View File

1
-<!DOCTYPE RCC><RCC version="1.0">
2
-<qresource>
3
-    <file>dvd_csv.txt</file>
4
-</qresource>
5
-</RCC>

+ 1
- 1
main.cpp View File

11
 int main(int argc, char *argv[])
11
 int main(int argc, char *argv[])
12
 {
12
 {
13
     QCoreApplication a(argc, argv);
13
     QCoreApplication a(argc, argv);
14
-    filemanip file(":/dvd_csv.txt") ;
14
+    filemanip file("dvd_csv.txt") ;
15
     string rating, year, genre, name, studio ;
15
     string rating, year, genre, name, studio ;
16
     string movieinfo ;
16
     string movieinfo ;
17
 
17