Skip to content

Commit

Permalink
[processing] fix button for font size
Browse files Browse the repository at this point in the history
  • Loading branch information
ghtmtt committed Sep 29, 2016
1 parent ae76aa6 commit 8ab8c7b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions python/plugins/processing/gui/ScriptEditorDialog.py
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 8ab8c7b

Please sign in to comment.