swift
htmlutils.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2016 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_HTMLUTILS_H
7 #define SWIFT_MISC_HTMLUTILS_H
8 
9 #include <QStringBuilder>
10 
11 #include "misc/swiftmiscexport.h"
12 
14 namespace swift::misc
15 {
17  SWIFT_MISC_EXPORT QString toHtmTable(const QStringList &values, int columns);
18 
20  SWIFT_MISC_EXPORT QString asHyperlink(const QString &url, const QString &text = "");
21 
22 } // namespace swift::misc
23 
24 #endif // SWIFT_MISC_HTMLUTILS_H
Free functions in swift::misc.
QString asHyperlink(const QString &url, const QString &text)
As hyperlink.
Definition: htmlutils.cpp:31
QString toHtmTable(const QStringList &values, int columns)
Values as HTML table.
Definition: htmlutils.cpp:11
#define SWIFT_MISC_EXPORT
Export a class or function from the library.