33 lines
733 B
C++
33 lines
733 B
C++
#include "kylinagent.h"
|
|
#include <QApplication>
|
|
#include <QTranslator>
|
|
|
|
KylinAgent::KylinAgent(QObject *parent) : QObject(parent)
|
|
{
|
|
QLocale local;
|
|
QString locale = /*QLocale::system().*/local.name();
|
|
QTranslator* translator = new QTranslator(this);
|
|
if (translator->load(":/translations/kylin-keyring_"+ locale + ".qm")) {
|
|
QApplication::installTranslator(translator);
|
|
} else {
|
|
// qWarning() << "Translations load fail";
|
|
}
|
|
}
|
|
|
|
KylinAgent::~KylinAgent()
|
|
{
|
|
|
|
}
|
|
|
|
void KylinAgent::startKylinAgent()
|
|
{
|
|
m_secretAgnet = new KylinSecretAgent("kylinagent", pWidget, this);
|
|
}
|
|
|
|
//void KylinAgent::stopKylinAgent()
|
|
//{
|
|
// delete m_kylinAgnetObject;
|
|
// m_kylinAgnetObject = nullptr;
|
|
// return;
|
|
//}
|