Format all files
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user