void Receiver::processMyPendingDatagrams() { while (udpSocket->hasPendingDatagrams()) { QByteArray datagram; datagram.resize(udpSocket->pendingDatagramSize()); udpSocket->readDatagram(datagram.data(), datagram.size()); myQStr.append(datagram.data()); emit stringChanged(); } }
ToKeyConfig::ToKeyConfig(QSettings *settings, const QString &bindingType, CfgKeyEvent *event, SiblingsList *siblingsList, QWidget *parent) : BindingConfigurationWidget(settings, bindingType, event->configKey(), parent), siblingsList(siblingsList) { ui = new Ui_ToKeyConfig(); const QString m_bindingSettingsKey = BindingConfigurationWidgetFactory::bindingSettingsKey(event, bindingType); ui->setupUi(this); connect(ui->cfg_eventtype_keypress, SIGNAL(toggled(bool)), this, SLOT(radioButtonChanged(bool))); connect(ui->cfg_eventtype_keyrelease, SIGNAL(toggled(bool)), this, SLOT(radioButtonChanged(bool))); connect(ui->cfg_eventtype_keydoubleclick, SIGNAL(toggled(bool)), this, SLOT(radioButtonChanged(bool))); connect(ui->cfg_keysymbol, SIGNAL(textChanged(QString)), this, SLOT(stringChanged(QString))); ui->cfg_keysymbol->setCompleter(new X11KeySymbolsCompleter(this)); foreach(const QString keySym, X11KeySymbolsCompleter::keySymbols()) { ui->cfg_keysymbol->addItem(keySym, keySym); }
RunCommandConfig::RunCommandConfig(QSettings *settings, const QString &bindingType, CfgKeyEvent *event, QWidget *parent) : BindingConfigurationWidget(settings, bindingType, event->configKey(), parent) { ui = new Ui_RunCommandConfig(); const QString m_bindingSettingsKey = BindingConfigurationWidgetFactory::bindingSettingsKey(event, bindingType); ui->setupUi(this); EditStringListWrapper *cfg_Arguments = new EditStringListWrapper("cfg_Arguments", ui->cfg_Arguments_Widget); connect(cfg_Arguments, SIGNAL(stringListChanged(QStringList)), this, SLOT(stringListChanged(QStringList))); connect(ui->cfg_ApplicationName, SIGNAL(textChanged(QString)), this, SLOT(stringChanged(QString))); ui->cfg_Arguments_Widget->clear(); cfg_Arguments->insertStringList(settings->value(m_bindingSettingsKey.arg("Arguments")).toStringList()); ui->cfg_ApplicationName->setText(settings->value(m_bindingSettingsKey.arg("ApplicationName")).toString()); ui->cfg_Arguments_Widget->setCheckAtEntering(true); }
int FloatBinding::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = DataBinding::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: updateInt((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: updateString((*reinterpret_cast< QString(*)>(_a[1]))); break; case 2: intChanged((*reinterpret_cast< int(*)>(_a[1]))); break; case 3: stringChanged((*reinterpret_cast< QString(*)>(_a[1]))); break; default: ; } _id -= 4; } return _id; }
StringConstantBlockReprView::StringConstantBlockReprView(ConstantBlockRepr *blockRepr, QGraphicsItem *parent) : BlockReprView(blockRepr, parent), _constantBlockRepr(blockRepr) { QFont font("Arial", 11); font.setPixelSize(11); _lineEdit = new QLineEdit(_constantBlockRepr->getValue().toString()); _lineEdit->setFont(font); _lineEdit->resize(60, 17); QPalette palette; palette.setBrush(QPalette::Background, Qt::transparent); _lineEdit->setPalette(palette); _lineEdit->setAutoFillBackground(false); _proxy = new QGraphicsProxyWidget; _proxy->setWidget(_lineEdit); _proxy->setPos(BlockRepr::MARGIN_HORIZONTAL*2, BlockRepr::MARGIN); _proxy->setParentItem(this); connect(_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(stringChanged())); }
bool QVLCString::addCallback (QObject *tgt, const char *method, Qt::ConnectionType type) { return tgt->connect (this, SIGNAL(stringChanged(QString)), method, type); }
void QVLCString::trigger (vlc_value_t, vlc_value_t cur) { QString str = qfu(cur.psz_string); emit stringChanged (str); }
Qt5String::Qt5String(std::string label, QLabel* labelWidget) : String(label), m_labelWidget(labelWidget), m_lineEdit(new QLineEdit()) { QObject::connect(m_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(stringChanged(QString))); }