Skip to content

Commit

Permalink
Merge pull request mavlink#576 from thomasgubler/mapripper
Browse files Browse the repository at this point in the history
mapripper: autocontinue to next zoom level after 3s
  • Loading branch information
Susurrus committed Mar 8, 2014
2 parents 70bed89 + 26ec8e3 commit 2d850e6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions libs/opmapcontrol/src/mapwidget/mapripper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "mapripper.h"

#include <qtimer.h>

namespace mapcontrol
{

Expand Down Expand Up @@ -53,12 +56,15 @@ namespace mapcontrol
{
++zoom;
QMessageBox msgBox;
msgBox.setText(QString("Continue Ripping at zoom level %1?").arg(zoom));
msgBox.setText(tr("Continue Ripping at zoom level %1? (Continuing automatically after 3s)").arg(zoom));
// msgBox.setInformativeText("Do you want to save your changes?");
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::Yes);
int ret = msgBox.exec();
if(ret==QMessageBox::Yes)
QTimer::singleShot(3000, &msgBox, SLOT(accept()));
msgBox.exec();
int ret = msgBox.result();

if(ret==QMessageBox::Yes || ret == 1)
{
points.clear();
points=core->Projection()->GetAreaTileList(area,zoom,0);
Expand Down

0 comments on commit 2d850e6

Please sign in to comment.