0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

Remove abs path

This commit is contained in:
Sergey Yagovtsev 2016-06-10 23:45:21 +03:00
parent 6d94573403
commit 5f96b6403c

View File

@ -10,8 +10,14 @@ int main(int argc, char **argv)
//QFileSystemModel *model = new QFileSystemModel; //QFileSystemModel *model = new QFileSystemModel;
//model->setRootPath(QDir::currentPath()); //model->setRootPath(QDir::currentPath());
const char* filename = 0;
if(argc > 1 && argv[1]){
filename = argv[1];
}else{
return 255;
}
QFile file("/home/yse/projects/easy_profiler/bin/test.prof"); QFile file(filename);
file.open(QIODevice::ReadOnly); file.open(QIODevice::ReadOnly);
TreeModel model(file.readAll()); TreeModel model(file.readAll());
file.close(); file.close();