Пример #1
0
void GeneratorNode::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
{
	bool changed = generator_->configure();
	if (changed) {
		evictCache();
		auto cs = qobject_cast<ControlScene*>(scene());
		Q_ASSERT(cs != nullptr);
		cs->graphUpdated();
	}
	Node::mouseDoubleClickEvent(event);
}
QTM_BEGIN_NAMESPACE

QGalleryTrackerChangeNotifier::QGalleryTrackerChangeNotifier(
        const QString &service,
        const QGalleryDBusInterfacePointer &daemonInterface, QObject *parent)
    : QObject(parent)
    , m_daemonInterface(daemonInterface)
    , m_service(service)
{
    connect(
        m_daemonInterface.data(), SIGNAL(GraphUpdated(QString,QVector<QGalleryTrackerGraphUpdate>,QVector<QGalleryTrackerGraphUpdate>)),
        this, SLOT(graphUpdated(QString,QVector<QGalleryTrackerGraphUpdate>,QVector<QGalleryTrackerGraphUpdate>)));
}