MCPcopy Create free account
hub / github.com/afbjorklund/lima-gui / quickSetString

Method quickSetString

window.cpp:525–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525QString Window::quickSetString()
526{
527 QStringList args;
528 QComboBox *vmType = quickDialog->findChild<QComboBox *>("vmType");
529 if (vmType && vmType->property("changed").isValid()) {
530 args << ".vmType = \"" + vmType->currentText() + "\"";
531 }
532 QComboBox *arch = quickDialog->findChild<QComboBox *>("arch");
533 if (arch && arch->property("changed").isValid()) {
534 args << ".arch = \"" + arch->currentText() + "\"";
535 }
536 QLineEdit *cpus = quickDialog->findChild<QLineEdit *>("cpus");
537 if (cpus && cpus->property("changed").isValid()) {
538 args << ".cpus= " + cpus->text();
539 }
540 QLineEdit *memory = quickDialog->findChild<QLineEdit *>("memory");
541 if (memory && memory->property("changed").isValid()) {
542 args << ".memory = \"" + memory->text() + "\"";
543 }
544 QLineEdit *disk = quickDialog->findChild<QLineEdit *>("disk");
545 if (disk && disk->property("changed").isValid()) {
546 args << ".disk = \"" + disk->text() + "\"";
547 }
548 QComboBox *mountType = quickDialog->findChild<QComboBox *>("mountType");
549 if (mountType && mountType->property("changed").isValid()) {
550 args << ".mountType = \"" + mountType->currentText() + "\"";
551 }
552 QComboBox *audiodev = quickDialog->findChild<QComboBox *>("audiodev");
553 if (audiodev && audiodev->property("changed").isValid()) {
554 args << ".audio.device = \"" + audiodev->currentText() + "\"";
555 }
556 QComboBox *display = quickDialog->findChild<QComboBox *>("display");
557 if (display && display->property("changed").isValid()) {
558 args << ".video.display = \"" + display->currentText() + "\"";
559 }
560 return args.join(" | ");
561}
562
563void Window::setChanged(const QString &)
564{

Callers

nothing calls this directly

Calls 1

textMethod · 0.80

Tested by

no test coverage detected