From 8baafaa4593033e1b95dfd985911e1f87c9f8eb7 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 3 Apr 2006 08:20:25 +0000 Subject: *** empty log message *** --- client/mainwindow.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'client/mainwindow.cc') diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 57f1929..cab6189 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -35,6 +35,7 @@ #include "historywidget.h" #include +#include QPushButton *MainWindow::createButton(char* icon) { @@ -48,8 +49,9 @@ QPushButton *MainWindow::createButton(char* icon) pixmap = pixmap.scaled(w,h, aspect, Qt::SmoothTransformation); + QPushButton *btn = new QPushButton(); - btn->setIconSize(pixmap.size()); + btn->setIconSize(QSize(50,50)); btn->setIcon(pixmap); return btn; @@ -166,3 +168,10 @@ void MainWindow::freeze_clicked() 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