| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #include "GeneralUIExporterOptions.h" | ||||
| 2 | |||||
| 3 | #include <QKeySequence> | ||||
| 4 | |||||
| 5 | #define LOGGER_NAME "UI Exporter Options" | ||||
| 6 | |||||
| 7 | using namespace CLO3D; | ||||
| 8 | |||||
| 9 | ✗ | void GeneralUIExporterOptions::read(const QSettings* settings) { | |||
| 10 | ✗ | BaseUIExporterOptions::read(settings); | |||
| 11 | ✗ | setShortcut(settings->value(Keys::SHORTCUT, Defaults::SHORTCUT).value<QKeySequence>()); | |||
| 12 | ✗ | setPickMyMouse(settings->value(Keys::PICK_BY_MOUSE, Defaults::PICK_BY_MOUSE).toBool()); | |||
| 13 | ✗ | } | |||
| 14 | |||||
| 15 | ✗ | void GeneralUIExporterOptions::write(QSettings* settings) { | |||
| 16 | ✗ | BaseUIExporterOptions::write(settings); | |||
| 17 | ✗ | settings->setValue(Keys::SHORTCUT, shortcut_); | |||
| 18 | ✗ | settings->setValue(Keys::PICK_BY_MOUSE, pickByMouse_); | |||
| 19 | ✗ | } | |||
| 20 | |||||
| 21 | ✗ | QKeySequence GeneralUIExporterOptions::getShortcut() const { | |||
| 22 | ✗ | return shortcut_; | |||
| 23 | } | ||||
| 24 | |||||
| 25 | ✗ | bool GeneralUIExporterOptions::getPickMyMouse() const { | |||
| 26 | ✗ | return pickByMouse_; | |||
| 27 | } | ||||
| 28 | |||||
| 29 | ✗ | void GeneralUIExporterOptions::setShortcut(const QKeySequence &shortcut) { | |||
| 30 | ✗ | shortcut_ = shortcut; | |||
| 31 | ✗ | shortcutHandler_->setShortcut(shortcut_); | |||
| 32 | ✗ | } | |||
| 33 | |||||
| 34 | ✗ | void GeneralUIExporterOptions::setPickMyMouse(bool pickByMouse) { | |||
| 35 | ✗ | pickByMouse_ = pickByMouse; | |||
| 36 | ✗ | } | |||
| 37 | |||||
| 38 | ✗ | void GeneralUIExporterOptions::setShortcutHandler(BaseNativeShortcutHandler* shortcutHandler) { | |||
| 39 | ✗ | shortcutHandler_ = shortcutHandler; | |||
| 40 | ✗ | } | |||
| 41 |