mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
CHG: data plot
- the marking of clock, looks better without borders. It only connected to ASK. STT mark also looks better.
Still problem with finding the startindex...
This commit is contained in:
parent
a47ded5b54
commit
c6e5c7ea46
4 changed files with 103 additions and 93 deletions
|
@ -9,6 +9,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include <iostream>
|
||||
#include <QT>
|
||||
#include <QPainterPath>
|
||||
#include <QBrush>
|
||||
#include <QPen>
|
||||
|
@ -278,8 +279,10 @@ void ProxWidget::paintEvent(QPaintEvent *event)
|
|||
int foo = 40 + (int)((CursorCPos - GraphStart) * GraphPixelsPerPoint);
|
||||
int bar = 40 + ((CursorDPos - GraphStart) * GraphPixelsPerPoint);
|
||||
QRect r_stt(foo, r.top(), bar-foo, r.bottom() );
|
||||
painter.fillRect(r_stt, QBrush( QT_ORANGE_TS ));
|
||||
painter.drawRect(r_stt);
|
||||
QBrush b_stt( QBrush( QT_ORANGE_TS ));
|
||||
b_stt.setStyle(Qt::Dense1Pattern);
|
||||
painter.setPen(Qt::NoPen);
|
||||
painter.fillRect(r_stt, b_stt);
|
||||
}
|
||||
|
||||
// Mark Clock pulse
|
||||
|
@ -293,8 +296,11 @@ void ProxWidget::paintEvent(QPaintEvent *event)
|
|||
int foo = 40 + (int)((i - GraphStart) * GraphPixelsPerPoint);
|
||||
int bar = 40 + ((i + PlotClock - GraphStart) * GraphPixelsPerPoint);
|
||||
QRect r_clock(foo, r.top(), bar-foo, r.bottom() );
|
||||
painter.fillRect(r_clock, QBrush( QT_RED_TS ));
|
||||
painter.drawRect(r_clock);
|
||||
|
||||
QBrush b_clk( QBrush( QT_RED_TS ));
|
||||
b_clk.setStyle(Qt::Dense1Pattern);
|
||||
painter.setPen(Qt::NoPen);
|
||||
painter.fillRect(r_clock, b_clk);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue