9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from PyQt5.QtCore import pyqtSlot, pyqtSignal |
12 from PyQt5.QtCore import pyqtSlot, pyqtSignal |
13 from PyQt5.QtNetwork import QNetworkConfigurationManager |
13 from PyQt5.QtNetwork import QNetworkConfigurationManager |
14 |
14 from PyQt5.QtWidgets import QLabel |
15 from E5Gui.E5ClickableLabel import E5ClickableLabel |
|
16 |
15 |
17 import UI.PixmapCache |
16 import UI.PixmapCache |
18 |
17 |
19 |
18 |
20 class E5NetworkIcon(E5ClickableLabel): |
19 class E5NetworkIcon(QLabel): |
21 """ |
20 """ |
22 Class implementing a statusbar icon tracking the network status. |
21 Class implementing a statusbar icon tracking the network status. |
23 |
22 |
24 @signal onlineStateChanged(online) emitted to indicate a change of the |
23 @signal onlineStateChanged(online) emitted to indicate a change of the |
25 network state |
24 network state |