]> sigrok.org Git - pulseview.git/commitdiff
about: Show the list of supported output formats.
authorUwe Hermann <redacted>
Sat, 25 Jul 2015 17:43:42 +0000 (19:43 +0200)
committerUwe Hermann <redacted>
Sat, 25 Jul 2015 17:43:42 +0000 (19:43 +0200)
PulseView now officially supports output formats, so list them too.

pv/dialogs/about.cpp

index 693472ee92c4052b7210f22791bd40c212b9a044..28ba92f2cb48d3fdabb02fd85169b605ed6c2752 100644 (file)
@@ -76,6 +76,15 @@ About::About(shared_ptr<Context> context, QWidget *parent) :
                         .arg(QString::fromUtf8(entry.second->description().c_str())));
        }
 
+       s.append("<tr><td colspan=\"2\"><b>" +
+               tr("Supported output formats:") +
+               "</b></td></tr>");
+       for (auto entry : context->output_formats()) {
+               s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
+                        .arg(QString::fromUtf8(entry.first.c_str()))
+                        .arg(QString::fromUtf8(entry.second->description().c_str())));
+       }
+
 #ifdef ENABLE_DECODE
        s.append("<tr><td colspan=\"2\"><b>" +
                tr("Supported protocol decoders:") +