MCPcopy Create free account
hub / github.com/KDE/labplot / checkOkButton

Method checkOkButton

src/frontend/datasources/ImportDatasetDialog.cpp:84–87  ·  view source on GitHub ↗

* @brief Checks whether the OK button of the dialog can be pressed or not */

Source from the content-addressed store, hash-verified

82 * @brief Checks whether the OK button of the dialog can be pressed or not
83 */
84void ImportDatasetDialog::checkOkButton() {
85 bool enable = (!m_importDatasetWidget->getSelectedDataset().isEmpty());
86 okButton->setEnabled(enable);
87}
88
89bool ImportDatasetDialog::importTo(QStatusBar* statusBar) const {
90 auto* progressBar = new QProgressBar();

Callers

nothing calls this directly

Calls 3

getSelectedDatasetMethod · 0.80
isEmptyMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected