Commits

Boris Nagaev committed 88fbdd9

countdown example: do not pause, then resume, since it does not work in HTML

Comments (0)

Files changed (1)

examples/countdown.cpp

         a->expired()->connect(b, &Countdown::resume);
         //
         new WBreak(root());
-        new WText("Countdown, paused in 5 s, resumed in 10 s: ", root());
+        new WText("Countdown, paused in 10 s: ", root());
         Countdown* five = new Countdown(root());
-        five->pause(5 * SECOND);
-        five->resume(10 * SECOND);
+        five->pause(10 * SECOND);
         //
         new WBreak(root());
         new WText("Already paused countdown ", root());