Merge pull request #3042 from Cacodemon345/patch-123
qt: Display device name separately in device configuration
This commit is contained in:
@@ -25,6 +25,8 @@
|
|||||||
#include <QFormLayout>
|
#include <QFormLayout>
|
||||||
#include <QSpinBox>
|
#include <QSpinBox>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
|
#include <QFrame>
|
||||||
|
#include <QLabel>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <86box/86box.h>
|
#include <86box/86box.h>
|
||||||
@@ -61,6 +63,12 @@ DeviceConfig::ConfigureDevice(const _device_ *device, int instance, Settings *se
|
|||||||
device_context_t device_context;
|
device_context_t device_context;
|
||||||
device_set_context(&device_context, device, instance);
|
device_set_context(&device_context, device, instance);
|
||||||
|
|
||||||
|
auto device_label = new QLabel(device->name);
|
||||||
|
dc.ui->formLayout->addRow(device_label);
|
||||||
|
auto line = new QFrame;
|
||||||
|
line->setFrameShape(QFrame::HLine);
|
||||||
|
line->setFrameShadow(QFrame::Sunken);
|
||||||
|
dc.ui->formLayout->addRow(line);
|
||||||
const auto *config = device->config;
|
const auto *config = device->config;
|
||||||
while (config->type != -1) {
|
while (config->type != -1) {
|
||||||
switch (config->type) {
|
switch (config->type) {
|
||||||
|
Reference in New Issue
Block a user