mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-08 07:53:40 +00:00
TraceWidget: support dropping files for importing measurements
This commit is contained in:
parent
0b8e1a7b50
commit
6ea8869f7f
9 changed files with 174 additions and 131 deletions
|
|
@ -626,7 +626,6 @@ void TracePlot::dragMoveEvent(QDragMoveEvent *event)
|
|||
// transform to relative coordinates from 0 to 1
|
||||
auto x = (double) pos.x() / (width() - marginLeft - marginRight);
|
||||
auto y = (double) pos.y() / (height() - marginTop - marginBottom);
|
||||
qDebug() << "x:" << x << "y:" << y;
|
||||
if(y < 0.5) {
|
||||
if(x < y) {
|
||||
dropSection = DropSection::ToTheLeft;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue