本文整理汇总了C++中Transfer::createDetailsWidget方法的典型用法代码示例。如果您正苦于以下问题:C++ Transfer::createDetailsWidget方法的具体用法?C++ Transfer::createDetailsWidget怎么用?C++ Transfer::createDetailsWidget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transfer
的用法示例。
在下文中一共展示了Transfer::createDetailsWidget方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: displayDestroyed
void MainWindow::displayDestroyed()
{
Queue* q = getCurrentQueue();
//QModelIndex i = treeTransfers->currentIndex();
QList<int> sel = getSelection();
Transfer* d = 0;
if(q != 0 && sel.size() == 1)
d = q->at(sel[0]);
if(QWidget* w = stackedDetails->currentWidget())
{
//disconnect(w, SIGNAL(destroyed()), this, SLOT(displayDestroyed()));
stackedDetails->removeWidget(w);
delete w;
}
m_pDetailsDisplay = 0;
if(d != 0)
{
QWidget* widgetDisplay = new QWidget(stackedDetails);
m_pDetailsDisplay = d->createDetailsWidget(widgetDisplay);
if(m_pDetailsDisplay)
{
stackedDetails->insertWidget(0,widgetDisplay);
stackedDetails->setCurrentIndex(0);
connect(m_pDetailsDisplay, SIGNAL(destroyed()), this, SLOT(displayDestroyed()));
}
else
delete widgetDisplay;
}
doneQueue(q);
}