Fixed ChatWidget Margin's

Set Alignment for frame off's Video icon
This commit is contained in:
defnax 2015-10-07 01:35:31 +02:00
parent 993ca63106
commit 95bdd7f0a7
3 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,7 @@ QVideoOutputDevice::QVideoOutputDevice(QWidget *parent)
void QVideoOutputDevice::showFrameOff() void QVideoOutputDevice::showFrameOff()
{ {
setPixmap(QPixmap(":/images/video-icon-big.png").scaled(QSize(height()*4/3,height()),Qt::KeepAspectRatio,Qt::SmoothTransformation)) ; setPixmap(QPixmap(":/images/video-icon-big.png").scaled(QSize(height()*4/3,height()),Qt::KeepAspectRatio,Qt::SmoothTransformation)) ;
setAlignment(Qt::AlignCenter);
} }
void QVideoOutputDevice::showFrame(const QImage& img) void QVideoOutputDevice::showFrame(const QImage& img)

View File

@ -37,6 +37,9 @@
<enum>QFrame::Raised</enum> <enum>QFrame::Raised</enum>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<property name="margin">
<number>0</number>
</property>
<item> <item>
<widget class="QFrame" name="infoFrame"> <widget class="QFrame" name="infoFrame">
<property name="palette"> <property name="palette">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB