本文整理汇总了C++中TaskPtr::infoFilenameStem方法的典型用法代码示例。如果您正苦于以下问题:C++ TaskPtr::infoFilenameStem方法的具体用法?C++ TaskPtr::infoFilenameStem怎么用?C++ TaskPtr::infoFilenameStem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TaskPtr
的用法示例。
在下文中一共展示了TaskPtr::infoFilenameStem方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: build
void SingleTaskMenu::build()
{
TaskFactoryPtr factory = m_app.factory();
TaskPtr specimen = factory->create(m_tablename);
// Common items
QString info_icon_filename = UiFunc::iconFilename(UiConst::ICON_INFO);
m_items = {
MenuItem(tr("Options")).setLabelOnly(),
MAKE_CHANGE_PATIENT(app),
MenuItem(
tr("Task information"),
HtmlMenuItem(
m_title,
FileFunc::taskHtmlFilename(specimen->infoFilenameStem()),
info_icon_filename),
info_icon_filename
),
MenuItem(tr("Task instances") + ": " + m_title).setLabelOnly(),
};
// Task items
TaskPtrList tasklist = factory->fetch(m_tablename);
qDebug() << Q_FUNC_INFO << "-" << tasklist.size() << "tasks";
for (auto task : tasklist) {
m_items.append(MenuItem(task, false));
}
// Call parent buildMenu()
MenuWindow::build();
// Signals
connect(&m_app, &CamcopsApp::selectedPatientChanged,
this, &SingleTaskMenu::selectedPatientChanged,
Qt::UniqueConnection);
connect(&m_app, &CamcopsApp::taskAlterationFinished,
this, &SingleTaskMenu::taskFinished,
Qt::UniqueConnection);
connect(this, &SingleTaskMenu::offerAdd,
m_p_header, &MenuHeader::offerAdd,
Qt::UniqueConnection);
connect(m_p_header, &MenuHeader::addClicked,
this, &SingleTaskMenu::addTask,
Qt::UniqueConnection);
emit offerAdd(m_anonymous || m_app.patientSelected());
}