Changeset 11158 in ntrip for trunk/BNC/src/rinex/graphwin.cpp
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (4 days ago)
- File:
-
- 1 edited
-
trunk/BNC/src/rinex/graphwin.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r11023 r11158 41 41 #include <qwt_scale_widget.h> 42 42 #include <qwt_scale_engine.h> 43 #include <qwt_interval.h> 43 44 44 45 #include <QDir> 45 46 #include <QFileInfo> 47 #include <QPainter> 46 48 #include <QHBoxLayout> 47 49 #include <QVBoxLayout> … … 174 176 QPainter painter; 175 177 painter.begin(&printer); 176 double xscale = printer.pageRect().width()/double(_canvas->width()); 177 double yscale = printer.pageRect().height()/double(_canvas->height()); 178 QRect pageRect = printer.pageLayout().paintRectPixels(printer.resolution()); 179 QRect paperRect = printer.pageLayout().fullRectPixels(printer.resolution()); 180 double xscale = pageRect.width()/double(_canvas->width()); 181 double yscale = pageRect.height()/double(_canvas->height()); 178 182 double scale = qMin(xscale, yscale); 179 painter.translate(p rinter.paperRect().x() + printer.pageRect().width()/2,180 p rinter.paperRect().y() + printer.pageRect().height()/2);183 painter.translate(paperRect.x() + pageRect.width()/2, 184 paperRect.y() + pageRect.height()/2); 181 185 painter.scale(scale, scale); 182 186 painter.translate(-width()/2, -height()/2);
Note:
See TracChangeset
for help on using the changeset viewer.
