本文整理汇总了C++中QList::next方法的典型用法代码示例。如果您正苦于以下问题:C++ QList::next方法的具体用法?C++ QList::next怎么用?C++ QList::next使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QList
的用法示例。
在下文中一共展示了QList::next方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: menu_Browse
void UISearchPage::menu_Browse()
{
QList<QListViewItem> list = m_view->selectedItems();
QListViewItem * item;
QString path;
for ( item = list.first(); item != 0; item = list.next() )
{
path = item->text( UIPageView::Col_Path );
if ( path.isEmpty() )
return ;
IOMessage * io = new IOMessage( 0 );
io->setMessageType( IONapsterCodes::BrowseRequest );
io->insert( "nick", item->text( UIPageView::Col_Nick ) );
io->insert( "path", item->text( UIPageView::Col_Path ) );
io->insert( "name", item->text( UIPageView::Col_Name ) );
io->insert( "speed", item->text( UIPageView::Col_Link ) );
io->insert( "bitrate", item->text( UIPageView::Col_Bitr ) );
io->insert( "host", item->text( UIPageView::Col_Host ) );
io->insert( "time", item->text( UIPageView::Col_Time ) );
io->insert( "size", item->text( UIPageView::Col_Size ) );
io->insert( "freq", item->text( UIPageView::Col_Freq ) );
emit sendIO( io );
delete io;
}
}
示例2: slotRefreshWindowMenu
void App::slotRefreshWindowMenu()
{
QWidget* widget;
int id = 0;
QList <QWidget> wl = workspace()->windowList();
QString dir;
settings()->get(KEY_SYSTEM_DIR, dir);
dir += QString("/") + PIXMAPPATH;
m_windowMenu->clear();
m_windowMenu->insertItem(QPixmap(dir + QString("/cascadewindow.xpm")), "Cascade", this, SLOT(slotWindowCascade()), 0, ID_WINDOW_CASCADE);
m_windowMenu->insertItem(QPixmap(dir + QString("/tilewindow.xpm")), "Tile", this, SLOT(slotWindowTile()), 0, ID_WINDOW_TILE);
m_windowMenu->insertSeparator();
for (widget = wl.first(); widget != NULL; widget = wl.next())
{
m_windowMenu->insertItem(widget->caption(), id);
if (widget->isVisible() == true)
{
m_windowMenu->setItemChecked(id, true);
}
id++;
}
connect(m_windowMenu, SIGNAL(activated(int)), this, SLOT(slotWindowMenuCallback(int)));
}
示例3: createJoystickContents
void Doc::createJoystickContents(QList<QString> &list)
{
QString name;
QString fdName;
Joystick* j = NULL;
for (QString* s = list.next(); s != NULL; s = list.next())
{
if (*s == QString("Entry"))
{
s = list.prev();
break;
}
else if (*s == QString("FDName"))
{
fdName = *(list.next());
}
else if (*s == QString("Name"))
{
name = *(list.next());
j = joystickPlugin()->search(fdName);
if (j == NULL || j->name() != name)
{
QString text;
text.sprintf("Unable to find joystick \"%s\" from <%s> while loading workspace file.\n", (const char*) name, (const char*) fdName);
text += QString("Do you want to select another device (press Yes) or skip this joystick (press No)?");
if (QMessageBox::critical(NULL, QString("QLC"), text, QMessageBox::Yes,
QMessageBox::No) == QMessageBox::Yes)
{
j = joystickPlugin()->selectJoystick();
}
}
if (j != NULL)
{
j->createContents(list);
addInputDevice(j);
j->open();
j->start();
}
}
}
}
示例4: update_global_settings
void UmlCanvas::update_global_settings()
{
UmlCanvas * c;
for (c = All.first(); c != 0; c = All.next()) {
c->br_diagram->update_drawing_settings();
c->show_shadow = c->br_diagram->get_shadow();
c->draw_all_relations = c->br_diagram->get_draw_all_relations();
}
}
示例5: layoutTabs
void UserTabBar::layoutTabs()
{
QTabBar::layoutTabs();
#if QT_VERSION < 300
QList<QTab> *tList = tabList();
for (QTab *t = tList->first(); t; t = tList->next()){
t->r.setHeight(height());
}
#endif
}
示例6: isBold
bool UserTabBar::isBold(UserWnd *wnd)
{
QList<QTab> *tList = tabList();
for (QTab *t = tList->first(); t; t = tList->next()){
UserTab *tab = static_cast<UserTab*>(t);
if (tab->wnd() == wnd)
return tab->isBold();
}
return false;
}
示例7: createVirtualConsole
void VirtualConsole::createVirtualConsole(QList<QString>& list)
{
QString t;
QRect rect(10, 10, 400, 400);
for (QString* s = list.next(); s != NULL; s = list.next())
{
if (*s == QString("Entry"))
{
list.prev();
break;
}
else if (*s == QString("Mode"))
{
t = *(list.next());
if (t == QString("Design"))
{
setMode(Design);
}
else
{
setMode(Operate);
}
}
else if (*s == QString("X"))
{
t = *(list.next());
rect.setX(t.toInt());
}
else if (*s == QString("Y"))
{
t = *(list.next());
rect.setY(t.toInt());
}
else if (*s == QString("Width"))
{
t = *(list.next());
rect.setWidth(t.toInt());
}
else if (*s == QString("Height"))
{
t = *(list.next());
rect.setHeight(t.toInt());
}
else
{
list.next();
}
}
setGeometry(rect);
}
示例8: toggle
void Expert::toggle(const char *name,bool state)
{
QList<IInput> *inputs = m_dependencies->find(name);
ASSERT(inputs!=0);
IInput *input = inputs->first();
while (input)
{
input->setEnabled(state);
input = inputs->next();
}
}
示例9: raiseTab
void UserTabBar::raiseTab(unsigned id)
{
QList<QTab> *tList = tabList();
for (QTab *t = tList->first(); t; t = tList->next()){
UserTab *tab = static_cast<UserTab*>(t);
if (tab->wnd()->id() == id){
setCurrentTab(tab);
return;
}
}
}
示例10: setBold
void UserTabBar::setBold(unsigned id, bool bBold)
{
QList<QTab> *tList = tabList();
for (QTab *t = tList->first(); t; t = tList->next()){
UserTab *tab = static_cast<UserTab*>(t);
if (tab->wnd()->id() == id){
if (tab->setBold(bBold))
repaint();
break;
}
}
}
示例11: updateFunctionList
void FunctionCollectionEditor::updateFunctionList()
{
ASSERT(m_functionCollection != NULL);
QList <CollectionItem> il = m_functionCollection->items();
m_functionList->clear();
for (CollectionItem* item = il.first(); item != NULL; item = il.next())
{
new QListViewItem(m_functionList, item->callerDevice->name(), item->feederFunction->name());
}
}
示例12: printChilds
/** Virtuelle Print-Funktion fuer Testzwecke. Gibt Infos zu den Knoten aus */
void FormBaseNode::printChilds(){
//Liste der Kinder holen
QList<FormBaseNode> nodelist = this->children();
cout << ">>call: FormBaseNode::printChilds() - "<<name_<<endl;
//Fuer alle Kinder die 'printChilds' Fkt. aufrufen
FormBaseNode *node;
for ( node = nodelist.first(); node != 0; node = nodelist.next() )
node->printChilds();
cout << "<<call: FormBaseNode::printChilds() - "<<name_<<endl;
}
示例13: changeTab
void UserTabBar::changeTab(unsigned id)
{
layoutTabs();
QList<QTab> *tList = tabList();
for (QTab *t = tList->first(); t; t = tList->next()){
UserTab *tab = static_cast<UserTab*>(t);
if (tab->wnd()->id() == id){
tab->setText(tab->wnd()->getName());
break;
}
}
}
示例14: createContents
void Bus::createContents(QList <QString> &list)
{
for (QString* s = list.next(); s != NULL; s = list.next())
{
if (*s == QString("Entry"))
{
s = list.prev();
break;
}
else if (*s == QString("Name"))
{
m_name = *(list.next());
}
else if (*s == QString("ID"))
{
m_id = list.next()->toInt();
}
else if (*s == QString("Type"))
{
m_type = (Type) list.next()->toInt();
}
else if (*s == QString("Value"))
{
m_value = list.next()->toInt();
}
}
}
示例15: createJoystickContents
void Doc::createJoystickContents(QList<QString> &list)
{
QString name;
QString fdName;
for (QString* s = list.next(); s != NULL; s = list.next())
{
if (*s == QString("Entry"))
{
s = list.prev();
break;
}
else if (*s == QString("FDName"))
{
fdName = *(list.next());
}
else if (*s == QString("Name"))
{
name = *(list.next());
}
}
}