Commit 05db34b0 authored by Thomas Gubler's avatar Thomas Gubler

mapripper: autocontinue to next zoom level after 3s

parent 755ce85a
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include "mapripper.h" #include "mapripper.h"
#include <qtimer.h>
namespace mapcontrol namespace mapcontrol
{ {
...@@ -53,12 +56,15 @@ namespace mapcontrol ...@@ -53,12 +56,15 @@ namespace mapcontrol
{ {
++zoom; ++zoom;
QMessageBox msgBox; QMessageBox msgBox;
msgBox.setText(QString("Continue Ripping at zoom level %1?").arg(zoom)); msgBox.setText(QString("Continue Ripping at zoom level %1? (Continuing automatically after 3s)").arg(zoom));
// msgBox.setInformativeText("Do you want to save your changes?"); // msgBox.setInformativeText("Do you want to save your changes?");
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::Yes); msgBox.setDefaultButton(QMessageBox::Yes);
int ret = msgBox.exec(); QTimer::singleShot(3000, &msgBox, SLOT(accept()));
if(ret==QMessageBox::Yes) msgBox.exec();
int ret = msgBox.result();
if(ret==QMessageBox::Yes || ret == 1)
{ {
points.clear(); points.clear();
points=core->Projection()->GetAreaTileList(area,zoom,0); points=core->Projection()->GetAreaTileList(area,zoom,0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment