本文整理汇总了C++中propertiesChanged函数的典型用法代码示例。如果您正苦于以下问题:C++ propertiesChanged函数的具体用法?C++ propertiesChanged怎么用?C++ propertiesChanged使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了propertiesChanged函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SIGNAL
void ModelView::doConnections()
{
if( m_model != NULL )
{
QObject::connect( m_model, SIGNAL( dataChanged() ), widget(), SLOT( update() ) );
QObject::connect( m_model, SIGNAL( propertiesChanged() ), widget(), SLOT( update() ) );
}
}
示例2: propertiesChanged
void InBandStream::setDataStanzaType(int AType)
{
if (streamState() == IDataStreamSocket::Closed)
{
FStanzaType = AType;
emit propertiesChanged();
}
}
示例3: propertiesChanged
void AutomatableModel::setStep( const float step )
{
if( m_step != step )
{
m_step = step;
emit propertiesChanged();
}
}
示例4: propertiesChanged
void MainWindow::setUpMainWindow()
{
ui->checkBox_showTets->setChecked(true);
ui->checkBox_showVerts->setChecked(true);
ui->checkBox_showAxes->setChecked(true);
ui->checkBox_showObject->setChecked(true);
ui->checkBox_showGround->setChecked(true);
propertiesChanged();
}
示例5: Image
UnsignedDerivedImage::UnsignedDerivedImage(ImagePtr base) : Image(base->getUid()+"_u", vtkImageDataPtr(), base->getName())
{
this->mBase = base;
// redirected signals:
connect(base.get(), SIGNAL(transformChanged()), this, SIGNAL(transformChanged()));
connect(base.get(), SIGNAL(propertiesChanged()), this, SIGNAL(propertiesChanged()));
connect(base.get(), SIGNAL(clipPlanesChanged()), this, SIGNAL(clipPlanesChanged()));
connect(base.get(), SIGNAL(cropBoxChanged()), this, SIGNAL(cropBoxChanged()));
// override signals:
connect(base.get(), SIGNAL(transferFunctionsChanged()), this, SLOT(unsignedTransferFunctionsChangedSlot()));
connect(base.get(), SIGNAL(vtkImageDataChanged()), this, SLOT(unsignedImageChangedSlot()));
connect(this, SIGNAL(transferFunctionsChanged()), this, SLOT(testSlot()));
this->unsignedImageChangedSlot();
this->unsignedTransferFunctionsChangedSlot();
}
示例6: i
void QNetworkManagerInterfaceDeviceModem::propertiesSwap(QMap<QString,QVariant> map)
{
QMapIterator<QString, QVariant> i(map);
while (i.hasNext()) {
i.next();
propertyMap.insert(i.key(),i.value());
}
Q_EMIT propertiesChanged(map);
}
示例7: switch
void KnotsPlayer::onPropertiesUpdated()
{
switch( _status )
{
case Playing:
{
emit durationChanged(_properties->_duration);
emit positionChanged( _localPosition );
emit propertiesChanged(*_properties);
break;
}
default:
emit propertiesChanged(*_properties);
break;
};
}
示例8: ModemInterface
ModemManager::ModemLocationInterface::ModemLocationInterface(const QString & path, QObject * parent)
: ModemInterface(*new ModemLocationInterfacePrivate(path, this), parent)
{
Q_D(const ModemLocationInterface);
d->modemLocationIface.connection().connect(ModemManager::DBUS_SERVICE,
path, QLatin1String("org.freedesktop.DBus.Properties"),
QLatin1String("MmPropertiesChanged"), QLatin1String("sa{sv}"),
this, SLOT(propertiesChanged(QString,QVariantMap)));
}
示例9: disconnect
void DataMetricRep::setDataMetric(DataMetricPtr value)
{
if (mMetric)
{
disconnect(mMetric.get(), SIGNAL(transformChanged()), this, SLOT(setModified()));
disconnect(mMetric.get(), SIGNAL(propertiesChanged()), this, SLOT(setModified()));
}
mMetric = value;
if (mMetric)
{
connect(mMetric.get(), SIGNAL(propertiesChanged()), this, SLOT(setModified()));
connect(mMetric.get(), SIGNAL(transformChanged()), this, SLOT(setModified()));
}
this->clear();
this->setModified();
}
示例10: I_D
void BaseInstance::setFlags(const QSet<InstanceFlag> &flags)
{
I_D(BaseInstance);
if (flags != d->m_flags)
{
d->m_flags = flags;
emit flagsChanged();
emit propertiesChanged(this);
}
}
示例11: tr
void PropertiesDialog::apply()
{
Properties::Instance()->colorScheme = colorSchemaCombo->currentText();
Properties::Instance()->font = fontSampleLabel->font();//fontComboBox->currentFont();
Properties::Instance()->guiStyle = (styleComboBox->currentText() == tr("System Default")) ?
QString() : styleComboBox->currentText();
Properties::Instance()->emulation = emulationComboBox->currentText();
/* do not allow to go above 99 or we lose transparency option */
(appTransparencyBox->value() >= 100) ?
Properties::Instance()->appTransparency = 99
:
Properties::Instance()->appTransparency = appTransparencyBox->value();
Properties::Instance()->termTransparency = termTransparencyBox->value();
Properties::Instance()->highlightCurrentTerminal = highlightCurrentCheckBox->isChecked();
Properties::Instance()->askOnExit = askOnExitCheckBox->isChecked();
Properties::Instance()->savePosOnExit = savePosOnExitCheckBox->isChecked();
Properties::Instance()->saveSizeOnExit = saveSizeOnExitCheckBox->isChecked();
Properties::Instance()->useCWD = useCwdCheckBox->isChecked();
Properties::Instance()->scrollBarPos = scrollBarPos_comboBox->currentIndex();
Properties::Instance()->tabsPos = tabsPos_comboBox->currentIndex();
Properties::Instance()->keyboardCursorShape = keybCursorShape_comboBox->currentIndex();
Properties::Instance()->hideTabBarWithOneTab = hideTabBarCheckBox->isChecked();
Properties::Instance()->menuVisible = showMenuCheckBox->isChecked();
Properties::Instance()->m_motionAfterPaste = motionAfterPasting_comboBox->currentIndex();
Properties::Instance()->historyLimited = historyLimited->isChecked();
Properties::Instance()->historyLimitedTo = historyLimitedTo->value();
saveShortcuts();
Properties::Instance()->saveSettings();
Properties::Instance()->dropShowOnStart = dropShowOnStartCheckBox->isChecked();
Properties::Instance()->dropHeight = dropHeightSpinBox->value();
Properties::Instance()->dropWidht = dropWidthSpinBox->value();
Properties::Instance()->dropShortCut = QKeySequence(dropShortCutEdit->text());
Properties::Instance()->useBookmarks = useBookmarksCheckBox->isChecked();
Properties::Instance()->bookmarksFile = bookmarksLineEdit->text();
saveBookmarksFile(Properties::Instance()->bookmarksFile);
Properties::Instance()->terminalsPreset = terminalPresetComboBox->currentIndex();
Properties::Instance()->changeWindowTitle = changeWindowTitleCheckBox->isChecked();
Properties::Instance()->changeWindowIcon = changeWindowIconCheckBox->isChecked();
emit propertiesChanged();
}
示例12: qDebug
void Service::propertyChanged(const QString &name, const QDBusVariant &value)
{
qDebug() << "Service PropertyChanged" << name;
m_properties[name] = value.variant();
if (name == "State")
emit stateChanged();
emit propertiesChanged();
}
示例13: model
void knob::doConnections()
{
if( model() != NULL )
{
QObject::connect( model(), SIGNAL( dataChanged() ),
this, SLOT( friendlyUpdate() ) );
QObject::connect( model(), SIGNAL( propertiesChanged() ),
this, SLOT( update() ) );
}
}
示例14: disconnect
void MetricReferenceArgumentList::set(int index, DataPtr p)
{
if (mArgument[index] == p)
return;
if (mArgument[index])
{
disconnect(mArgument[index].get(), SIGNAL(transformChanged()), this, SIGNAL(argumentsChanged()));
disconnect(mArgument[index].get(), SIGNAL(propertiesChanged()), this, SIGNAL(argumentsChanged()));
}
mArgument[index] = p;
if (mArgument[index])
{
connect(mArgument[index].get(), SIGNAL(transformChanged()), this, SIGNAL(argumentsChanged()));
connect(mArgument[index].get(), SIGNAL(propertiesChanged()), this, SIGNAL(argumentsChanged()));
}
emit argumentsChanged();
}
示例15: setRange
void ComboBoxModel::clear()
{
setRange( 0, 0 );
for( const Item& i : m_items )
{
delete i.second;
}
m_items.clear();
emit propertiesChanged();
}