5 |
5 |
6 """ |
6 """ |
7 Module implementing the URL bar widget. |
7 Module implementing the URL bar widget. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtCore import pyqtSlot, Qt, QUrl, QDateTime, QTimer, QPoint |
10 from PyQt6.QtCore import QDateTime, QPoint, Qt, QTimer, QUrl, pyqtSlot |
11 from PyQt6.QtGui import QColor, QPalette, QIcon |
11 from PyQt6.QtGui import QColor, QIcon, QPalette |
12 from PyQt6.QtWidgets import QDialog, QApplication, QLineEdit |
|
13 from PyQt6.QtWebEngineCore import QWebEnginePage |
12 from PyQt6.QtWebEngineCore import QWebEnginePage |
|
13 from PyQt6.QtWidgets import QApplication, QDialog, QLineEdit |
14 |
14 |
15 try: |
15 try: |
16 from PyQt6.QtNetwork import QSslCertificate # __IGNORE_EXCEPTION__ |
16 from PyQt6.QtNetwork import QSslCertificate # __IGNORE_EXCEPTION__ |
17 except ImportError: |
17 except ImportError: |
18 QSslCertificate = None # __IGNORE_WARNING__ |
18 QSslCertificate = None # __IGNORE_WARNING__ |
19 |
19 |
|
20 from eric7 import Preferences, Utilities |
|
21 from eric7.EricGui import EricPixmapCache |
20 from eric7.EricWidgets.EricLineEdit import EricClearableLineEdit, EricLineEditSide |
22 from eric7.EricWidgets.EricLineEdit import EricClearableLineEdit, EricLineEditSide |
21 |
23 from eric7.WebBrowser.SafeBrowsing.SafeBrowsingLabel import SafeBrowsingLabel |
22 from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow |
24 from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow |
23 |
|
24 from eric7.WebBrowser.SafeBrowsing.SafeBrowsingLabel import SafeBrowsingLabel |
|
25 |
25 |
26 from .FavIconLabel import FavIconLabel |
26 from .FavIconLabel import FavIconLabel |
27 from .SslLabel import SslLabel |
27 from .SslLabel import SslLabel |
28 |
|
29 from eric7.EricGui import EricPixmapCache |
|
30 from eric7 import Preferences, Utilities |
|
31 |
28 |
32 |
29 |
33 class UrlBar(EricClearableLineEdit): |
30 class UrlBar(EricClearableLineEdit): |
34 """ |
31 """ |
35 Class implementing a line edit for entering URLs. |
32 Class implementing a line edit for entering URLs. |