MCPcopy Create free account
hub / github.com/YACReader/yacreader / nameSetted

Method nameSetted

YACReaderLibrary/add_library_dialog.cpp:80–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void AddLibraryDialog::nameSetted(const QString &text)
81{
82 if (!text.isEmpty()) {
83 if (!path->text().isEmpty()) {
84 QFileInfo fi(path->text());
85 if (fi.isDir())
86 accept->setEnabled(true);
87 else
88 accept->setEnabled(false);
89 }
90 } else
91 accept->setEnabled(false);
92}
93
94void AddLibraryDialog::pathSetted(const QString &text)
95{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
textMethod · 0.80
isDirMethod · 0.45

Tested by

no test coverage detected