1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Yet another code cleanup

This commit is contained in:
Martin Tůma 2015-11-26 00:21:11 +01:00
parent 0b4ee95591
commit d1bf74f43b
5 changed files with 7 additions and 6 deletions

View File

@ -8,6 +8,7 @@
#define FONT_FAMILY "Arial" #define FONT_FAMILY "Arial"
#define FONT_SIZE 12 #define FONT_SIZE 12
#define THIN_SPACE QString::fromUtf8("\xE2\x80\x89") #define TILES_DIR "tiles"
#define MAP_LIST_FILE TILES_DIR"/list.txt"
#endif /* CONFIG_H */ #endif /* CONFIG_H */

View File

@ -10,6 +10,8 @@
#include "colorshop.h" #include "colorshop.h"
#define THIN_SPACE QString::fromUtf8("\xE2\x80\x89")
class SliderItem; class SliderItem;
class SliderInfoItem; class SliderInfoItem;
class InfoItem; class InfoItem;

View File

@ -73,8 +73,7 @@ GUI::GUI()
void GUI::loadMaps() void GUI::loadMaps()
{ {
_maps = MapList::load(QString("%1/"TILES_DIR"/"LIST_FILE) _maps = MapList::load(QString("%1/"MAP_LIST_FILE).arg(QDir::homePath()));
.arg(QDir::homePath()));
} }
void GUI::createMapActions() void GUI::createMapActions()

View File

@ -2,6 +2,7 @@
#include <QDir> #include <QDir>
#include "downloader.h" #include "downloader.h"
#include "ll.h" #include "ll.h"
#include "config.h"
#include "map.h" #include "map.h"

View File

@ -5,9 +5,6 @@
#include "downloader.h" #include "downloader.h"
#define TILES_DIR "tiles"
#define LIST_FILE "list.txt"
class Tile class Tile
{ {
public: public:
@ -24,6 +21,7 @@ private:
QPixmap _pixmap; QPixmap _pixmap;
}; };
class Map : public QObject class Map : public QObject
{ {
Q_OBJECT Q_OBJECT