X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdialogs%2Fabout.cpp;h=c4827962c59afda9891b62a99cd2268ae8c44234;hb=9ab0d1f7b53d4e10f6ee7abd0b02816eafac5f99;hp=8484e47b371062426620dd2d4e27befa8c7c2dc3;hpb=27e8df221014d1a8c7769866773e8dbb0486eea8;p=pulseview.git diff --git a/pv/dialogs/about.cpp b/pv/dialogs/about.cpp index 8484e47..c482796 100644 --- a/pv/dialogs/about.cpp +++ b/pv/dialogs/about.cpp @@ -18,7 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifdef ENABLE_DECODE #include +#endif #include @@ -40,9 +42,10 @@ About::About(QWidget *parent) : { struct sr_dev_driver **drivers; struct sr_input_format **inputs; - struct sr_output_format **outputs; +#ifdef ENABLE_DECODE struct srd_decoder *dec; +#endif QString s; @@ -79,16 +82,7 @@ About::About(QWidget *parent) : .arg(QString::fromUtf8(inputs[i]->description))); } - s.append("" + - tr("Supported output formats:") + - ""); - outputs = sr_output_list(); - for (int i = 0; outputs[i]; ++i) { - s.append(QString("%1%2") - .arg(QString::fromUtf8(outputs[i]->id)) - .arg(QString::fromUtf8(outputs[i]->description))); - } - +#ifdef ENABLE_DECODE s.append("" + tr("Supported protocol decoders:") + ""); @@ -98,6 +92,7 @@ About::About(QWidget *parent) : .arg(QString::fromUtf8(dec->id)) .arg(QString::fromUtf8(dec->longname))); } +#endif s.append("");