summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc14
1 files changed, 8 insertions, 6 deletions
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 <QX11Info>
#include <QMoveEvent>
+#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);
-}