summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-14 13:20:24 +0200
committerwm4 <wm4@nowhere>2014-10-14 13:20:24 +0200
commitcb6be26181e104722c9cd3989af6812a239a0be8 (patch)
tree928b3f831384f77b9965a3a0934c88d0d881a4f3
parent95dda1050d1f364f6fc2695b13060ca82854bb14 (diff)
downloadmpv-cb6be26181e104722c9cd3989af6812a239a0be8.tar.bz2
mpv-cb6be26181e104722c9cd3989af6812a239a0be8.tar.xz
DOCS/client_api_examples: qtexample: remove debugging code
Forgotten.
-rw-r--r--DOCS/client_api_examples/qtexample.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/DOCS/client_api_examples/qtexample.cpp b/DOCS/client_api_examples/qtexample.cpp
index d7d114fbd7..b4ec6e6630 100644
--- a/DOCS/client_api_examples/qtexample.cpp
+++ b/DOCS/client_api_examples/qtexample.cpp
@@ -114,8 +114,7 @@ void MainWindow::handle_mpv_event(mpv_event *event)
{
if (prop->format == MPV_FORMAT_NODE) {
QVariant v = mpv::qt::node_to_variant((mpv_node *)prop->data);
- mpv::qt::node_builder x(v);
- QVariant v2 = mpv::qt::node_to_variant(x.node());
+ // Abuse JSON support for easily printing the mpv_node contents.
QJsonDocument d = QJsonDocument::fromVariant(v);
append_log("Change property " + QString(prop->name) + ":\n");
append_log(d.toJson().data());