]> sigrok.org Git - pulseview.git/blobdiff - pv/dialogs/about.cpp
Build fixes for Qt5 Windows/mingw/MXE support.
[pulseview.git] / pv / dialogs / about.cpp
index 20a02993b59cafa1360ea227e7f0de032b9c241f..dbe7d9b809a43f76821e7314950b9d346f5f83db 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifdef ENABLE_DECODE
@@ -49,10 +48,10 @@ About::About(shared_ptr<Context> context, QWidget *parent) :
 
        /* Setup the version field */
        ui->versionInfo->setText(tr("%1 %2<br />%3<br /><a href=\"%4\">%4</a>")
-                                .arg(QApplication::applicationName())
-                                .arg(QApplication::applicationVersion())
-                                .arg(tr("GNU GPL, version 3 or later"))
-                                .arg(QApplication::organizationDomain()));
+                                .arg(QApplication::applicationName(),
+                                     QApplication::applicationVersion(),
+                                     tr("GNU GPL, version 3 or later"),
+                                     QApplication::organizationDomain()));
        ui->versionInfo->setOpenExternalLinks(true);
 
        s.append("<table>");
@@ -63,8 +62,8 @@ About::About(shared_ptr<Context> context, QWidget *parent) :
                "</b></td></tr>");
        for (auto entry : context->drivers()) {
                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->long_name().c_str())));
+                        .arg(QString::fromUtf8(entry.first.c_str()),
+                             QString::fromUtf8(entry.second->long_name().c_str())));
        }
 
        s.append("<tr><td colspan=\"2\"><b>" +
@@ -72,8 +71,8 @@ About::About(shared_ptr<Context> context, QWidget *parent) :
                "</b></td></tr>");
        for (auto entry : context->input_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())));
+                        .arg(QString::fromUtf8(entry.first.c_str()),
+                             QString::fromUtf8(entry.second->description().c_str())));
        }
 
        s.append("<tr><td colspan=\"2\"><b>" +
@@ -81,8 +80,8 @@ About::About(shared_ptr<Context> context, QWidget *parent) :
                "</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())));
+                        .arg(QString::fromUtf8(entry.first.c_str()),
+                             QString::fromUtf8(entry.second->description().c_str())));
        }
 
 #ifdef ENABLE_DECODE
@@ -92,8 +91,8 @@ About::About(shared_ptr<Context> context, QWidget *parent) :
        for (const GSList *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::fromUtf8(dec->id))
-                        .arg(QString::fromUtf8(dec->longname)));
+                        .arg(QString::fromUtf8(dec->id),
+                             QString::fromUtf8(dec->longname)));
        }
 #endif