这篇教程C++ updateData函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中updateData函数的典型用法代码示例。如果您正苦于以下问题:C++ updateData函数的具体用法?C++ updateData怎么用?C++ updateData使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了updateData函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: updateDatavoid Transfer::onClick_pbSeparate(){ _data[cbSubsidized->currentIndex()-1]->clearTransfer(); _data[cbBuyer->currentIndex()-1]->clearTransfer(); emit updateData(2,true); onClick_pbBack();}
开发者ID:0marcos0,项目名称:Pedyrum,代码行数:9,
示例2: updateDatavoid UIStateHelper::setWidgetEnabled(QWidget *widget, bool enabled){ mWidgetEnabled[widget] = enabled; QMap<long, UIStateHelperData*>::iterator dataIt; for (dataIt = mData.begin(); dataIt != mData.end(); ++dataIt) { updateData(*dataIt); }}
开发者ID:RedCraig,项目名称:retroshare,代码行数:9,
示例3: updateDatavoid DefectsEditor::removeRow(){ QModelIndex index = tableView->selectionModel()->currentIndex(); QAbstractItemModel* model = tableView->model(); if (model->removeRows(index.row(), 1, index.parent())) { //updateActions(); updateData(index, index); }}
开发者ID:Debilski,项目名称:Wellenprogramm,代码行数:9,
示例4: updateDatavoid UIWater::updatePos(int newTileX, int newTileY){ if (tileX == newTileX && tileY == newTileY) return; tileX = newTileX; tileY = newTileY; updateData();}
开发者ID:Deamon87,项目名称:Noggit3Fork,代码行数:9,
示例5: updateDatavoid Calendar::setStartDate(const QDate &dateTime){ if (m_startDate == dateTime) { return; } m_startDate = dateTime; updateData(); emit startDateChanged();}
开发者ID:qidaizhe11,项目名称:MyCalendar-Components,代码行数:9,
示例6: QWidget/** * @details Constructs a ParameterWidget object. */ParameterWidget::ParameterWidget(const boost::shared_ptr<ParameterQObject>& p, QWidget* parent) : QWidget(parent), _param(p){ connect( p.get(), SIGNAL( updated() ), this, SLOT( updateData() ) ); connect( p.get(), SIGNAL( updatedSelection() ), this, SLOT( doSelectionUpdate() ) );}
开发者ID:chrisjwilliams,项目名称:hic,代码行数:12,
示例7: onlineChangedvoid SpeedWrapper::gconf_value_changed(){ bool ok; //check netspeed enabled if(!m_gconf_enabled->value().isValid()) m_gconf_enabled->set(true); //check netspeed interface if(!m_gconf_speed_interface->value().isValid()) m_gconf_speed_interface->set("wlan0"); //check netspeed update time if(!m_gconf_update_time->value().isValid()) m_gconf_update_time->set(1000); //check when online if(!m_gconf_when_online->value().isValid()) m_gconf_when_online->set(false); m_is_enabled = m_gconf_enabled->value().toBool(); m_speed_interface = m_gconf_speed_interface->value().toString(); m_when_online = m_gconf_when_online->value().toBool(); if(m_speed_interface.isEmpty() || m_speed_interface.isNull()) m_speed_interface = "wlan0"; m_update_time = m_gconf_update_time->value().toInt(&ok); if(!ok) m_update_time = 1000; QNetworkInterface interface = QNetworkInterface::interfaceFromName(m_speed_interface); m_network_interface_valid = interface.isValid(); bool online = (interface.flags().testFlag(QNetworkInterface::IsUp) && interface.flags().testFlag(QNetworkInterface::IsRunning)); if(online != m_isOnline) { emit onlineChanged(online); updateData(); } m_isOnline = online; if(m_is_enabled) { if(m_when_online) { if(m_isOnline) { m_timer->stop(); m_timer->start(m_update_time); }else{ m_timer->stop(); } }else{ m_timer->stop(); m_timer->start(m_update_time); } }else{ m_timer->stop(); }}
开发者ID:CODeRUS,项目名称:unrestricted-system-ui,代码行数:57,
示例8: updateDataQSize UIInformationItem::sizeHint(const QStyleOptionViewItem & /* option */, const QModelIndex &index) const{ /* Update data: */ updateData(index); if (m_text.isEmpty()) return QSize(0, 0); /* Return size: */ return m_pTextDocument->size().toSize();}
开发者ID:mdaniel,项目名称:virtualbox-org-svn-vbox-trunk,代码行数:9,
示例9: clearLabelsvoid FormJoinGame::show(QByteArray data){ clearLabels(); updateData(data); updateListOfGames(); show();}
开发者ID:patadejaguar,项目名称:GuerraDeTanques,代码行数:10,
示例10: updateDatavoid ObjectEditorWidget::onCurrentWorkingObjectChanged(int index){ if (mObjectsHierarchy.isEmpty() || index < 0 || index >= mObjectsHierarchy.size() || index == mObjectsHierarchy.indexOf(mCurrentObject)) return; mCurrentObject = mObjectsHierarchy[index]; updateData(mCurrentObject); if (DrawingSurfaceWidget::instance()) DrawingSurfaceWidget::instance()->update();}
开发者ID:daodaoliang,项目名称:moonriver,代码行数:10,
示例11: updateDatavoid FChart3d::on_SetFloorStyle(){ QAction *clickedStyle = qobject_cast<QAction *>(sender()); int _Style = clickedStyle->data().toInt(); this->setFloorStyle(Qwt3D::FLOORSTYLE(_Style)); updateData(); updateGL();}
开发者ID:rafaelfassi,项目名称:fassichip,代码行数:10,
示例12: whilevoid* MainWindow::getData(void){ while(isConnected) { sig_getData(); updateData(); QThread::msleep(100); } return NULL;}
开发者ID:KarstenSN,项目名称:E4PRJ4,代码行数:10,
示例13: findDatavoid UIStateHelper::setActive(int index, bool active){ UIStateHelperData *data = findData(index, false); if (!data) { return; } data->mActive = active; updateData(data);}
开发者ID:RedCraig,项目名称:retroshare,代码行数:10,
示例14: actionDialogvoid CActionsWidget::on_tbnEdit_clicked(){ QTreeWidgetItem *selectedItem = ui->twActions->currentItem(); if(selectedItem) { CActionDialog actionDialog(mConnectionName, selectedItem->text(ID).toInt(), this); connect(&actionDialog, SIGNAL(dataWasUpdated()), this, SLOT(updateData())); actionDialog.exec(); }}
开发者ID:Demonist,项目名称:TCS,代码行数:10,
示例15: make3dvoid RayCloudPlot::setStart(NDArray start){ bool success; auto conv = make3d(start, success); if (!success) return; m_start = conv; updateData(); emit startChanged(start);}
开发者ID:kitizz,项目名称:nutmeg,代码行数:11,
示例16: updateDatavoid TrayToolTip::refresh(){ updateData(); if(isVisible()) { if(QApplication::widgetAt(QCursor::pos()) != m_object) hide(); else redraw(); }}
开发者ID:LubosD,项目名称:fatrat,代码行数:11,
示例17: QAbstractListModelKdeConnectDevicesModel::KdeConnectDevicesModel(QObject *parent) : QAbstractListModel(parent){ daemon = new QDBusInterface("org.kde.kdeconnect", "/modules/kdeconnect", "org.kde.kdeconnect.daemon"); QDBusConnection::sessionBus().connect("org.kde.kdeconnect", "/modules/kdeconnect", "org.kde.kdeconnect.daemon", "deviceAdded", this, SLOT(updateData())); QDBusConnection::sessionBus().connect("org.kde.kdeconnect", "/modules/kdeconnect", "org.kde.kdeconnect.daemon", "deviceRemoved", this, SLOT(updateData())); QDBusConnection::sessionBus().connect("org.kde.kdeconnect", "/modules/kdeconnect", "org.kde.kdeconnect.daemon", "deviceRemoved", this, SLOT(deviceVisibilityChanged())); updateData();}
开发者ID:bao-boyle,项目名称:theshell,代码行数:11,
示例18: while/** * Draw a filled rectangle. */uint8_t SED1531::drawBox(uint8_t left, uint8_t top, uint8_t width, uint8_t height, uint8_t color){ uint8_t x; uint8_t mask; uint8_t data = 0x00; uint8_t page = top / 8; uint8_t bit = 1 << (top % 8); uint8_t collision=0; while(height != 0) { data |= bit; --height; bit <<= 1; if(bit == 0 || height == 0) { mask = color != GLCD_COLOR_INVERT ? ~data : 0xFF; if(color == GLCD_COLOR_CLEAR) { data = 0; } pageUpdateStart(page, left); if(mask == 0x00) { /* The entire byte is to be overwritten so don't bother with read-modify-write. */ GLCD_IO_PIN_A0_1(); sendRepeated(data, width); } else { if(color == GLCD_COLOR_COLLISION) { mask = 0x00; //only detect collision, do not write anything } for(x = 0; x < width; ++x) { if (updateData(data, mask)) collision=1; } } pageUpdateEnd(); ++page; data = 0x00; bit = 0x01; } } return collision;}
开发者ID:arnemauer,项目名称:IsaLib,代码行数:57,
示例19: updateDataPopupWnd2::PopupWnd2(POPUPDATA2 *ppd, POPUPOPTIONS *theCustomOptions, bool renderOnly){ m_signature = POPUP_OBJECT_SIGNARURE; m_textType = TT_NONE; m_options = theCustomOptions ? theCustomOptions : &PopupOptions; m_hfnText = fonts.text; m_hfnTitle = fonts.title; updateData(ppd); if (!renderOnly) startThread();}
开发者ID:ybznek,项目名称:miranda-ng,代码行数:11,
示例20: teamvoid TrainerMenu::on_profileList_currentIndexChanged(int){ if (ui->profileList->currentText() == team().name()) { return; } QSettings s; QString path = s.value("Profile/Path").toString() + "/" + QUrl::toPercentEncoding(ui->profileList->currentText()) + ".xml"; s.setValue("Profile/Current", path); team().profile().loadFromFile(path); updateData();}
开发者ID:Airisu,项目名称:pokemon-online,代码行数:11,
示例21: updateData// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>void SpectrumWidget::setSpectrum(double freqNyquist, const Math::ComplexArray &spec, Processing::Response *resp, QString exportBasename) { _exportBasename = exportBasename; _freqNyquist = freqNyquist; _spec = spec; _resp = resp; updateData(); update();}
开发者ID:aemanov,项目名称:seiscomp3,代码行数:13,
示例22: BaseToolTipTrayToolTip::TrayToolTip(QWidget* parent) : BaseToolTip(0, parent){ m_speeds[0].fill(0, VALUES); m_speeds[1].fill(0, VALUES); resize(WIDTH, HEIGHT); setAlignment(Qt::AlignTop); placeMe(); updateData();}
开发者ID:LubosD,项目名称:fatrat,代码行数:12,
示例23: __airportTrackerModuleManager::ModuleManager() : __airportTracker(new AirportTracker()), __flightTracker(new FlightTracker()), __modelsMatcher(new ModelMatcher()), __vatbookHandler(new VatbookHandler()) { connect(VatsinatorApplication::getSingletonPtr(), SIGNAL(glInitialized()), this, SLOT(__initAfterGL()), Qt::DirectConnection); connect(VatsinatorApplication::getSingletonPtr(), SIGNAL(dataUpdated()), this, SLOT(updateData()), Qt::DirectConnection);}
开发者ID:kariczek,项目名称:Vatsinator,代码行数:12,
示例24: mainint main(int argc, char * *argv) { int index = my_get_opt(argc, argv); //parameter char * table = argv[index]; char * action = argv[index+1]; struct DatabaseConfig config; config.server = "localhost"; config.database = "mytable"; config.table = table; FooOBJ fobj; fobj=newFooOBJ(config); /* create a new object of type "FooOBJ" */ memset(username,0,SIZE); memset(password,0,SIZE); /*read config*/ if(!readConfig()){ fprintf(stderr,"read config fail!"); return 1; } /* Change me */ char * server = "localhost"; char * database = "mytable"; //use oop db connection connetDatabase(fobj, username, password); if( strcmp(action,"list") == 0 ){ listData(fobj); } if( strcmp(action,"add") == 0 ){ addData(fobj, argv[index+2]); } if( strcmp(action,"del") == 0 ){ delData(fobj, atoi(argv[index+2])); } if( strcmp(action,"update") == 0 ){ updateData(fobj, atoi(argv[index+2]), argv[index+3]); } closeConnection(fobj); deleteFooOBJ(fobj); return 0;}
开发者ID:kalecgos0616,项目名称:mytable,代码行数:52,
示例25: updateDatavoid MApplicationMenuButtonView::setupModel(){ MButtonView::setupModel(); QList<const char*> modifications; modifications << MButtonModel::IconID; modifications << MButtonModel::IconVisible; modifications << MApplicationMenuButtonModel::ProgressIndicatorVisible; modifications << MApplicationMenuButtonModel::ArrowIconVisible; updateData(modifications); update();}
开发者ID:nemomobile-graveyard,项目名称:libmeegotouch,代码行数:13,
注:本文中的updateData函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ updateDisplayUnit函数代码示例 C++ updateCursor函数代码示例 |