Changeset View
Changeset View
Standalone View
Standalone View
src/mainwindow.cpp
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 57 | { | |||
---|---|---|---|---|---|
81 | setCentralWidget(centralWidget); | 81 | setCentralWidget(centralWidget); | ||
82 | } | 82 | } | ||
83 | 83 | | |||
84 | void MainWindow::newAtCoreInstance() | 84 | void MainWindow::newAtCoreInstance() | ||
85 | { | 85 | { | ||
86 | auto newInstanceWidget = new AtCoreInstanceWidget(); | 86 | auto newInstanceWidget = new AtCoreInstanceWidget(); | ||
87 | QString name = QString::number(m_instances->addTab(newInstanceWidget, i18n("Connect a printer"))); | 87 | QString name = QString::number(m_instances->addTab(newInstanceWidget, i18n("Connect a printer"))); | ||
88 | newInstanceWidget->setObjectName(name); | 88 | newInstanceWidget->setObjectName(name); | ||
89 | newInstanceWidget->setOpenFiles(m_openFiles); | ||||
89 | connect(this, &MainWindow::profilesChanged, newInstanceWidget, &AtCoreInstanceWidget::updateProfileData); | 90 | connect(this, &MainWindow::profilesChanged, newInstanceWidget, &AtCoreInstanceWidget::updateProfileData); | ||
90 | connect(newInstanceWidget, &AtCoreInstanceWidget::requestProfileDialog, [ this ] { | 91 | connect(newInstanceWidget, &AtCoreInstanceWidget::requestProfileDialog, [ this ] { | ||
91 | std::unique_ptr<ProfilesDialog> pd(new ProfilesDialog); | 92 | std::unique_ptr<ProfilesDialog> pd(new ProfilesDialog); | ||
92 | pd->exec(); | 93 | pd->exec(); | ||
93 | emit(profilesChanged()); | 94 | emit(profilesChanged()); | ||
94 | }); | 95 | }); | ||
95 | connect(newInstanceWidget, &AtCoreInstanceWidget::connectionChanged, this, &MainWindow::atCoreInstanceNameChange); | 96 | connect(newInstanceWidget, &AtCoreInstanceWidget::connectionChanged, this, &MainWindow::atCoreInstanceNameChange); | ||
96 | 97 | | |||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |