Format all files

This commit is contained in:
2023-08-29 09:26:25 +02:00
parent 25c729de1d
commit c07d09f392
283 changed files with 10375 additions and 8412 deletions

View File

@@ -38,11 +38,11 @@
#include "traceplotitem.h"
#include "tracedrawing.h"
#include "util/colorgenerator.h"
#include <qwt_painter.h>
#include <QRect>
#include <algorithm>
#include <qwt_painter.h>
#include <qwt_scale_map.h>
#include <tuple>
#include <algorithm>
using namespace std;
int TracePlotItem::rtti() const
@@ -50,21 +50,24 @@ int TracePlotItem::rtti() const
return QwtPlotItem::Rtti_PlotUserItem;
}
void TracePlotItem::draw(QPainter *painter, const QwtScaleMap &xMap,
const QwtScaleMap &yMap, const QRectF &canvasRect) const
void TracePlotItem::draw(QPainter* painter,
const QwtScaleMap& xMap,
const QwtScaleMap& yMap,
const QRectF& canvasRect) const
{
for (const auto &transaction : transactions) {
for (const auto& transaction : transactions)
{
bool highlight = navigator.transactionIsSelected(transaction);
transaction->draw(painter, xMap, yMap, canvasRect, highlight,
drawingProperties);
transaction->draw(painter, xMap, yMap, canvasRect, highlight, drawingProperties);
}
}
vector<shared_ptr<Transaction>> TracePlotItem::getSelectedTransactions(Timespan timespan, double yVal)
vector<shared_ptr<Transaction>> TracePlotItem::getSelectedTransactions(Timespan timespan,
double yVal)
{
vector<shared_ptr<Transaction>> result;
for (const auto &transaction : transactions)
for (const auto& transaction : transactions)
{
if (transaction->isSelected(timespan, yVal, drawingProperties))
result.push_back(transaction);