改进部分代码
parent
f7845e1515
commit
8beba8758b
|
@ -4,8 +4,10 @@
|
||||||
|
|
||||||
#if (QT_VERSION > QT_VERSION_CHECK(5,0,0))
|
#if (QT_VERSION > QT_VERSION_CHECK(5,0,0))
|
||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
|
#ifdef websocket
|
||||||
#include <QtWebSockets>
|
#include <QtWebSockets>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "app.h"
|
#include "app.h"
|
||||||
|
|
||||||
|
|
|
@ -274,7 +274,9 @@ void VideoWidget::drawBorder(QPainter *painter)
|
||||||
void VideoWidget::drawBg(QPainter *painter)
|
void VideoWidget::drawBg(QPainter *painter)
|
||||||
{
|
{
|
||||||
painter->save();
|
painter->save();
|
||||||
|
if (bgColor != Qt::transparent) {
|
||||||
painter->fillRect(rect(), bgColor);
|
painter->fillRect(rect(), bgColor);
|
||||||
|
}
|
||||||
|
|
||||||
//背景图片为空则绘制文字,否则绘制背景图片
|
//背景图片为空则绘制文字,否则绘制背景图片
|
||||||
if (bgImage.isNull()) {
|
if (bgImage.isNull()) {
|
||||||
|
|
Loading…
Reference in New Issue