src/eric7/WebBrowser/Bookmarks/BookmarksImporters/OperaImporter.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
11 11
12 from PyQt6.QtCore import QCoreApplication, QDate, Qt 12 from PyQt6.QtCore import QCoreApplication, QDate, Qt
13 13
14 from .BookmarksImporter import BookmarksImporter 14 from .BookmarksImporter import BookmarksImporter
15 15
16 import UI.PixmapCache 16 from eric7.EricGui import EricPixmapCache
17 import Globals 17 from eric7 import Globals
18 18
19 19
20 def getImporterInfo(sourceId): 20 def getImporterInfo(sourceId):
21 """ 21 """
22 Module function to get information for the given source id. 22 Module function to get information for the given source id.
36 elif Globals.isMacPlatform(): 36 elif Globals.isMacPlatform():
37 standardDir = os.path.expanduser("~/Library/Opera") 37 standardDir = os.path.expanduser("~/Library/Opera")
38 else: 38 else:
39 standardDir = os.path.expanduser("~/.opera") 39 standardDir = os.path.expanduser("~/.opera")
40 return ( 40 return (
41 UI.PixmapCache.getPixmap("opera"), 41 EricPixmapCache.getPixmap("opera"),
42 "Opera", 42 "Opera",
43 "bookmarks.adr", 43 "bookmarks.adr",
44 QCoreApplication.translate( 44 QCoreApplication.translate(
45 "OperaImporter", 45 "OperaImporter",
46 """Opera stores its bookmarks in the <b>bookmarks.adr</b> """ 46 """Opera stores its bookmarks in the <b>bookmarks.adr</b> """

eric ide

mercurial