MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / changeEvent

Method changeEvent

src/bitmessageqt/__init__.py:1556–1574  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

1554 pass
1555
1556 def changeEvent(self, event):
1557 if event.type() == QtCore.QEvent.LanguageChange:
1558 self.ui.retranslateUi(self)
1559 self.init_inbox_popup_menu(False)
1560 self.init_identities_popup_menu(False)
1561 self.init_chan_popup_menu(False)
1562 self.init_addressbook_popup_menu(False)
1563 self.init_subscriptions_popup_menu(False)
1564 self.init_sent_popup_menu(False)
1565 self.ui.blackwhitelist.init_blacklist_popup_menu(False)
1566 if event.type() == QtCore.QEvent.WindowStateChange:
1567 if self.windowState() & QtCore.Qt.WindowMinimized:
1568 if BMConfigParser().getboolean('bitmessagesettings', 'minimizetotray') and not 'darwin' in sys.platform:
1569 QtCore.QTimer.singleShot(0, self.appIndicatorHide)
1570 elif event.oldState() & QtCore.Qt.WindowMinimized:
1571 # The window state has just been changed to
1572 # Normal/Maximised/FullScreen
1573 pass
1574 # QtGui.QWidget.changeEvent(self, event)
1575
1576 def __icon_activated(self, reason):
1577 if reason == QtGui.QSystemTrayIcon.Trigger:

Callers

nothing calls this directly

Calls 9

init_inbox_popup_menuMethod · 0.95
init_chan_popup_menuMethod · 0.95
init_sent_popup_menuMethod · 0.95
BMConfigParserClass · 0.90
retranslateUiMethod · 0.45

Tested by

no test coverage detected