| 53 | } |
| 54 | |
| 55 | QVariant AddCacheEntry::value() const |
| 56 | { |
| 57 | QWidget* w = this->StackedWidget->currentWidget(); |
| 58 | if (qobject_cast<QLineEdit*>(w)) { |
| 59 | return static_cast<QLineEdit*>(w)->text(); |
| 60 | } |
| 61 | if (qobject_cast<QCheckBox*>(w)) { |
| 62 | return static_cast<QCheckBox*>(w)->isChecked(); |
| 63 | } |
| 64 | return QVariant(); |
| 65 | } |
| 66 | |
| 67 | QString AddCacheEntry::description() const |
| 68 | { |
no outgoing calls