MCPcopy Create free account
hub / github.com/MrBeanCpp/Dr-Folder / beforeAddItems

Method beforeAddItems

widget.cpp:111–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111bool 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
127void Widget::clearListItems()
128{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected