88 Public method to set the tool button menu. |
88 Public method to set the tool button menu. |
89 |
89 |
90 @param menu reference to the tool button menu |
90 @param menu reference to the tool button menu |
91 @type QMenu |
91 @type QMenu |
92 """ |
92 """ |
93 assert menu is not None |
93 if menu is not None: |
94 |
94 if self.__menu: |
95 if self.__menu: |
95 self.__menu.aboutToHide.disconnect(self.__menuAboutToHide) |
96 self.__menu.aboutToHide.disconnect(self.__menuAboutToHide) |
96 |
97 |
97 self.__menu = menu |
98 self.__menu = menu |
98 self.__menu.aboutToHide.connect(self.__menuAboutToHide) |
99 self.__menu.aboutToHide.connect(self.__menuAboutToHide) |
|
100 |
99 |
101 def showMenuInside(self): |
100 def showMenuInside(self): |
102 """ |
101 """ |
103 Public method to check, if the menu edge shall be aligned with |
102 Public method to check, if the menu edge shall be aligned with |
104 the button. |
103 the button. |