From cda758ef53e2777d16ffd5b461f0367b5d0352d1 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Thu, 22 Feb 2024 16:55:39 +0800 Subject: [PATCH] docs: fix waveform imports --- artiq/dashboard/waveform.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/artiq/dashboard/waveform.py b/artiq/dashboard/waveform.py index cd8529e39..45d04d9cc 100644 --- a/artiq/dashboard/waveform.py +++ b/artiq/dashboard/waveform.py @@ -6,7 +6,6 @@ import itertools import math from PyQt5 import QtCore, QtWidgets, QtGui -from PyQt5.QtCore import Qt import pyqtgraph as pg import numpy as np @@ -672,7 +671,7 @@ class Model(DictSyncTreeSepModel): class _AddChannelDialog(QtWidgets.QDialog): def __init__(self, parent, model): QtWidgets.QDialog.__init__(self, parent=parent) - self.setContextMenuPolicy(Qt.ActionsContextMenu) + self.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu) self.setWindowTitle("Add channels") layout = QtWidgets.QVBoxLayout()