Apply clang-format
This commit is contained in:
parent
4d6d8ae940
commit
14868bf04e
@ -8,29 +8,28 @@
|
|||||||
|
|
||||||
#include <android/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
const char *applicationName="org.kde.kasts";
|
const char *applicationName = "org.kde.kasts";
|
||||||
void myMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString& msg)
|
void myMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
|
||||||
{
|
{
|
||||||
QByteArray localMsg = msg.toLocal8Bit();
|
QByteArray localMsg = msg.toLocal8Bit();
|
||||||
// const char *file = context.file ? context.file : "";
|
// const char *file = context.file ? context.file : "";
|
||||||
// const char *function = context.function ? context.function : "";
|
// const char *function = context.function ? context.function : "";
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case QtDebugMsg:
|
case QtDebugMsg:
|
||||||
__android_log_write(ANDROID_LOG_DEBUG,applicationName,localMsg.constData());
|
__android_log_write(ANDROID_LOG_DEBUG, applicationName, localMsg.constData());
|
||||||
break;
|
break;
|
||||||
case QtInfoMsg:
|
case QtInfoMsg:
|
||||||
__android_log_write(ANDROID_LOG_INFO,applicationName,localMsg.constData());
|
__android_log_write(ANDROID_LOG_INFO, applicationName, localMsg.constData());
|
||||||
break;
|
break;
|
||||||
case QtWarningMsg:
|
case QtWarningMsg:
|
||||||
__android_log_write(ANDROID_LOG_WARN,applicationName,localMsg.constData());
|
__android_log_write(ANDROID_LOG_WARN, applicationName, localMsg.constData());
|
||||||
break;
|
break;
|
||||||
case QtCriticalMsg:
|
case QtCriticalMsg:
|
||||||
__android_log_write(ANDROID_LOG_ERROR,applicationName,localMsg.constData());
|
__android_log_write(ANDROID_LOG_ERROR, applicationName, localMsg.constData());
|
||||||
break;
|
break;
|
||||||
case QtFatalMsg:
|
case QtFatalMsg:
|
||||||
default:
|
default:
|
||||||
__android_log_write(ANDROID_LOG_FATAL,applicationName,localMsg.constData());
|
__android_log_write(ANDROID_LOG_FATAL, applicationName, localMsg.constData());
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "datamanager.h"
|
#include "datamanager.h"
|
||||||
#include "datamanagerlogging.h"
|
|
||||||
#include "audiomanager.h"
|
#include "audiomanager.h"
|
||||||
#include "database.h"
|
#include "database.h"
|
||||||
|
#include "datamanagerlogging.h"
|
||||||
#include "fetcher.h"
|
#include "fetcher.h"
|
||||||
#include "settingsmanager.h"
|
#include "settingsmanager.h"
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "downloadprogressmodel.h"
|
#include "downloadprogressmodel.h"
|
||||||
#include "downloadprogressmodellogging.h"
|
|
||||||
#include "datamanager.h"
|
#include "datamanager.h"
|
||||||
|
#include "downloadprogressmodellogging.h"
|
||||||
|
|
||||||
DownloadProgressModel::DownloadProgressModel()
|
DownloadProgressModel::DownloadProgressModel()
|
||||||
: QAbstractListModel(nullptr)
|
: QAbstractListModel(nullptr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user