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