From 1a4028ca925e2130b1f276e10562e25e5d02fdaf Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 23 Jul 2015 23:06:37 +0800 Subject: [PATCH] gui: better log lookandfeel --- artiq/gui/log.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/artiq/gui/log.py b/artiq/gui/log.py index 0c6c7cb22..7c396ddad 100644 --- a/artiq/gui/log.py +++ b/artiq/gui/log.py @@ -1,6 +1,6 @@ import asyncio -from quamash import QtGui +from quamash import QtGui, QtCore from pyqtgraph import dockarea from artiq.protocols.sync_struct import Subscriber @@ -25,6 +25,10 @@ class LogDock(dockarea.Dock): self.log.setSelectionMode(QtGui.QAbstractItemView.NoSelection) self.log.horizontalHeader().setResizeMode( QtGui.QHeaderView.ResizeToContents) + self.log.setHorizontalScrollMode( + QtGui.QAbstractItemView.ScrollPerPixel) + self.log.setShowGrid(False) + self.log.setTextElideMode(QtCore.Qt.ElideNone) self.addWidget(self.log) @asyncio.coroutine