8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from PyQt5.QtCore import pyqtSlot, pyqtSignal, Qt |
12 from PyQt5.QtCore import pyqtSlot, pyqtSignal, Qt |
13 from PyQt5.QtWidgets import QToolButton |
13 |
|
14 from E5Gui.E5ToolButton import E5ToolButton |
14 |
15 |
15 import UI.PixmapCache |
16 import UI.PixmapCache |
16 |
17 |
17 |
18 |
18 class ReloadStopButton(QToolButton): |
19 class ReloadStopButton(E5ToolButton): |
19 """ |
20 """ |
20 Class implementing a button alternating between reload and stop. |
21 Class implementing a button alternating between reload and stop. |
21 |
22 |
22 @signal reloadClicked() emitted to initiate a reload action |
23 @signal reloadClicked() emitted to initiate a reload action |
23 @signal stopClicked() emitted to initiate a stop action |
24 @signal stopClicked() emitted to initiate a stop action |