]> sigrok.org Git - pulseview.git/commitdiff
Tidied about box supported table layout
authorJoel Holdsworth <redacted>
Sun, 13 May 2012 18:25:25 +0000 (19:25 +0100)
committerJoel Holdsworth <redacted>
Mon, 3 Sep 2012 12:49:38 +0000 (13:49 +0100)
about.cpp

index e494e2ff22eb890be1c1ff10586d4f2d621e4398..f030054ec925f0b834cbfd626ae4a4a7281839fc 100644 (file)
--- a/about.cpp
+++ b/about.cpp
@@ -54,41 +54,49 @@ About::About(QWidget *parent) :
                                 .arg(tr("GNU GPL, version 2 or later"))
                                 .arg(QApplication::organizationDomain()));
 
+       s.append("<table>");
+
        /* Set up the supported field */
-       s.append("<b>" + tr("Supported hardware drivers:") + "</b><table>");
+       s.append("<tr><td colspan=\"2\"><b>" +
+               tr("Supported hardware drivers:") +
+               "</b></td></tr>");
        drivers = sr_driver_list();
        for (int i = 0; drivers[i]; ++i) {
                s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
                         .arg(QString(drivers[i]->name))
                         .arg(QString(drivers[i]->longname)));
        }
-       s.append("</table><p>");
 
-       s.append("<b>" + tr("Supported input formats:") + "</b><table>");
+       s.append("<tr><td colspan=\"2\"><b>" +
+               tr("Supported input formats:") +
+               "</b></td></tr>");
        inputs = sr_input_list();
        for (int i = 0; inputs[i]; ++i) {
                s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
                         .arg(QString(inputs[i]->id))
                         .arg(QString(inputs[i]->description)));
        }
-       s.append("</table><p>");
 
-       s.append("<b>" + tr("Supported output formats:") + "</b><table>");
+       s.append("<tr><td colspan=\"2\"><b>" +
+               tr("Supported output formats:") +
+               "</b></td></tr>");
        outputs = sr_output_list();
        for (int i = 0; outputs[i]; ++i) {
                s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
                        .arg(QString(outputs[i]->id))
                        .arg(QString(outputs[i]->description)));
        }
-       s.append("</table><p>");
 
-       s.append("<b>" + tr("Supported protocol decoders:") + "</b><table>");
+       s.append("<tr><td colspan=\"2\"><b>" +
+               tr("Supported protocol decoders:") +
+               "</b></td></tr>");
        for (l = srd_decoder_list(); l; l = l->next) {
                dec = (struct srd_decoder *)l->data;
                s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
                         .arg(QString(dec->id))
                         .arg(QString(dec->longname)));
        }
+
        s.append("</table>");
 
        supportedDoc.reset(new QTextDocument(this));