From 6da7cc9bd16bb16f03bf0695b79cb41f9f23f58f Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 12 Apr 2006 13:41:45 +0000 Subject: *** empty log message *** --- client/mainwindow.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'client/mainwindow.cc') diff --git a/client/mainwindow.cc b/client/mainwindow.cc index c3d29ba..239e10f 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -37,6 +37,8 @@ #include #include +#include "control.h" + QPushButton *MainWindow::createButton(char* icon) { QPixmap pixmap(icon); @@ -158,20 +160,20 @@ void MainWindow::record_clicked() void MainWindow::snapshot_clicked() { + MIaV::control.shoot(); history->addHistoryItem(new HistoryWidget(new QPixmap(PIXMAP_LOGO_SMALL))); } void MainWindow::freeze_clicked() { + if(MIaV::control.isFrozen()) { + MIaV::control.unfreeze(); + } else { + MIaV::control.freeze(); + } } void MainWindow::mute_clicked() { } -// A hack to ensure we draw the video in the right place -void MainWindow::moveEvent(QMoveEvent *event) -{ - QMoveEvent evt(video->pos(),video->pos()); - video->moveEvent(&evt); -} -- cgit v1.2.3