1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01: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 #ifndef NAVIGATIONWIDGET_H
#define NAVIGATIONWIDGET_H #define NAVIGATIONWIDGET_H
#ifdef Q_OS_ANDROID
#include <QWidget> #include <QWidget>
#include "mapview.h" #include "mapview.h"
#ifdef Q_OS_ANDROID
class NavigationWidget : public QWidget class NavigationWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT

View File

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