7191:960850ec284c | 7192:a22eee00b052 |
---|---|
8 """ | 8 """ |
9 | 9 |
10 from __future__ import unicode_literals | 10 from __future__ import unicode_literals |
11 | 11 |
12 from PyQt5.QtCore import QObject | 12 from PyQt5.QtCore import QObject |
13 from PyQt5.QtWidgets import QMenu | |
13 | 14 |
14 | 15 |
15 class HgExtensionProjectHelper(QObject): | 16 class HgExtensionProjectHelper(QObject): |
16 """ | 17 """ |
17 Class implementing the project helper base for Mercurial extension | 18 Class implementing the project helper base for Mercurial extension |
69 @return populated menu (QMenu) | 70 @return populated menu (QMenu) |
70 @exception NotImplementedError raised if the class has not been | 71 @exception NotImplementedError raised if the class has not been |
71 reimplemented | 72 reimplemented |
72 """ | 73 """ |
73 raise NotImplementedError | 74 raise NotImplementedError |
75 | |
76 return QMenu() | |
74 | 77 |
75 def menuTitle(self): | 78 def menuTitle(self): |
76 """ | 79 """ |
77 Public method to get the menu title. | 80 Public method to get the menu title. |
78 | 81 |
81 @return title of the menu (string) | 84 @return title of the menu (string) |
82 @exception NotImplementedError raised if the class has not been | 85 @exception NotImplementedError raised if the class has not been |
83 reimplemented | 86 reimplemented |
84 """ | 87 """ |
85 raise NotImplementedError | 88 raise NotImplementedError |
89 | |
90 return "" | |
86 | 91 |
87 def shutdown(self): | 92 def shutdown(self): |
88 """ | 93 """ |
89 Public method to perform shutdown actions. | 94 Public method to perform shutdown actions. |
90 | 95 |