diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-07-20 14:40:41 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-07-20 14:40:41 +0200 |
commit | a287cd28623e8f25ead557b069a10022fae68747 (patch) | |
tree | b58e8fa729f96f4a8304f0cf57e9a8a3f3963ede /src/gui/tikzscene.cpp | |
parent | 02986e09367f74cfca6fe391db22cffcd0affe68 (diff) |
automatically resize source pane when jumping and parsing
Diffstat (limited to 'src/gui/tikzscene.cpp')
-rw-r--r-- | src/gui/tikzscene.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/tikzscene.cpp b/src/gui/tikzscene.cpp index 50ad246..001ab40 100644 --- a/src/gui/tikzscene.cpp +++ b/src/gui/tikzscene.cpp @@ -670,7 +670,7 @@ void TikzScene::deselectAll() selectedItems().clear(); } -void TikzScene::parseTikz(QString tikz) +bool TikzScene::parseTikz(QString tikz) { Graph *newGraph = new Graph(this); TikzAssembler ass(newGraph); @@ -678,6 +678,10 @@ void TikzScene::parseTikz(QString tikz) ReplaceGraphCommand *cmd = new ReplaceGraphCommand(this, graph(), newGraph); tikzDocument()->undoStack()->push(cmd); setEnabled(true); + views()[0]->setFocus(); + return true; + } else { + return false; } } |