Ejemplo n.º 1
0
	Checker::Checker (const KnownDictsManager *knownMgr, QObject *parent)
	: QObject { parent }
	, KnownMgr_ { knownMgr }
	{
		connect (knownMgr,
				SIGNAL (languagesChanged (QStringList)),
				this,
				SLOT (setLanguages (QStringList)));
		setLanguages (knownMgr->GetLanguages ());

		QSettings settings { QCoreApplication::organizationName (),
				QCoreApplication::applicationName () + "_Rosenthal_LearntWords" };
		LearntWords_ = settings.value ("LearntWords").value<QSet<QString>> ();
	}
Ejemplo n.º 2
0
	void KnownDictsManager::reemitLanguages ()
	{
		emit languagesChanged (GetLanguages ());
	}
Ejemplo n.º 3
0
void QMofOpaqueExpressionObject::removeLanguage(QString  language)
{
    qmodelingelementproperty_cast<QMofOpaqueExpression *>(this)->removeLanguage(language);
    emit languagesChanged(this->languages());
}