From e9d333ba2e429bcafa86a56dcd8ba0710f57d861 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Thu, 29 Oct 2020 19:17:37 +0100 Subject: [PATCH] Call format-cpp --- ScreenPlay/src/create.cpp | 4 ++-- ScreenPlay/src/createimportvideo.h | 6 ------ ScreenPlay/src/installedlistmodel.h | 2 +- ScreenPlay/src/profile.h | 3 +-- ScreenPlay/src/projectsettingslistitem.h | 2 +- ScreenPlay/src/screenplaymanager.cpp | 2 +- ScreenPlay/src/util.h | 2 -- ScreenPlaySDK/inc/screenplay-sdk_plugin.h | 5 ++--- ScreenPlaySDK/src/screenplay-sdk_plugin.cpp | 3 +-- ScreenPlayShader/screenplayshader_plugin.cpp | 2 +- ScreenPlayShader/shaderlibrary.cpp | 1 - ScreenPlaySysInfo/cpu.cpp | 15 ++++++++------- ScreenPlaySysInfo/cpu.h | 9 ++------- ScreenPlaySysInfo/mathhelper.h | 5 +++-- ScreenPlaySysInfo/ram.cpp | 6 +++--- ScreenPlaySysInfo/ram.h | 17 +++++++---------- ScreenPlaySysInfo/screenplaysysinfo_plugin.cpp | 1 - ScreenPlaySysInfo/screenplaysysinfo_plugin.h | 5 ++--- ScreenPlaySysInfo/storage.cpp | 2 +- ScreenPlaySysInfo/storage.h | 2 +- ScreenPlaySysInfo/sysinfo.h | 1 - ScreenPlayWallpaper/src/SPWmainwindow.cpp | 8 ++++---- ScreenPlayWallpaper/src/SPWmainwindow.h | 2 +- ScreenPlayWallpaper/src/basewindow.cpp | 2 -- ScreenPlayWallpaper/src/linuxwindow.cpp | 3 --- ScreenPlayWallpaper/src/macwindow.cpp | 13 +++++-------- ScreenPlayWidget/main.cpp | 1 - 27 files changed, 47 insertions(+), 77 deletions(-) diff --git a/ScreenPlay/src/create.cpp b/ScreenPlay/src/create.cpp index e22206fa..e27bf58a 100644 --- a/ScreenPlay/src/create.cpp +++ b/ScreenPlay/src/create.cpp @@ -234,7 +234,7 @@ void Create::createWallpaperStart(QString videoPath, Create::VideoCodec codec) codecs.append("vp9"); } - m_createImportVideoThread = new QThread(); + m_createImportVideoThread = new QThread(this); m_createImportVideo = new CreateImportVideo(videoPath, workingDir(), codecs); connect(m_createImportVideo, &CreateImportVideo::processOutput, this, [this](QString text) { appendFfmpegOutput(text + "\n"); @@ -328,7 +328,7 @@ void Create::saveWallpaper(QString title, QString description, QString filePath, obj.insert("type", "videoWallpaper"); QJsonArray tagsJsonArray; - for (const QString &tmp : tags) { + for (const QString& tmp : tags) { tagsJsonArray.append(tmp); } obj.insert("tags", tagsJsonArray); diff --git a/ScreenPlay/src/createimportvideo.h b/ScreenPlay/src/createimportvideo.h index 9c018211..7ca73bec 100644 --- a/ScreenPlay/src/createimportvideo.h +++ b/ScreenPlay/src/createimportvideo.h @@ -60,10 +60,6 @@ class CreateImportVideo : public QObject { public: CreateImportVideo() { } - ~CreateImportVideo() - { - qDebug() << "CreateImportVideo"; - } CreateImportVideo(QObject* parent = nullptr); explicit CreateImportVideo(const QString& videoPath, const QString& exportPath, const QStringList& codecs, QObject* parent = nullptr); @@ -163,8 +159,6 @@ private: QString m_ffprobeExecutable; QString m_ffmpegExecutable; - - }; } Q_DECLARE_METATYPE(ScreenPlay::CreateImportVideo::ImportVideoState) diff --git a/ScreenPlay/src/installedlistmodel.h b/ScreenPlay/src/installedlistmodel.h index c457e456..5a94d80c 100644 --- a/ScreenPlay/src/installedlistmodel.h +++ b/ScreenPlay/src/installedlistmodel.h @@ -96,7 +96,7 @@ public: } public slots: - QVariantMap get(const QString &folderId) const; + QVariantMap get(const QString& folderId) const; void loadInstalledContent(); void append(const QJsonObject&, const QString&); diff --git a/ScreenPlay/src/profile.h b/ScreenPlay/src/profile.h index e662eda0..84206abd 100644 --- a/ScreenPlay/src/profile.h +++ b/ScreenPlay/src/profile.h @@ -37,7 +37,6 @@ #include #include - namespace ScreenPlay { /*! @@ -49,7 +48,7 @@ namespace ScreenPlay { */ struct Profile { - Profile() {} + Profile() { } Profile(const QUrl& absolutePath, const QString& id, const QString& version, diff --git a/ScreenPlay/src/projectsettingslistitem.h b/ScreenPlay/src/projectsettingslistitem.h index b61ce180..6a75387e 100644 --- a/ScreenPlay/src/projectsettingslistitem.h +++ b/ScreenPlay/src/projectsettingslistitem.h @@ -60,7 +60,7 @@ public: QVariant m_value; virtual QJsonObject getItemSettings() = 0; public slots: - virtual void setData(const QJsonObject& obj){} + virtual void setData(const QJsonObject& obj) { } }; struct SliderItem : public IListItem { diff --git a/ScreenPlay/src/screenplaymanager.cpp b/ScreenPlay/src/screenplaymanager.cpp index 1ff179a2..9b71adeb 100644 --- a/ScreenPlay/src/screenplaymanager.cpp +++ b/ScreenPlay/src/screenplaymanager.cpp @@ -280,7 +280,7 @@ bool ScreenPlayManager::removeWallpaperAt(int index) return false; } -bool ScreenPlayManager::removeApp(const QString &appID) +bool ScreenPlayManager::removeApp(const QString& appID) { emit requestSaveProfiles(); diff --git a/ScreenPlay/src/util.h b/ScreenPlay/src/util.h index 42875d79..ed32ff0b 100644 --- a/ScreenPlay/src/util.h +++ b/ScreenPlay/src/util.h @@ -59,7 +59,6 @@ #include "globalvariables.h" - namespace ScreenPlay { template @@ -144,7 +143,6 @@ public slots: emit debugMessagesChanged(m_debugMessages); } - private: QNetworkAccessManager* m_networkAccessManager { nullptr }; diff --git a/ScreenPlaySDK/inc/screenplay-sdk_plugin.h b/ScreenPlaySDK/inc/screenplay-sdk_plugin.h index 6a11db18..50b31808 100644 --- a/ScreenPlaySDK/inc/screenplay-sdk_plugin.h +++ b/ScreenPlaySDK/inc/screenplay-sdk_plugin.h @@ -36,11 +36,10 @@ #include -class ScreenPlay_SDKPlugin : public QQmlExtensionPlugin -{ +class ScreenPlay_SDKPlugin : public QQmlExtensionPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) public: - void registerTypes(const char *uri); + void registerTypes(const char* uri); }; diff --git a/ScreenPlaySDK/src/screenplay-sdk_plugin.cpp b/ScreenPlaySDK/src/screenplay-sdk_plugin.cpp index f32c3d9f..26e11239 100644 --- a/ScreenPlaySDK/src/screenplay-sdk_plugin.cpp +++ b/ScreenPlaySDK/src/screenplay-sdk_plugin.cpp @@ -3,9 +3,8 @@ #include -void ScreenPlay_SDKPlugin::registerTypes(const char *uri) +void ScreenPlay_SDKPlugin::registerTypes(const char* uri) { // @uri ScreenPlay.screenplaysdk qmlRegisterType(uri, 1, 0, "ScreenPlaySDK"); } - diff --git a/ScreenPlayShader/screenplayshader_plugin.cpp b/ScreenPlayShader/screenplayshader_plugin.cpp index eabee3e6..561066dd 100644 --- a/ScreenPlayShader/screenplayshader_plugin.cpp +++ b/ScreenPlayShader/screenplayshader_plugin.cpp @@ -13,6 +13,6 @@ QObject* ScreenPlayShaderLibrarySingleton(QQmlEngine* engine, QJSEngine* scriptE void ScreenPlayShaderPlugin::registerTypes(const char* uri) { - qmlRegisterType(QUrl("qrc:/ShaderWrapper/ShadertoyShader.qml"), "ScreenPlay.ShadertoyShader", 1,0, "ShadertoyShader"); + qmlRegisterType(QUrl("qrc:/ShaderWrapper/ShadertoyShader.qml"), "ScreenPlay.ShadertoyShader", 1, 0, "ShadertoyShader"); qmlRegisterSingletonType(uri, 1, 0, "ShaderLibrary", ScreenPlayShaderLibrarySingleton); } diff --git a/ScreenPlayShader/shaderlibrary.cpp b/ScreenPlayShader/shaderlibrary.cpp index 4911a69e..5984b6c2 100644 --- a/ScreenPlayShader/shaderlibrary.cpp +++ b/ScreenPlayShader/shaderlibrary.cpp @@ -19,4 +19,3 @@ ShaderLibrary::ShaderLibrary(QQuickItem* parent) ShaderLibrary::~ShaderLibrary() { } - diff --git a/ScreenPlaySysInfo/cpu.cpp b/ScreenPlaySysInfo/cpu.cpp index ae4287a2..25e3fce1 100644 --- a/ScreenPlaySysInfo/cpu.cpp +++ b/ScreenPlaySysInfo/cpu.cpp @@ -1,17 +1,17 @@ #include "cpu.h" -#include #include "mathhelper.h" +#include -#define STATUS_SUCCESS 0 -#define STATUS_INFO_LENGTH_MISMATCH 0xC0000004 +#define STATUS_SUCCESS 0 +#define STATUS_INFO_LENGTH_MISMATCH 0xC0000004 -CPU::CPU(QObject *parent) : QObject(parent) +CPU::CPU(QObject* parent) + : QObject(parent) { - connect(&m_updateTimer,&QTimer::timeout,this,&CPU::update); + connect(&m_updateTimer, &QTimer::timeout, this, &CPU::update); m_updateTimer.start(m_tickRate); } - void CPU::update() { BOOL status; @@ -19,7 +19,8 @@ void CPU::update() // get new CPU's idle/kernel/user time status = GetSystemTimes(&ftIdleTime, &ftKernelTime, &ftUserTime); - if (status == 0) return; + if (status == 0) + return; //convert times to uint by appending low and high bits uint64_t newIdleTime = FileTimeToInt64(ftIdleTime); diff --git a/ScreenPlaySysInfo/cpu.h b/ScreenPlaySysInfo/cpu.h index f3975940..0339a9b8 100644 --- a/ScreenPlaySysInfo/cpu.h +++ b/ScreenPlaySysInfo/cpu.h @@ -34,10 +34,10 @@ #pragma once -#include #include -#include +#include #include +#include #ifdef Q_OS_WIN #include @@ -50,11 +50,9 @@ class CPU : public QObject { Q_PROPERTY(float usage READ usage NOTIFY usageChanged) Q_PROPERTY(int tickRate READ tickRate WRITE setTickRate NOTIFY tickRateChanged) - public: explicit CPU(QObject* parent = nullptr); - float usage() const { return m_usage; @@ -71,7 +69,6 @@ signals: void tickRateChanged(int tickRate); - public slots: void update(); @@ -95,8 +92,6 @@ public slots: emit tickRateChanged(m_tickRate); } - - private: float m_usage = 0.0f; diff --git a/ScreenPlaySysInfo/mathhelper.h b/ScreenPlaySysInfo/mathhelper.h index 1be29acc..d9c70334 100644 --- a/ScreenPlaySysInfo/mathhelper.h +++ b/ScreenPlaySysInfo/mathhelper.h @@ -38,8 +38,9 @@ #include -uint64_t FileTimeToInt64( const FILETIME& ft ) { - ULARGE_INTEGER uli = { }; +uint64_t FileTimeToInt64(const FILETIME& ft) +{ + ULARGE_INTEGER uli = {}; uli.LowPart = ft.dwLowDateTime; uli.HighPart = ft.dwHighDateTime; return uli.QuadPart; diff --git a/ScreenPlaySysInfo/ram.cpp b/ScreenPlaySysInfo/ram.cpp index eb3b99bc..ca260de9 100644 --- a/ScreenPlaySysInfo/ram.cpp +++ b/ScreenPlaySysInfo/ram.cpp @@ -1,12 +1,12 @@ #include "ram.h" +#include "sysinfoapi.h" #include #include -#include "sysinfoapi.h" RAM::RAM(QObject* parent) : QObject(parent) { - connect(&m_updateTimer,&QTimer::timeout,this,&RAM::update); + connect(&m_updateTimer, &QTimer::timeout, this, &RAM::update); m_updateTimer.start(m_tickRate); } @@ -16,7 +16,7 @@ void RAM::update() MEMORYSTATUSEX memoryStatus; memoryStatus.dwLength = sizeof(MEMORYSTATUSEX); //needed for internal api bool success = GlobalMemoryStatusEx(&memoryStatus); - if(!success) + if (!success) return; //Apply total values diff --git a/ScreenPlaySysInfo/ram.h b/ScreenPlaySysInfo/ram.h index f450c4ed..99e120d0 100644 --- a/ScreenPlaySysInfo/ram.h +++ b/ScreenPlaySysInfo/ram.h @@ -34,8 +34,8 @@ #pragma once -#include #include +#include #include #ifdef Q_OS_WIN #include @@ -113,7 +113,6 @@ signals: void usedPagingMemoryChanged(DWORDLONG usedPagingMemory); - void totalPhysicalMemoryChanged(DWORDLONG totalPhysicalMemory); void totalVirtualMemoryChanged(DWORDLONG totalVirtualMemory); @@ -134,7 +133,7 @@ private slots: void setUsedPhysicalMemory(DWORDLONG usedPhysicalMemory) { - if(usedPhysicalMemory == m_usedPhysicalMemory) + if (usedPhysicalMemory == m_usedPhysicalMemory) return; m_usedPhysicalMemory = usedPhysicalMemory; @@ -143,7 +142,7 @@ private slots: void setTotalPhysicalMemory(DWORDLONG totalPhysicalMemory) { - if(totalPhysicalMemory == m_totalPhysicalMemory) + if (totalPhysicalMemory == m_totalPhysicalMemory) return; m_totalPhysicalMemory = totalPhysicalMemory; @@ -152,7 +151,7 @@ private slots: void setUsedVirtualMemory(DWORDLONG usedVirtualMemory) { - if(usedVirtualMemory == m_usedVirtualMemory) + if (usedVirtualMemory == m_usedVirtualMemory) return; m_usedVirtualMemory = usedVirtualMemory; @@ -161,7 +160,7 @@ private slots: void setTotalVirtualMemory(DWORDLONG totalVirtualMemory) { - if(totalVirtualMemory == m_totalVirtualMemory) + if (totalVirtualMemory == m_totalVirtualMemory) return; m_totalVirtualMemory = totalVirtualMemory; @@ -170,7 +169,7 @@ private slots: void setUsedPagingMemory(DWORDLONG usedPagingMemory) { - if(usedPagingMemory == m_usedPagingMemory) + if (usedPagingMemory == m_usedPagingMemory) return; m_usedPagingMemory = usedPagingMemory; @@ -179,7 +178,7 @@ private slots: void setTotalPagingMemory(DWORDLONG totalPagingMemory) { - if(totalPagingMemory == m_totalPagingMemory) + if (totalPagingMemory == m_totalPagingMemory) return; m_totalPagingMemory = totalPagingMemory; @@ -197,6 +196,4 @@ private: QTimer m_updateTimer; int m_tickRate = 1000; - }; - diff --git a/ScreenPlaySysInfo/screenplaysysinfo_plugin.cpp b/ScreenPlaySysInfo/screenplaysysinfo_plugin.cpp index c26f0072..ebd4f750 100644 --- a/ScreenPlaySysInfo/screenplaysysinfo_plugin.cpp +++ b/ScreenPlaySysInfo/screenplaysysinfo_plugin.cpp @@ -15,5 +15,4 @@ void ScreenPlaySysInfoPlugin::registerTypes(const char* uri) { // @uri ScreenPlay.Sysinfo qmlRegisterSingletonType(uri, 1, 0, "SysInfo", ScreenPlaySysInfoSingleton); - } diff --git a/ScreenPlaySysInfo/screenplaysysinfo_plugin.h b/ScreenPlaySysInfo/screenplaysysinfo_plugin.h index 61c7bf3c..5dd35de4 100644 --- a/ScreenPlaySysInfo/screenplaysysinfo_plugin.h +++ b/ScreenPlaySysInfo/screenplaysysinfo_plugin.h @@ -36,11 +36,10 @@ #include -class ScreenPlaySysInfoPlugin : public QQmlExtensionPlugin -{ +class ScreenPlaySysInfoPlugin : public QQmlExtensionPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) public: - void registerTypes(const char *uri); + void registerTypes(const char* uri); }; diff --git a/ScreenPlaySysInfo/storage.cpp b/ScreenPlaySysInfo/storage.cpp index 5b5af10f..1a02f0eb 100644 --- a/ScreenPlaySysInfo/storage.cpp +++ b/ScreenPlaySysInfo/storage.cpp @@ -88,7 +88,7 @@ void Storage::reset() void Storage::loadStorageDevices() { beginInsertRows(QModelIndex(), 0, rowCount()); - for (const auto &storage : QStorageInfo::mountedVolumes()) { + for (const auto& storage : QStorageInfo::mountedVolumes()) { m_storageInfoList.append(storage); } endInsertRows(); diff --git a/ScreenPlaySysInfo/storage.h b/ScreenPlaySysInfo/storage.h index 3629635a..1b89dd29 100644 --- a/ScreenPlaySysInfo/storage.h +++ b/ScreenPlaySysInfo/storage.h @@ -63,7 +63,6 @@ public: int rowCount(const QModelIndex& parent = QModelIndex()) const override; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; - public slots: void refresh(); void reset(); @@ -71,6 +70,7 @@ signals: private: void loadStorageDevices(); + private: QVector m_storageInfoList; }; diff --git a/ScreenPlaySysInfo/sysinfo.h b/ScreenPlaySysInfo/sysinfo.h index f1453947..35be06c8 100644 --- a/ScreenPlaySysInfo/sysinfo.h +++ b/ScreenPlaySysInfo/sysinfo.h @@ -67,7 +67,6 @@ public: return m_storage.get(); } - signals: void ramChanged(RAM* ram); void cpuChanged(CPU* cpu); diff --git a/ScreenPlayWallpaper/src/SPWmainwindow.cpp b/ScreenPlayWallpaper/src/SPWmainwindow.cpp index b2287de5..23f44d35 100644 --- a/ScreenPlayWallpaper/src/SPWmainwindow.cpp +++ b/ScreenPlayWallpaper/src/SPWmainwindow.cpp @@ -120,8 +120,8 @@ MainWindow::MainWindow(int screenAt, QString projectPath, QString id, QString de UpdateWindow(m_hwnd); UpdateWindow(m_worker_hwnd); SetWindowLongPtr(m_hwnd, GWL_STYLE, WS_CHILDWINDOW); - SetWindowLongPtr(m_hwnd, GWL_EXSTYLE, WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR | WS_EX_NOACTIVATE ); - // ShowWindow(m_hwnd, SW_SHOW); + SetWindowLongPtr(m_hwnd, GWL_EXSTYLE, WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR | WS_EX_NOACTIVATE); + // ShowWindow(m_hwnd, SW_SHOW); //MoveWindow(m_hwnd, screen->geometry().x(), screen->geometry().y() , screen->size().width(), screen->size().height(), true); qDebug() << "Create window: " << screenAt << ", x: " << screen->geometry().x() << "y: " << screen->geometry().y() << screen->size().width() << screen->size().height(); @@ -158,7 +158,7 @@ MainWindow::MainWindow(int screenAt, QString projectPath, QString id, QString de } }); - QTimer::singleShot(3000,[=](){ + QTimer::singleShot(3000, [=]() { ShowWindow(m_hwnd, SW_SHOWNOACTIVATE); }); @@ -176,7 +176,7 @@ void MainWindow::init() // This needs to be set in this order or // the window will be opened as fullscreen! - //ShowWindow(m_hwnd, SW_SHOWDEFAULT); + //ShowWindow(m_hwnd, SW_SHOWDEFAULT); #endif } void MainWindow::destroyThis() diff --git a/ScreenPlayWallpaper/src/SPWmainwindow.h b/ScreenPlayWallpaper/src/SPWmainwindow.h index b620363f..3a7c22c7 100644 --- a/ScreenPlayWallpaper/src/SPWmainwindow.h +++ b/ScreenPlayWallpaper/src/SPWmainwindow.h @@ -45,9 +45,9 @@ #include #include #include +#include #include #include -#include #include #include diff --git a/ScreenPlayWallpaper/src/basewindow.cpp b/ScreenPlayWallpaper/src/basewindow.cpp index 606c997c..8a84459e 100644 --- a/ScreenPlayWallpaper/src/basewindow.cpp +++ b/ScreenPlayWallpaper/src/basewindow.cpp @@ -28,8 +28,6 @@ BaseWindow::BaseWindow(QString projectFilePath, const QVector activeScreens QJsonDocument configJsonDocument; QJsonParseError parseError; - - projectFile.setFileName(projectFilePath + "/project.json"); projectFile.open(QIODevice::ReadOnly | QIODevice::Text); QString projectConfig = projectFile.readAll(); diff --git a/ScreenPlayWallpaper/src/linuxwindow.cpp b/ScreenPlayWallpaper/src/linuxwindow.cpp index a3823922..71180bb9 100644 --- a/ScreenPlayWallpaper/src/linuxwindow.cpp +++ b/ScreenPlayWallpaper/src/linuxwindow.cpp @@ -1,6 +1,5 @@ #include "linuxwindow.h" - LinuxWindow::LinuxWindow(QVector activeScreensList, QString projectPath, QString id, QString volume, const QString fillmode, const bool checkWallpaperVisible, QObject* parent) : BaseWindow(projectPath, activeScreensList, checkWallpaperVisible) { @@ -42,8 +41,6 @@ LinuxWindow::LinuxWindow(QVector activeScreensList, QString projectPath, QS m_window.setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering); m_window.setSource(QUrl("qrc:/mainWindow.qml")); - - // WARNING: Setting Window flags must be called *here*! Qt::WindowFlags flags = m_window.flags(); m_window.setFlags(flags | Qt::FramelessWindowHint | Qt::Desktop); diff --git a/ScreenPlayWallpaper/src/macwindow.cpp b/ScreenPlayWallpaper/src/macwindow.cpp index 3a4b9777..909cc52d 100644 --- a/ScreenPlayWallpaper/src/macwindow.cpp +++ b/ScreenPlayWallpaper/src/macwindow.cpp @@ -1,11 +1,11 @@ #include "macwindow.h" MacWindow::MacWindow( - const QVector &activeScreensList, - const QString &projectPath, - const QString &id, - const QString &volume, - const QString &fillmode) + const QVector& activeScreensList, + const QString& projectPath, + const QString& id, + const QString& volume, + const QString& fillmode) : BaseWindow(projectPath, activeScreensList, false) { setAppID(id); @@ -28,8 +28,6 @@ MacWindow::MacWindow( //setupWallpaperForMultipleScreens(activeScreensList); } - - // WARNING: Setting Window flags must be called *here*! Qt::WindowFlags flags = m_window.flags(); m_window.setFlags(flags | Qt::FramelessWindowHint | Qt::Desktop); @@ -44,7 +42,6 @@ MacWindow::MacWindow( MacIntegration* macIntegration = new MacIntegration(this); macIntegration->SetBackgroundLevel(&m_window); - } void MacWindow::setVisible(bool show) diff --git a/ScreenPlayWidget/main.cpp b/ScreenPlayWidget/main.cpp index a8fbafdb..46df6ec1 100644 --- a/ScreenPlayWidget/main.cpp +++ b/ScreenPlayWidget/main.cpp @@ -13,7 +13,6 @@ int main(int argc, char* argv[]) QStringList argumentList = app.arguments(); - // If we start with only one argument (path, appID, type), // it means we want to test a single widget if (argumentList.length() == 1) {