mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Перенес формирование Item ов в отдельный поток
This commit is contained in:
27
InstructorsAndTrainees/tasks/tasktreepreparation.h
Normal file
27
InstructorsAndTrainees/tasks/tasktreepreparation.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef TASKTREEPREPARATION_H
|
||||
#define TASKTREEPREPARATION_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QTreeWidgetItem>
|
||||
#include "module.h"
|
||||
|
||||
class TaskTreePreparation : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit TaskTreePreparation(QObject *parent = nullptr);
|
||||
|
||||
public:
|
||||
QTreeWidgetItem* addModuleToTreeWidget(Module* module, QTreeWidgetItem* parentItem = nullptr);
|
||||
|
||||
public Q_SLOTS:
|
||||
void slot_prepareListItems(QList<Module*> listAllModules);
|
||||
|
||||
Q_SIGNALS:
|
||||
void signal_listItemsReady(QList<QTreeWidgetItem*> listItems);
|
||||
|
||||
private:
|
||||
QList<QTreeWidgetItem*> listItems;
|
||||
};
|
||||
|
||||
#endif // TASKTREEPREPARATION_H
|
||||
Reference in New Issue
Block a user