Formatting
This commit is contained in:
@@ -26,11 +26,7 @@ namespace Utilities {
|
||||
|
||||
QString ColorToRgba(const QColor &c) {
|
||||
|
||||
return QStringLiteral("rgba(%1, %2, %3, %4)")
|
||||
.arg(c.red())
|
||||
.arg(c.green())
|
||||
.arg(c.blue())
|
||||
.arg(c.alpha());
|
||||
return QStringLiteral("rgba(%1, %2, %3, %4)").arg(c.red()).arg(c.green()).arg(c.blue()).arg(c.alpha());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
/*
|
||||
* Strawberry Music Player
|
||||
* Copyright 2023, Jonas Kvinge <jonas@jkvinge.net>
|
||||
*
|
||||
* Strawberry is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Strawberry is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Strawberry. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
* Strawberry Music Player
|
||||
* Copyright 2023, Jonas Kvinge <jonas@jkvinge.net>
|
||||
*
|
||||
* Strawberry is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Strawberry is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Strawberry. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "coveroptions.h"
|
||||
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
/*
|
||||
* Strawberry Music Player
|
||||
* Copyright 2023, Jonas Kvinge <jonas@jkvinge.net>
|
||||
*
|
||||
* Strawberry is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Strawberry is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Strawberry. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
* Strawberry Music Player
|
||||
* Copyright 2023, Jonas Kvinge <jonas@jkvinge.net>
|
||||
*
|
||||
* Strawberry is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Strawberry is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Strawberry. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef COVEROPTIONS_H
|
||||
#define COVEROPTIONS_H
|
||||
|
||||
@@ -26,29 +26,29 @@
|
||||
|
||||
class SqlHelper {
|
||||
public:
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
static QString ValueToString(const T &q, const int n);
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
static QUrl ValueToUrl(const T &q, const int n);
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
static int ValueToInt(const T &q, const int n);
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
static uint ValueToUInt(const T &q, const int n);
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
static qint64 ValueToLongLong(const T &q, const int n);
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
static float ValueToFloat(const T &q, const int n);
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
static bool ValueToBool(const T &q, const int n);
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
QString SqlHelper::ValueToString(const T &q, const int n) {
|
||||
|
||||
Q_ASSERT(n < q.count());
|
||||
@@ -57,7 +57,7 @@ QString SqlHelper::ValueToString(const T &q, const int n) {
|
||||
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
QUrl SqlHelper::ValueToUrl(const T &q, const int n) {
|
||||
|
||||
Q_ASSERT(n < q.count());
|
||||
@@ -66,7 +66,7 @@ QUrl SqlHelper::ValueToUrl(const T &q, const int n) {
|
||||
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
int SqlHelper::ValueToInt(const T &q, const int n) {
|
||||
|
||||
Q_ASSERT(n < q.count());
|
||||
@@ -75,7 +75,7 @@ int SqlHelper::ValueToInt(const T &q, const int n) {
|
||||
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
uint SqlHelper::ValueToUInt(const T &q, const int n) {
|
||||
|
||||
Q_ASSERT(n < q.count());
|
||||
@@ -84,7 +84,7 @@ uint SqlHelper::ValueToUInt(const T &q, const int n) {
|
||||
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
qint64 SqlHelper::ValueToLongLong(const T &q, const int n) {
|
||||
|
||||
Q_ASSERT(n < q.count());
|
||||
@@ -93,7 +93,7 @@ qint64 SqlHelper::ValueToLongLong(const T &q, const int n) {
|
||||
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
float SqlHelper::ValueToFloat(const T &q, const int n) {
|
||||
|
||||
Q_ASSERT(n < q.count());
|
||||
@@ -102,7 +102,7 @@ float SqlHelper::ValueToFloat(const T &q, const int n) {
|
||||
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
bool SqlHelper::ValueToBool(const T &q, const int n) {
|
||||
|
||||
Q_ASSERT(n < q.count());
|
||||
|
||||
Reference in New Issue
Block a user