! * in case the import from a table is selected, returns the currently selected database table. * returns empty string otherwise. */
| 182 | * returns empty string otherwise. |
| 183 | */ |
| 184 | QString 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. |
no test coverage detected