Diffstat (limited to 'noncore/multimedia/camera/previewwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/previewwidget.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/multimedia/camera/previewwidget.cpp b/noncore/multimedia/camera/previewwidget.cpp index f87dcc9..08330d0 100644 --- a/noncore/multimedia/camera/previewwidget.cpp +++ b/noncore/multimedia/camera/previewwidget.cpp @@ -72,3 +72,17 @@ void PreviewWidget::mousePressEvent( QMouseEvent* ) emit contextMenuRequested(); } + +void PreviewWidget::setRefreshingRate( int ms ) +{ + killTimers(); + if ( ms ) + startTimer( ms ); +} + + +void PreviewWidget::refresh() +{ + QTimerEvent t( 10 ); // event id is meaningless in this case + timerEvent( &t ); +} |