mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-07-20 04:22:22 +08:00
新增虚拟机日志输出和读取功能(不使用安装器)
This commit is contained in:
parent
6881b8b6b6
commit
8c8ec31229
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<!-- Written by QtCreator 7.0.1, 2023-11-07T18:52:43. -->
|
<!-- Written by QtCreator 7.0.1, 2023-11-07T19:30:53. -->
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
@ -179,8 +179,8 @@
|
|||||||
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||||
<value type="int" key="EnableQmlDebugging">0</value>
|
<value type="int" key="EnableQmlDebugging">0</value>
|
||||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/gfdgd_xi/Desktop/deep-wine-runner/build-VirtualMachine-unknown-Debug</value>
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/gfdgd_xi/Desktop/build-VirtualMachine-unknown-Debug</value>
|
||||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/gfdgd_xi/Desktop/deep-wine-runner/build-VirtualMachine-unknown-Debug</value>
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/gfdgd_xi/Desktop/build-VirtualMachine-unknown-Debug</value>
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
@ -327,7 +327,7 @@
|
|||||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/gfdgd_xi/Desktop/deep-wine-runner/build-VirtualMachine-unknown-Debug</value>
|
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/gfdgd_xi/Desktop/build-VirtualMachine-unknown-Debug</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
|
@ -344,7 +344,20 @@ void MainWindow::on_actionVMLog_triggered()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
file.open(QIODevice::ReadOnly);
|
file.open(QIODevice::ReadOnly);
|
||||||
QInputDialog::getMultiLineText(this, "日志", "虚拟机日志",file.readAll());
|
QInputDialog::getMultiLineText(this, "安装日志", "虚拟机安装日志",file.readAll());
|
||||||
|
file.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void MainWindow::on_actionVMRunlLog_triggered()
|
||||||
|
{
|
||||||
|
QFile file("/tmp/windows-virtual-machine-installer-for-wine-runner-run.log");
|
||||||
|
if(!file.exists()){
|
||||||
|
QMessageBox::information(this, "提示", "没有日志文件");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
file.open(QIODevice::ReadOnly);
|
||||||
|
QInputDialog::getMultiLineText(this, "运行日志", "虚拟机运行日志",file.readAll());
|
||||||
file.close();
|
file.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +48,8 @@ private slots:
|
|||||||
|
|
||||||
void on_actionVMLog_triggered();
|
void on_actionVMLog_triggered();
|
||||||
|
|
||||||
|
void on_actionVMRunlLog_triggered();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool stopShowTime = 0;
|
bool stopShowTime = 0;
|
||||||
Ui::MainWindow *ui;
|
Ui::MainWindow *ui;
|
||||||
|
@ -452,7 +452,8 @@ p, li { white-space: pre-wrap; }
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>虚拟机</string>
|
<string>虚拟机</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionVMLog"/>
|
<addaction name="actionVMInstallLog"/>
|
||||||
|
<addaction name="actionVMRunlLog"/>
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="menuVM"/>
|
<addaction name="menuVM"/>
|
||||||
</widget>
|
</widget>
|
||||||
@ -476,9 +477,14 @@ p, li { white-space: pre-wrap; }
|
|||||||
<string>导出</string>
|
<string>导出</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionVMLog">
|
<action name="actionVMInstallLog">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>虚拟机日志</string>
|
<string>虚拟机安装日志</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionVMRunlLog">
|
||||||
|
<property name="text">
|
||||||
|
<string>虚拟机运行日志</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user