equal
deleted
inserted
replaced
373 // characters in the file path |
373 // characters in the file path |
374 mSelectedFile.replace("/", "\\"); |
374 mSelectedFile.replace("/", "\\"); |
375 |
375 |
376 // update text to ui |
376 // update text to ui |
377 QFileInfo fileInfo(mSelectedFile); |
377 QFileInfo fileInfo(mSelectedFile); |
378 // use only 20 characters to fit text on screen |
378 // use only 16 characters to fit text on screen |
379 // since otherwise qt will panic with bad alloc |
379 // since otherwise qt will panic with bad alloc |
380 mSelectedFileLabel->setText(fileInfo.fileName().left(20)); |
380 mSelectedFileLabel->setText(fileInfo.fileName().left(16)); |
381 |
381 |
382 // resolve and init file for rendering |
382 // resolve and init file for rendering |
383 int err = mEngine->initFile(mSelectedFile); |
383 int err = mEngine->initFile(mSelectedFile); |
384 if (err != 0) |
384 if (err != 0) |
385 { |
385 { |