| 639 | } |
| 640 | |
| 641 | void AddRecentFile(rdcarray<rdcstr> &recentList, const rdcstr &file) |
| 642 | { |
| 643 | QDir dir(file); |
| 644 | QString path = dir.canonicalPath(); |
| 645 | |
| 646 | if(path.isEmpty()) |
| 647 | { |
| 648 | qWarning() << "Got empty path from " << QString(file); |
| 649 | return; |
| 650 | } |
| 651 | |
| 652 | if(recentList.contains(rdcstr(path))) |
| 653 | recentList.removeOne(path); |
| 654 | |
| 655 | recentList.push_back(path); |
| 656 | } |
| 657 | |
| 658 | ShaderProcessingTool::ShaderProcessingTool(const QVariant &var) |
| 659 | { |
no test coverage detected