diff options
Diffstat (limited to 'qutebrowser/misc/lineparser.py')
-rw-r--r-- | qutebrowser/misc/lineparser.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/qutebrowser/misc/lineparser.py b/qutebrowser/misc/lineparser.py index fee87354f..09e3c3af2 100644 --- a/qutebrowser/misc/lineparser.py +++ b/qutebrowser/misc/lineparser.py @@ -24,13 +24,12 @@ import os.path import contextlib from typing import Sequence -from PyQt5.QtCore import pyqtSlot, pyqtSignal, QObject - from qutebrowser.utils import log, utils, qtutils from qutebrowser.config import config +from qutebrowser.qt import QtCore -class BaseLineParser(QObject): +class BaseLineParser(QtCore.QObject): """A LineParser without any real data. @@ -44,7 +43,7 @@ class BaseLineParser(QObject): changed: Emitted when the history was changed. """ - changed = pyqtSignal() + changed = QtCore.pyqtSignal() def __init__(self, configdir, fname, *, binary=False, parent=None): """Constructor. @@ -218,7 +217,7 @@ class LimitLineParser(LineParser): configdir=self._configdir, fname=self._fname, limit=self._limit, binary=self._binary) - @pyqtSlot(str) + @QtCore.pyqtSlot(str) def _cleanup_file(self, option): """Delete the file if the limit was changed to 0.""" assert self._configfile is not None |