1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Code cleanup

This commit is contained in:
Martin Tůma 2022-06-02 19:02:46 +02:00
parent 8cb08d05ca
commit 20adecec89
2 changed files with 1 additions and 3 deletions

View File

@ -1,10 +1,10 @@
#ifndef NAVIGATIONWIDGET_H
#define NAVIGATIONWIDGET_H
#ifdef Q_OS_ANDROID
#include <QWidget>
#include "mapview.h"
#ifdef Q_OS_ANDROID
class NavigationWidget : public QWidget
{
Q_OBJECT

View File

@ -192,8 +192,6 @@ void IMGMap::cancelJobs()
void IMGMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
{
Q_UNUSED(flags);
QPointF tl(floor(rect.left() / TILE_SIZE)
* TILE_SIZE, floor(rect.top() / TILE_SIZE) * TILE_SIZE);
QSizeF s(rect.right() - tl.x(), rect.bottom() - tl.y());