QGIS API Documentation 3.99.0-Master (d270888f95f)
Loading...
Searching...
No Matches
qgshtmlutils.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgshtmlutils.cpp
3 ---------------------
4 begin : December 2017
5 copyright : (C) 2017 by Etienne Trimaille
6 email : etienne.trimaille at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#include "qgshtmlutils.h"
16
17#include <QString>
18#include <QStringList>
19
20using namespace Qt::StringLiterals;
21
22QString QgsHtmlUtils::buildBulletList( const QStringList &values )
23{
24 QString s( u"<ul>"_s );
25
26 for ( const QString &value : values )
27 {
28 s += u"<li>%1</li>"_s.arg( value );
29 }
30 s += "</ul>"_L1;
31
32 return s;
33}
static QString buildBulletList(const QStringList &values)
Build a bullet list.