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

Method selectedTable

src/frontend/datasources/ImportSQLDatabaseWidget.cpp:184–191  ·  view source on GitHub ↗

! * in case the import from a table is selected, returns the currently selected database table. * returns empty string otherwise. */

Source from the content-addressed store, hash-verified

182 * returns empty string otherwise.
183 */
184QString ImportSQLDatabaseWidget::selectedTable() const {
185 if (ui.cbImportFrom->currentIndex() == 0) {
186 if (ui.lwTables->currentItem())
187 return ui.lwTables->currentItem()->text();
188 }
189
190 return {};
191}
192
193/*!
194 returns \c true if a working connections was selected and a table (or custom query) is provided and ready to be imported.

Callers 1

selectedObjectMethod · 0.80

Calls 3

currentItemMethod · 0.80
currentIndexMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected