~saruneko/umedia/master

« back to all changes in this revision

Viewing changes to umediaviewer.cpp

  • Committer: Diego Sarmentero
  • Date: 2012-12-25 11:58:28 UTC
  • Revision ID: git-v1:474b5516ccd8471c97dacbc2e3848dc8664aaf0c
adding folders recursively

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    this->setMainQmlFile(QLatin1String("qml/UMedia/main.qml"));
13
13
    this->showExpanded();
14
14
 
 
15
    QStringList list;
15
16
    if(argc > 1){
16
17
        this->path = argv[1];
 
18
        list << this->path;
17
19
    }
18
20
 
19
21
    this->root = this->rootObject();
20
22
    this->songs = new Songs(this->root);
21
 
    this->songs->load_songs(this->path);
 
23
    this->songs->load_songs(list);
22
24
 
23
25
    // Set qml/c++ properties
24
26
    this->rootContext()->setContextProperty("songs", this->songs);