| 1069 | } |
| 1070 | |
| 1071 | File *DiskUsage::getCurrentFile() |
| 1072 | { |
| 1073 | File *file = nullptr; |
| 1074 | |
| 1075 | switch (activeView) { |
| 1076 | case VIEW_LINES: |
| 1077 | file = lineView->getCurrentFile(); |
| 1078 | break; |
| 1079 | case VIEW_DETAILED: |
| 1080 | file = listView->getCurrentFile(); |
| 1081 | break; |
| 1082 | case VIEW_FILELIGHT: |
| 1083 | file = filelightView->getCurrentFile(); |
| 1084 | break; |
| 1085 | } |
| 1086 | |
| 1087 | return file; |
| 1088 | } |
| 1089 | |
| 1090 | bool DiskUsage::event(QEvent *e) |
| 1091 | { |
nothing calls this directly
no outgoing calls
no test coverage detected