C++/Qt/NewRackProject/devicewidget.cpp
QGroupBox *DeviceWidget::createDevice()
{
    QGroupBox *gp = new QGroupBox(tr("Title one"), this);
    gp->setStyleSheet("background-color: gray; color: white");

    machineLayout = new QHBoxLayout(gp);


    // Create vm here
    VMWidget *vm = new VMWidget(gp, tr("Title"));
    machineLayout->addWidget(vm->createVM());

    VMWidget *vm1 = new VMWidget(gp, tr("Title"));
    machineLayout->addWidget(vm1->createVM());

    VMWidget *vm2 = new VMWidget(gp, tr("Title"));
    machineLayout->addWidget(vm2->createVM());


    return gp;
}
/**
 * @brief DeviceWidget::createDevice
 * @return QGroupBox
 *
 * Create device and create title & vms inside it
 */


Create device and create title & vms inside it
Create device and create title & vms inside it
QGroupBox *DeviceWidget::createDevice()
{
    QGroupBox *gp = new QGroupBox(tr("Title one"), this);
    gp->setStyleSheet("background-color: gray; color: white");
    machineLayout = new QHBoxLayout(gp);
    VMWidget *vm = new VMWidget(gp, tr("Title"));
    machineLayout->addWidget(vm->createVM());
    VMWidget *vm1 = new VMWidget(gp, tr("Title"));
    machineLayout->addWidget(vm1->createVM());
    VMWidget *vm2 = new VMWidget(gp, tr("Title"));
    machineLayout->addWidget(vm2->createVM());
    return gp;
}
QGroupBox * DeviceWidget :: createDevice ( ) { QGroupBox * gp = new QGroupBox ( tr ( " " ) , this ) ; gp -> setStyleSheet ( " " ) ; machineLayout = new QHBoxLayout ( gp ) ; VMWidget * vm = new VMWidget ( gp , tr ( " " ) ) ; machineLayout -> addWidget ( vm -> createVM ( ) ) ; VMWidget * vm1 = new VMWidget ( gp , tr ( " " ) ) ; machineLayout -> addWidget ( vm1 -> createVM ( ) ) ; VMWidget * vm2 = new VMWidget ( gp , tr ( " " ) ) ; machineLayout -> addWidget ( vm2 -> createVM ( ) ) ; return gp ; }
@brief DeviceWidget::createDevice
 @return QGroupBox
@brief DeviceWidget :: createDevice @return QGroupBox
// Create vm here