summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
authordeva <deva>2006-04-03 08:20:25 +0000
committerdeva <deva>2006-04-03 08:20:25 +0000
commit8baafaa4593033e1b95dfd985911e1f87c9f8eb7 (patch)
treed767a363f4e5214a10aeef11584cd50ef4ba0aa4 /client/mainwindow.cc
parent451678d3aadf81b6f39f2f0e7957f4bf704bf9af (diff)
*** empty log message ***
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);
+}