void ReceiptsWidget::settleDownInPartWidget(ReceiptsPartWidget *part_widget) { connect(part_widget, SIGNAL(resetPartRequest()), this, SLOT(reset())); connect(part_widget, SIGNAL(reloadPartRequest()), this, SLOT(reset())); connect(eventPlugin(), &Event::EventPlugin::dbEventNotify, this, &ReceiptsWidget::onDbEventNotify, Qt::QueuedConnection); }
void ClassesWidget::settleDownInPartWidget(ThisPartWidget *part_widget) { connect(part_widget, SIGNAL(resetPartRequest()), this, SLOT(reset())); connect(part_widget, SIGNAL(reloadPartRequest()), this, SLOT(reload())); qfw::Action *a_import = part_widget->menuBar()->actionForPath("import", true); a_import->setText("&Import"); { qfw::Action *a = new qfw::Action("OCad v8", this); connect(a, SIGNAL(triggered()), this, SLOT(import_ocad_v8())); a_import->addActionInto(a); } { qfw::Action *a = new qfw::Action("OCad IOF-XML", this); connect(a, SIGNAL(triggered()), this, SLOT(import_ocad_iofxml())); a_import->addActionInto(a); } qfw::ToolBar *main_tb = part_widget->toolBar("main", true); //main_tb->addAction(m_actCommOpen); { QLabel *lbl = new QLabel(tr("Stage ")); main_tb->addWidget(lbl); } { m_cbxStage = new QComboBox(); main_tb->addWidget(m_cbxStage); } }
void ReceiptsWidget::settleDownInPartWidget(ReceiptsPartWidget *part_widget) { connect(part_widget, SIGNAL(resetPartRequest()), this, SLOT(reset())); connect(part_widget, SIGNAL(reloadPartRequest()), this, SLOT(reset())); connect(eventPlugin(), SIGNAL(dbEventNotify(QString,QVariant)), this, SLOT(onDbEventNotify(QString,QVariant)), Qt::QueuedConnection); }