1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45: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_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 */

View File

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

View File

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

View File

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

View File

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