feat:draft version change

This commit is contained in:
semenov
2025-01-21 15:43:30 +03:00
parent 3e95be4447
commit 079a36a76d
16 changed files with 287 additions and 95 deletions

View File

@@ -467,9 +467,10 @@ void RecognizeSystem::xmlParser(QByteArray array)
else if(name == "Created")
data->setCreateData(QDateTime::fromString(value));
else if(name == "isChangeable")
{
data->setIsChangeable(value.toInt());
}
else if(name == "author")
data->setAuthor(value);
}
serverStreamingVersionDataList->append(data);

View File

@@ -97,6 +97,11 @@ bool ConnectorToServer::sendQueryTasksXML(QString type)
return true;
}
void ConnectorToServer::setLoginName(QString name)
{
versionSelectWidget->setAuthor(name);
}
void ConnectorToServer::SetConnectToServer()
{
emit sigSetConnect(dataParser->getServerSettings(),connectionThread);

View File

@@ -60,6 +60,7 @@ public:
void showVersionSelect();
void activateLoadAnimation(bool flag);
void setLoginName(QString name);
public slots:
/*void slot_AnswerQueryToDB(QList<Instructor>* listInstructors,
QList<Trainee>* listTrainees,

View File

@@ -16,6 +16,7 @@ public:
this->viewName = viewName;
this->createData = data;
this->size = size;
this->author = "";
}
void setName(QString viewName)
@@ -54,15 +55,26 @@ public:
{
return isChangeable;
}
void setIsChangeable(bool value)
{
isChangeable = value;
}
QString getAuthor() const
{
return author;
}
void setAuthor(const QString &value)
{
author = value;
}
private:
QString absolutePath;
QString viewName;
QString author;
QDateTime createData;
bool isChangeable;
qint32 size;
@@ -72,3 +84,5 @@ private: