Skip to content

Commit

Permalink
Avoid qml connection in c++
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed May 6, 2016
1 parent 928f649 commit 8975041
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.cpp
Expand Up @@ -154,7 +154,6 @@ int main(int argc, char *argv[])
util.setTerm(&term);
util.setRenderer(tr);

QObject::connect(&term,SIGNAL(displayBufferChanged()),win,SLOT(displayBufferChanged()));
QObject::connect(view.engine(),SIGNAL(quit()),&app,SLOT(quit()));

if (!app.arguments().contains("-nofs")) {
Expand Down
5 changes: 5 additions & 0 deletions qml/Main.qml
Expand Up @@ -380,6 +380,11 @@ Item {
}
}

Connections {
target: term
onDisplayBufferChanged: window.displayBufferChanged()
}

function vkbKeypress(key,modifiers) {
wakeVKB();
term.keyPress(key,modifiers);
Expand Down

0 comments on commit 8975041

Please sign in to comment.