当前位置: 首页>>代码示例>>C++>>正文


C++ propertyChanged函数代码示例

本文整理汇总了C++中propertyChanged函数的典型用法代码示例。如果您正苦于以下问题:C++ propertyChanged函数的具体用法?C++ propertyChanged怎么用?C++ propertyChanged使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了propertyChanged函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: propertyChanged

void QDesignerIntegration::updateProperty(const QString &name, const QVariant &value, bool enableSubPropertyHandling)
{
    d->updateProperty(name, value, enableSubPropertyHandling);
    emit propertyChanged(core()->formWindowManager()->activeFormWindow(), name, value);
}
开发者ID:2gis,项目名称:2gisqt5android,代码行数:5,代码来源:abstractintegration.cpp

示例2: propertyChanged

void MediaPlayer2Player::volumeChanged(double v)
{
	propertyChanged("Volume", vol = v);
}
开发者ID:arthurzam,项目名称:QMPlay2,代码行数:4,代码来源:MPRIS2.cpp

示例3: path

DBusSessionManagerInterface::~DBusSessionManagerInterface()
{
    QDBusConnection::sessionBus().disconnect(service(), path(), "org.freedesktop.DBus.Properties",  "PropertiesChanged",  "sa{sv}as", this, SLOT(propertyChanged(QDBusMessage)));
}
开发者ID:oberon2007,项目名称:deepin-session-ui-manjaro,代码行数:4,代码来源:dbussessionmanager.cpp

示例4: QString

void MediaPlayer2Player::coverFile(const QString &filePath)
{
	m_data["mpris:artUrl"] = QString("file://" + filePath);
	propertyChanged("Metadata", m_data);
	removeCover = false;
}
开发者ID:arthurzam,项目名称:QMPlay2,代码行数:6,代码来源:MPRIS2.cpp

示例5: propertyChanged

// Set the "fold.at.else" property.
void QsciLexerCMake::setAtElseProp()
{
    emit propertyChanged("fold.at.else",(fold_atelse ? "1" : "0"));
}
开发者ID:6qat,项目名称:robomongo,代码行数:5,代码来源:qscilexercmake.cpp

示例6: switch

void
Controller::handleStateEvent(
	EdsStateEvent	inEvent,
	EdsUInt32	inEventData )
{
    switch( inEvent ) {
	/*
	 *  Camera has lost connection to host computer, either because
	 *  it was disconnected by unplugging a cord, opening the
	 *  compact flash compartment, turning the camera off, auto
	 *  shut-off, or by other means.
	 */
	case kEdsStateEvent_Shutdown:
	    if( camera->handle() != 0 ) {
		stopLiveView();
		EdsCloseSession( camera->handle() );
		EdsRelease( camera->handle() );
		camera->setHandle( 0 );
	    }
	    // signal view of change in connection status
	    camera->initialize();
	    emit propertyChanged( kEdsPropID_ProductName, 0 );
	    emit eventReport( new Event( Event::ConnectionLost ) );
	    break;
	/*
	 *  Notifies of whether or not (0/1) there are objects waiting to
	 *  be transferred to the host computer. This is useful when
	 *  ensuring all shot images have been transferred when the
	 *  application is closed. A value of 1 is passed initially
	 *  (whether it is a single shot or a burst of shots to download),
	 *  followed by a 0 when downloading has completed.
	 */
	case kEdsStateEvent_JobStatusChanged:
	    camera->setObjectsWaiting( inEventData );
	    break;
	/*
	 *  Notifies that the camera will shut down after a specific period. 
	 *  Generated only if auto shut-off is set. Exactly when notification
	 *  is issued (that is, the number of seconds until shutdown) varies
	 *  depending on the camera model. If the camera is allowed to shut
	 *  down, the connection will be lost and can only be reestablished
	 *  by pressing the camera's shutter button half-way (or pressing
	 *  menu, disp). To continue operation without having the camera
	 *  shut down, use EdsSendCommand to extend the auto shut-off timer.
	 *  inEventData contains the number of seconds to shutdown.
	 */
	case kEdsStateEvent_WillSoonShutDown:
	    EdsSendCommand( camera->handle(),
			    kEdsCameraCommand_ExtendShutDownTimer,
			    0 );
	    break;
	/*
	 *  As the counterpart event to kEdsStateEvent_WillSoonShutDown,
	 *  this event notifies of updates to the number of seconds until
	 *  a camera shuts down. After the update, the period until shutdown
	 *  is model-dependent. Not all cameras notify of this event.
	 */
	case kEdsStateEvent_ShutDownTimerUpdate:
	    // ignore
	    break;
	/*
	 *  Notifies that a requested release has failed, due to focus
	 *  failure or similar factors: inEventData contains error code.
	 *  Hasn't occurred yet.
	 */
	case kEdsStateEvent_CaptureError:
	    emit eventReport( new Event( Event::CaptureFailure, inEventData ) );
	    break;
	/*
	 *  Notifies of internal SDK errors. If this error event is received,
	 *  the issuing device will probably not be able to continue working
	 *  properly, so cancel the remote connection.
	 */
	case kEdsStateEvent_InternalError:
	    stopLiveView();
	    closeSessionCommand();
	    camera->initialize();
	    // signal view of change in connection status
	    emit propertyChanged( kEdsPropID_ProductName, 0 );
	    emit eventReport( new Event( Event::ConnectionLost ) );
	    break;
	/*
	 *  Not documented and hasn't occurred yet.
	 */
	case kEdsStateEvent_AfResult:
	    emit eventReport(
		new Event( Event::AFResultUnhandled, inEventData ) );
	    break;
	/*
	 *  Notifies of the exposure time during bulb shooting. Events are
	 *  issued in about one-second intervals during bulb shooting. This
	 *  event is only issued when bulb shooting is started on the computer.
	 *  inEventData contains the exposure time in seconds.
	 */
	case kEdsStateEvent_BulbExposureTime:
	    emit eventReport(
		new Event( Event::BulbExposureTime, inEventData ) );
	    break;
    }
}
开发者ID:rudi-c,项目名称:computational-photography-research,代码行数:100,代码来源:Controller.cpp

示例7: propertyChanged

// Set the "lexer.xml.allow.scripts" property.
void QsciLexerXML::setScriptsProp()
{
    emit propertyChanged("lexer.xml.allow.scripts",(scripts ? "1" : "0"));
}
开发者ID:OFFIS-Automation,项目名称:Framework,代码行数:5,代码来源:qscilexerxml.cpp

示例8: propertyChanged

void Element::_emitPropertyChanged(const QString& propertyName)
{
  emit propertyChanged(getId(), propertyName, property(propertyName.toAscii()));
}
开发者ID:vliaskov,项目名称:mapmap,代码行数:4,代码来源:Element.cpp

示例9: propertyChanged

// Set the "lexer.html.mako" property.
void QsciLexerHTML::setMakoProp()
{
    emit propertyChanged("lexer.html.mako", (mako_templates ? "1" : "0"));
}
开发者ID:firateski,项目名称:sqlitebrowser,代码行数:5,代码来源:qscilexerhtml.cpp

示例10: propertyChanged

// Set the "ps.tokenize" property.
void QsciLexerPostScript::setTokenizeProp()
{
    emit propertyChanged("ps.tokenize",(ps_tokenize ? "1" : "0"));
}
开发者ID:AEtherSurfer,项目名称:robomongo,代码行数:5,代码来源:qscilexerpostscript.cpp

示例11: propertyChanged

void ContextPaneTextWidget::onCurrentFontChanged(const QFont &font)
{
    font.family();
    emit propertyChanged(QLatin1String("font.family"), QVariant(QLatin1Char('"') + font.family() + QLatin1Char('"')));
}
开发者ID:ProDataLab,项目名称:qt-creator,代码行数:5,代码来源:contextpanetextwidget.cpp

示例12: propertyChanged

void ContextPaneWidgetRectangle::onBorderSolidClicked()
{
    if (ui->borderSolid->isChecked()) {
        emit propertyChanged("border.color", "\"black\"");
    }
}
开发者ID:pcacjr,项目名称:qt-creator,代码行数:6,代码来源:contextpanewidgetrectangle.cpp

示例13: propertyChanged

// Set the "fold.compact" property.
void QsciLexerPO::setCompactProp()
{
    emit propertyChanged("fold.compact",(fold_compact ? "1" : "0"));
}
开发者ID:Aahanbhatt,项目名称:robomongo,代码行数:5,代码来源:qscilexerpo.cpp

示例14: propertyChanged

// Set the "fold.comment" property.
void QsciLexerRuby::setCommentProp()
{
    emit propertyChanged("fold.comment", (fold_comments ? "1" : "0"));
}
开发者ID:fusigi0930,项目名称:qnotepad-pp,代码行数:5,代码来源:qscilexerruby.cpp

示例15: propertyChanged

void NetworkRegistrationWatcher::onPropertyChanged(QString name, QDBusVariant value)
{
    emit propertyChanged(objectPath(), name, value.variant());
}
开发者ID:special,项目名称:timed,代码行数:4,代码来源:networkregistrationwatcher.cpp


注:本文中的propertyChanged函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。