Skip to content

Commit

Permalink
[文档和示例代码更新]: 对文档和示例代码进行了更新,以提高清晰度和一致性。
Browse files Browse the repository at this point in the history
- 在 `README.md` 中调整了播放器图片的显示大小,现在图片将占据90%的容器宽度和高度,增强了文档的视觉效果。
- 更新了 `player` 示例的 `main.cpp` 文件,增加了 `app.setActivationWindow(&w);` 行,以确保应用程序窗口的正确激活。
- 同样在 `transcoder` 示例的 `main.cc` 文件中进行了类似的更新,增加了 `app.setActivationWindow(&w);` 行,保证窗口激活的一致性。
- 修改了示例代码中的 `app.exec()` 返回值的处理方式,从 `int result = app.exec();` 改为使用 `auto` 关键字,这是为了提高代码的可读性和减少显式类型声明。
  • Loading branch information
RealChuan committed May 31, 2024
1 parent 2608a4f commit dc9e39f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

## Player

<div align=center><img src="doc/player.jpeg"></div>
<div align=center>
<img src="doc/player.jpeg" width="90%" height="90%">
</div>

### 需要一个强大的opengl和vulkan yuv渲染模块

Expand Down
5 changes: 3 additions & 2 deletions examples/player/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ auto main(int argc, char *argv[]) -> int
QNetworkProxyFactory::setUseSystemConfiguration(true);

MainWindow w;
app.setActivationWindow(&w);
w.show();

int result = app.exec();
auto ret = app.exec();
log->stop();
return result;
return ret;
}
5 changes: 3 additions & 2 deletions examples/transcoder/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ auto main(int argc, char *argv[]) -> int
QNetworkProxyFactory::setUseSystemConfiguration(true);

MainWindow w;
app.setActivationWindow(&w);
w.show();

int result = app.exec();
auto ret = app.exec();
log->stop();
return result;
return ret;
}

0 comments on commit dc9e39f

Please sign in to comment.