set idle timer in widget.cpp