Manager: Miscellaneous changes
This commit is contained in:
@@ -30,7 +30,6 @@ UpdateCheckDialog::
|
||||
UpdateCheckDialog(const UpdateCheck::UpdateChannel channel, QWidget *parent) : QDialog(parent), ui(new Ui::UpdateCheckDialog), updateCheck(new UpdateCheck(channel))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setWindowTitle(tr("Update check"));
|
||||
ui->statusLabel->setHidden(true);
|
||||
this->setFixedSize(400, 130);
|
||||
updateChannel = channel;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string>Update check</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
||||
@@ -26,7 +26,6 @@ UpdateDetails::
|
||||
UpdateDetails(const UpdateCheck::UpdateResult &updateResult, QWidget *parent) : QDialog(parent), ui(new Ui::UpdateDetails)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setWindowTitle("86Box Update");
|
||||
ui->updateTitle->setText("<b>An update to 86Box is available!</b>");
|
||||
QString currentVersionText;
|
||||
QString releaseType = updateResult.channel == UpdateCheck::UpdateChannel::Stable ? tr("version") : tr("build");
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string>86Box Update</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
||||
@@ -60,7 +60,7 @@ VMManagerDetails::VMManagerDetails(QWidget *parent) :
|
||||
ui->leftColumn->layout()->addWidget(networkSection);
|
||||
// ui->leftColumn->layout()->addWidget(createHorizontalLine());
|
||||
|
||||
inputSection = new VMManagerDetailSection(tr("Input Devices", "Header for Input section in VM Manager Details"));
|
||||
inputSection = new VMManagerDetailSection(tr("Input devices", "Header for Input section in VM Manager Details"));
|
||||
ui->leftColumn->layout()->addWidget(inputSection);
|
||||
// ui->leftColumn->layout()->addWidget(createHorizontalLine());
|
||||
|
||||
|
||||
@@ -216,7 +216,7 @@ VMManagerDetailSection::setSections()
|
||||
labelKey->setFont(smaller_font);
|
||||
labelValue->setFont(smaller_font);
|
||||
|
||||
labelKey->setText(section.name + ":");
|
||||
labelKey->setText(QCoreApplication::translate("", QString(section.name + ":").toUtf8().data()));
|
||||
labelValue->setText(line);
|
||||
if(!keyAdded) {
|
||||
frameGridLayout->addWidget(labelKey, row, 0, Qt::AlignLeft);
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
VMManagerMain::VMManagerMain(QWidget *parent) :
|
||||
QWidget(parent), ui(new Ui::VMManagerMain), selected_sysconfig(new VMManagerSystem) {
|
||||
ui->setupUi(this);
|
||||
this->setWindowTitle("86Box VM Manager");
|
||||
|
||||
// Set up the main listView
|
||||
ui->listView->setItemDelegate(new VMManagerListViewDelegate);
|
||||
@@ -100,7 +99,7 @@ VMManagerMain::VMManagerMain(QWidget *parent) :
|
||||
QAction killIcon(tr("&Kill"));
|
||||
contextMenu.addAction(&killIcon);
|
||||
connect(&killIcon, &QAction::triggered, [this, parent] {
|
||||
QMessageBox msgbox(QMessageBox::Warning, tr("Warning"), tr("Killing a virtual machine can cause data loss. Only do this if 86Box.exe process gets stuck.\n\nDo you really wish to kill the virtual machine \"%1\"?").arg(selected_sysconfig->displayName), QMessageBox::StandardButton::Yes | QMessageBox::StandardButton::No, parent);
|
||||
QMessageBox msgbox(QMessageBox::Warning, tr("Warning"), tr("Killing a virtual machine can cause data loss. Only do this if the 86Box process gets stuck.\n\nDo you really wish to kill the virtual machine \"%1\"?").arg(selected_sysconfig->displayName), QMessageBox::StandardButton::Yes | QMessageBox::StandardButton::No, parent);
|
||||
msgbox.exec();
|
||||
if (msgbox.result() == QMessageBox::Yes) {
|
||||
selected_sysconfig->process->kill();
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
extern "C" {
|
||||
#include <86box/86box.h> // for vmm_path
|
||||
#include <86box/version.h>
|
||||
}
|
||||
|
||||
#if EMU_BUILD_NUM != 0
|
||||
|
||||
@@ -42,7 +42,7 @@ VMManagerMainWindow(QWidget *parent)
|
||||
// Connect signals from the VMManagerMain widget
|
||||
connect(vmm, &VMManagerMain::selectionChanged, this, &VMManagerMainWindow::vmmSelectionChanged);
|
||||
|
||||
setWindowTitle(tr("86Box VM Manager"));
|
||||
setWindowTitle(tr("%1 VM Manager").arg(EMU_NAME));
|
||||
setCentralWidget(vmm);
|
||||
|
||||
// Set up the buttons
|
||||
@@ -97,6 +97,9 @@ VMManagerMainWindow(QWidget *parent)
|
||||
auto *completerModel = new QStringListModel(allStrings, completer);
|
||||
completer->setModel(completerModel);
|
||||
searchBar->setCompleter(completer);
|
||||
#ifdef Q_OS_WINDOWS
|
||||
ui->toolBar->setBackgroundRole(QPalette::Light);
|
||||
#endif
|
||||
ui->toolBar->setVisible(false);
|
||||
// END REMOVE
|
||||
|
||||
|
||||
@@ -52,12 +52,18 @@
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar"/>
|
||||
<widget class="QToolBar" name="toolBar">
|
||||
<property name="autoFillBackground">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>toolBar</string>
|
||||
</property>
|
||||
<property name="movable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="allowedAreas">
|
||||
<set>Qt::TopToolBarArea</set>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
@@ -212,9 +218,6 @@
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExit">
|
||||
<property name="icon">
|
||||
<iconset theme="QIcon::ApplicationExit"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>E&xit</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user