Exemplo n.º 1
0
int main() {
    uv_loop_t* loop = uv_default_loop();
    uv_idle_t handler = idleHandler(loop);
    uv_idle_start(&handler, callback);
    uv_run(loop, UV_RUN_DEFAULT);
    uv_loop_close(loop);
    return 0;
}
Exemplo n.º 2
0
EvasTargetWidget::EvasTargetWidget(QWidget *parent, const char *name)
  : QWidget(parent, name)
{
   this->setFocusPolicy(StrongFocus);
   this->setBackgroundMode(NoBackground);
   idleTimer = new QTimer(this);
   connect(idleTimer, SIGNAL(timeout()), SLOT(idleHandler()));
   idleTimer->start(0, FALSE);
   fullscreen = 0;
}