equal
deleted
inserted
replaced
66 } |
66 } |
67 |
67 |
68 HsShortcutService *HsShortcutService::instance(QStateMachine *stateMachine) |
68 HsShortcutService *HsShortcutService::instance(QStateMachine *stateMachine) |
69 { |
69 { |
70 if (!mInstance && stateMachine) { |
70 if (!mInstance && stateMachine) { |
71 mInstance.reset(new HsShortcutService(stateMachine)); |
71 mInstance = new HsShortcutService(stateMachine); |
72 } |
72 } |
73 return mInstance.data(); |
73 return mInstance; |
74 } |
74 } |
75 |
75 |
76 HsShortcutService::~HsShortcutService() |
76 HsShortcutService::~HsShortcutService() |
77 { |
77 { |
78 } |
78 } |
92 : QObject(parent) |
92 : QObject(parent) |
93 { |
93 { |
94 mD.reset(new HsShortcutServicePrivate(stateMachine)); |
94 mD.reset(new HsShortcutServicePrivate(stateMachine)); |
95 } |
95 } |
96 |
96 |
97 QScopedPointer<HsShortcutService> HsShortcutService::mInstance(0); |
97 HsShortcutService *HsShortcutService::mInstance(0); |