新增拖动条

This commit is contained in:
2024-06-29 12:04:46 +08:00
parent 535232ac5f
commit 380cf74bbf
3 changed files with 23 additions and 6 deletions

View File

@@ -2474,7 +2474,7 @@ updateThingsString = QtCore.QCoreApplication.translate("U", '''※1、精简冗
※3、Wine 打包器不允许版本号开头输入首字母以及版本号不允许出现空格
※4、Wine 打包器生成的 deb 同时支持使用 spark-dwine-helper 和 deepin-wine-helper
※5、支持调用拓展 Qemu
※6、优化小屏幕使用体验''')
※6、新增滚动条,优化小屏幕使用体验''')
for i in information["Thank"]:
thankText += f"{i}\n"
updateTime = "2024年06月29日"
@@ -2747,8 +2747,6 @@ mainLayout.setColumnStretch(0, 2)
mainLayout.setColumnStretch(1, 1)
mainLayout.addWidget(returnText, 0, 1, 2, 1)
window.setStyleSheet("""word-wrap: break-word;""")
# 版权
if offLineInformation.replace("\n", "").replace(" ", "") == "":
copy = QtWidgets.QLabel(f"""程序版本:{version}<b>提示Wine 无法保证可以运行所有的 Windows 程序,如果想要运行更多 Windows 程序,可以考虑虚拟机和双系统</b><br/>
@@ -3334,6 +3332,15 @@ if o1.currentText() == "":
o1.addItem("没有识别到任何Wine请在菜单栏“程序”安装Wine或安装任意Wine应用")
SetFont(setting["FontSize"])
# 设置滚动条
areaScroll = QtWidgets.QScrollArea(window)
areaScroll.setWidgetResizable(True)
areaScroll.setWidget(widget)
areaScroll.setFrameShape(QtWidgets.QFrame.NoFrame)
window.setCentralWidget(areaScroll)
window.resize(int(app.primaryScreen().availableGeometry().size().width() * 0.9), int(app.primaryScreen().availableGeometry().size().height() * 0.9))
# Mini 模式
# MiniMode(True)
sys.exit(app.exec_())