mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 13:53:37 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include "qt_tstfrm/test_main_loop.hpp"
|
||||
|
||||
#include <QtCore/QTimer>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QWidget>
|
||||
#include <QtGui/QOffscreenSurface>
|
||||
#include <QtGui/QOpenGLContext>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
#include "base/scope_guard.hpp"
|
||||
|
||||
@@ -17,15 +17,10 @@ namespace
|
||||
class MyWidget : public QWidget
|
||||
{
|
||||
public:
|
||||
explicit MyWidget(testing::RenderFunction && fn)
|
||||
: m_fn(std::move(fn))
|
||||
{}
|
||||
explicit MyWidget(testing::RenderFunction && fn) : m_fn(std::move(fn)) {}
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent * e) override
|
||||
{
|
||||
m_fn(this);
|
||||
}
|
||||
void paintEvent(QPaintEvent * e) override { m_fn(this); }
|
||||
|
||||
private:
|
||||
testing::RenderFunction m_fn;
|
||||
|
||||
Reference in New Issue
Block a user