[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-09-12 13:03:02 +00:00
committed by WandererFan
parent a207d11fa4
commit e92ed45df9
435 changed files with 2669 additions and 2645 deletions

View File

@@ -163,7 +163,7 @@ public:
add_varargs_method("addTest", &Module::addTest, "addTest");
add_varargs_method("runTest", &Module::runTest, "runTest");
add_varargs_method("testILoggerBlocker", &Module::testILoggerBlocker, "testILoggerBlocker");
initialize("This module is the QtUnitGui module");// register with Python
initialize("This module is the QtUnitGui module"); // register with Python
}
private:
@@ -230,7 +230,7 @@ PyObject* initModule()
return Base::Interpreter().addModule(new Module);
}
}// namespace TestGui
} // namespace TestGui
void loadTestResource()
{

View File

@@ -31,7 +31,7 @@
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#pragma warning(disable : 4503)
#pragma warning(disable : 4786)// specifier longer then 255 chars
#pragma warning(disable : 4786) // specifier longer then 255 chars
#endif
// Qt Toolkit
@@ -39,6 +39,6 @@
#include <QEventLoop>
#include <QMessageBox>
#endif//_PreComp_
#endif //_PreComp_
#endif// __PRECOMPILED_GUI__
#endif // __PRECOMPILED_GUI__

View File

@@ -85,7 +85,7 @@ UnitTestDialog::UnitTestDialog(QWidget* parent, Qt::WindowFlags f)
ui->setupUi(this);
setupConnections();
setProgressColor(QColor(40, 210, 43));// a darker green
setProgressColor(QColor(40, 210, 43)); // a darker green
ui->progressBar->setAlignment(Qt::AlignCenter);
// red items
@@ -188,7 +188,7 @@ void UnitTestDialog::onAboutButtonClicked()
void UnitTestDialog::onStartButtonClicked()
{
reset();
setProgressColor(QColor(40, 210, 43));// a darker green
setProgressColor(QColor(40, 210, 43)); // a darker green
ui->startButton->setDisabled(true);
try {
Base::Interpreter().runString("import qtunittest, gc\n"

View File

@@ -78,7 +78,7 @@ private:
static UnitTestDialog* _instance;
};
}// namespace TestGui
} // namespace TestGui
#endif// TESTGUI_UNITTESTIMP_H
#endif // TESTGUI_UNITTESTIMP_H

View File

@@ -35,7 +35,7 @@ class UnitTestDialog;
class UnitTestDialogPy: public Py::PythonExtension<UnitTestDialogPy>
{
public:
static void init_type();// announce properties and methods
static void init_type(); // announce properties and methods
UnitTestDialogPy();
~UnitTestDialogPy() override;
@@ -65,7 +65,7 @@ private:
static PyObject* method_varargs_ext_handler(PyObject* _self, PyObject* _args);
};
}// namespace TestGui
} // namespace TestGui
#endif