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