本文整理汇总了C++中TQListViewItem::itemBelow方法的典型用法代码示例。如果您正苦于以下问题:C++ TQListViewItem::itemBelow方法的具体用法?C++ TQListViewItem::itemBelow怎么用?C++ TQListViewItem::itemBelow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TQListViewItem
的用法示例。
在下文中一共展示了TQListViewItem::itemBelow方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: slotDown
void KMConfigFonts::slotDown()
{
TQListViewItem *citem = m_fontpath->selectedItem(), *nitem = 0;
if (!citem || !citem->itemBelow())
return;
nitem = new TQListViewItem(m_fontpath, citem->itemBelow(), citem->text(0));
delete citem;
m_fontpath->setSelected(nitem, true);
}
示例2: slotDown
void ConfFilters::slotDown()
{
TQListViewItem *item = m_filters->currentItem();
if (item && item->itemBelow())
{
m_filters->moveItem(item, 0, item->itemBelow());
m_filters->setCurrentItem(item);
updateButton();
}
}
示例3: slotSelected
void KMConfigFonts::slotSelected()
{
TQListViewItem *item = m_fontpath->selectedItem();
m_remove->setEnabled(item);
m_up->setEnabled(item && item->itemAbove());
m_down->setEnabled(item && item->itemBelow());
}
示例4: findNext
TQListViewItem* findNext(TQListViewItem *item)
{
TQListViewItem *next = item->itemBelow();
while (next && next->depth() > item->depth())
next = next->itemBelow();
if (next && next->depth() == item->depth())
return next;
else
return 0;
}
示例5: updateButton
void ConfFilters::updateButton()
{
TQListViewItem *item = m_filters->currentItem();
bool state=item && item->itemBelow();
m_remove->setEnabled(item);
m_down->setEnabled(state);
state=item && item->itemAbove();
m_up->setEnabled(state);
m_change->setEnabled(item);
}
示例6: unfoldTreeList
void KJanusWidget::unfoldTreeList( bool persist )
{
if( mFace == TreeList )
{
if( persist )
connect( mTreeList, TQT_SIGNAL( collapsed( TQListViewItem * ) ), this, TQT_SLOT( slotReopen( TQListViewItem * ) ) );
else
disconnect( mTreeList, TQT_SIGNAL( collapsed( TQListViewItem * ) ), this, TQT_SLOT( slotReopen( TQListViewItem * ) ) );
for( TQListViewItem * item = mTreeList->firstChild(); item; item = item->itemBelow() )
item->setOpen( true );
}