diff --git a/example/with_external_libs/x06_qt_world_mapper.cpp b/example/with_external_libs/x06_qt_world_mapper.cpp index 00854c948..7b26a398b 100644 --- a/example/with_external_libs/x06_qt_world_mapper.cpp +++ b/example/with_external_libs/x06_qt_world_mapper.cpp @@ -32,8 +32,6 @@ #include -#include "qt_mapper.hpp" - // Adapt a QPointF such that it can be handled by Boost.Geometry BOOST_GEOMETRY_REGISTER_POINT_2D_GET_SET(QPointF, double, cs::cartesian, x, y, setX, setY) @@ -53,7 +51,7 @@ typedef boost::geometry::model::multi_polygon class WorldMapper : public QWidget { public: - WorldMapper(std::vector const& countries, boost::geometry::model::box const& box, QWidget *parent = 0) + WorldMapper(std::vector const& countries, boost::geometry::model::box const& box) : m_countries(countries) , m_box(box) { @@ -62,7 +60,7 @@ class WorldMapper : public QWidget } protected: - void paintEvent(QPaintEvent *event) + void paintEvent(QPaintEvent*) { map_transformer_type transformer(m_box, this->width(), this->height()); diff --git a/example/with_external_libs/x06_qt_world_mapper_readme.txt b/example/with_external_libs/x06_qt_world_mapper_readme.txt index a40650a55..8c67025e2 100644 --- a/example/with_external_libs/x06_qt_world_mapper_readme.txt +++ b/example/with_external_libs/x06_qt_world_mapper_readme.txt @@ -5,13 +5,10 @@ // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) - - Qt World Mapper example It will show a basic Qt Widget, displaying world countries - To compile this program: Install Qt (if not done before) @@ -25,4 +22,10 @@ Using MSVC: - alternatively you can include Boost and/or Qt in your standard include path Using Linux/gcc - + - install Qt with sudo apt-get install libqt4-dev + - run qmake -project + - edit the generated file "with_external_libs.pro" and delete all lines but the x06_qt_world_mapper.cpp + - run qmake + - edit the generated Makefile, if necessary, and add -I../../../.. to include Boost and Boost.Geometry + - run make +