Skip to content
Permalink
Browse files

[processing] Properly style the history dialog's python command string

  • Loading branch information
nirvn committed Mar 29, 2021
1 parent 705259e commit fb2240ecac2417cd1aab9a52aec015355e19cbd3
Showing with 18 additions and 5 deletions.
  1. +9 −0 python/plugins/processing/gui/HistoryDialog.py
  2. +9 −5 python/plugins/processing/ui/DlgHistory.ui
@@ -30,6 +30,8 @@
from qgis.PyQt.QtCore import Qt, QCoreApplication
from qgis.PyQt.QtWidgets import QAction, QPushButton, QDialogButtonBox, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.Qsci import QsciScintilla

from processing.gui import TestTools
from processing.core.ProcessingLog import ProcessingLog, LOG_SEPARATOR

@@ -49,6 +51,13 @@ def __init__(self):

QgsGui.instance().enableAutoGeometryRestore(self)

self.text.setReadOnly(True)
self.text.setCaretLineVisible(False)
self.text.setLineNumbersVisible(False) # NO linenumbers for the input line
self.text.setFoldingVisible(False)
self.text.setEdgeMode(QsciScintilla.EdgeNone)
self.text.setWrapMode(QsciScintilla.SC_WRAP_WORD)

self.groupIcon = QgsApplication.getThemeIcon('mIconFolder.svg')

self.keyIcon = self.style().standardIcon(QStyle.SP_FileIcon)
@@ -35,11 +35,7 @@
</property>
</column>
</widget>
<widget class="QTextEdit" name="text">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QgsCodeEditorPython" name="text" native="true"/>
</widget>
</item>
<item>
@@ -54,6 +50,14 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsCodeEditorPython</class>
<extends>QWidget</extends>
<header>qgscodeeditorpython.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>

0 comments on commit fb2240e

Please sign in to comment.