From 9553f7078a275b7c9aa1c9b7a8a0f1f4d38eea9d Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 16 Mar 2006 16:31:09 +0000 Subject: *** empty log message *** --- client/mainwindow.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'client/mainwindow.cc') diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 08d68f9..57f1929 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -32,18 +32,22 @@ #include -#include "videowidget.h" #include "historywidget.h" -// Macro for creating buttons -static QPushButton *createButton(char* icon) +#include + +QPushButton *MainWindow::createButton(char* icon) { QPixmap pixmap(icon); + int w = (int)((double)x11Info().appDpiX() / 1.5); + int h = (int)((double)x11Info().appDpiY() / 1.5); + Qt::AspectRatioMode aspect = pixmap.width()setIconSize(pixmap.size()); btn->setIcon(pixmap); @@ -71,7 +75,7 @@ MainWindow::MainWindow(): QWidget() setLayout(layout); // Create the videoarea - VideoWidget *video = new VideoWidget(); + video = new VideoWidget(); layout->addWidget(video, 0,0, 1,4); // Create the control buttons -- cgit v1.2.3