diff -r 8467f7d4b567 -r bb1c79bf4f33 E5Gui/E5PassivePopup.py --- a/E5Gui/E5PassivePopup.py Fri Feb 09 18:53:08 2018 +0100 +++ b/E5Gui/E5PassivePopup.py Fri Feb 09 18:58:21 2018 +0100 @@ -47,6 +47,8 @@ self.setLineWidth(2) self.__hideTimer.timeout.connect(self.hide) self.clicked.connect(self.hide) + + self.__customData = {} # dictionary to store some custom data def setView(self, child): """ @@ -210,6 +212,28 @@ x = r.left() return QPoint(x, y) + + def setCustomData(self, key, data): + """ + Public method to set some custom data. + + @param key key for the custom data + @type str + @param data data to be stored + @type any + """ + self.__customData[key] = data + + def getCustomData(self, key): + """ + Public method to get some custom data. + + @param key key for the custom data + @type str + @return stored data + @rtype any + """ + return self.__customData[key] DEFAULT_POPUP_TYPE = E5PassivePopup.Boxed DEFAULT_POPUP_TIME = 6 * 1000