| 109 | } |
| 110 | |
| 111 | bool Widget::beforeAddItems() |
| 112 | { |
| 113 | QString path = ui->lineEdit->text(); |
| 114 | bool isOk = QFile::exists(path) && QFileInfo(path).isDir(); |
| 115 | |
| 116 | if (isOk) { |
| 117 | clearListItems(); |
| 118 | ui->placeholder->hide(); |
| 119 | lw->show(); |
| 120 | } else { |
| 121 | statusBar->showMessage("Invalid folder path.", 2000); |
| 122 | } |
| 123 | |
| 124 | return isOk; |
| 125 | } |
| 126 | |
| 127 | void Widget::clearListItems() |
| 128 | { |
nothing calls this directly
no outgoing calls
no test coverage detected