Skip to content

Commit

Permalink
Merge pull request #3544 from ghtmtt/processing_script_font
Browse files Browse the repository at this point in the history
[processing] fix button for font size
  • Loading branch information
volaya authored Oct 3, 2016
2 parents 430694b + 8ab8c7b commit a6bb8a9
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions python/plugins/processing/gui/ScriptEditorDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def __init__(self, algType, alg):
self.btnPaste.clicked.connect(self.editor.paste)
self.btnUndo.clicked.connect(self.editor.undo)
self.btnRedo.clicked.connect(self.editor.redo)
self.btnIncreaseFont.clicked.connect(self.increaseFontSize)
self.btnDecreaseFont.clicked.connect(self.decreaseFontSize)
self.btnIncreaseFont.clicked.connect(self.editor.zoomIn)
self.btnDecreaseFont.clicked.connect(self.editor.zoomOut)
self.editor.textChanged.connect(lambda: self.setHasChanged(True))

self.alg = alg
Expand Down Expand Up @@ -138,15 +138,6 @@ def __init__(self, algType, alg):

self.editor.setLexerType(self.algType)

def increaseFontSize(self):
font = self.editor.defaultFont
self.editor.setFonts(font.pointSize() + 1)
self.editor.initLexer()

def decreaseFontSize(self):
font = self.editor.defaultFont
self.editor.setFonts(font.pointSize() - 1)
self.editor.initLexer()

def showSnippets(self, evt):
popupmenu = QMenu()
Expand Down

0 comments on commit a6bb8a9

Please sign in to comment.