Diffstat (limited to 'noncore/multimedia/camera/previewwidget.cpp') (more/less context) (ignore 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 | |||
@@ -69,6 +69,20 @@ void PreviewWidget::timerEvent( QTimerEvent* ) | |||
69 | 69 | ||
70 | void PreviewWidget::mousePressEvent( QMouseEvent* ) | 70 | void PreviewWidget::mousePressEvent( QMouseEvent* ) |
71 | { | 71 | { |
72 | emit contextMenuRequested(); | 72 | emit contextMenuRequested(); |
73 | } | 73 | } |
74 | 74 | ||
75 | |||
76 | void PreviewWidget::setRefreshingRate( int ms ) | ||
77 | { | ||
78 | killTimers(); | ||
79 | if ( ms ) | ||
80 | startTimer( ms ); | ||
81 | } | ||
82 | |||
83 | |||
84 | void PreviewWidget::refresh() | ||
85 | { | ||
86 | QTimerEvent t( 10 ); // event id is meaningless in this case | ||
87 | timerEvent( &t ); | ||
88 | } | ||