before task parser

This commit is contained in:
krivoshein
2024-11-25 15:25:55 +03:00
parent 2ed1eac956
commit 7637922872
401 changed files with 39759 additions and 1630 deletions

View File

@@ -1,15 +1,17 @@
#include "commonview.h"
CommonView::CommonView(TypeView type, bool adminMode, QWidget *parent):
CommonView::CommonView(InterfaceDataBaseLMS* dbLMS, TypeView type, QWidget *parent):
QWidget(parent),
dbLMS(dbLMS),
treeWidget(nullptr),
typeView(type),
archiveVisible(false),
notLoggedInVisible(false),
adminMode(adminMode)
adminMode(false),
authComplited(false)
{
treeWidget = new QTreeWidget();
}
void CommonView::setItemColorArchive(QTreeWidgetItem *item)
@@ -24,8 +26,8 @@ void CommonView::setItemColorNoArchive(QTreeWidgetItem *item)
void CommonView::setItemColor(QTreeWidgetItem *item, QColor color)
{
int columnCount = treeWidget->columnCount();
//int columnCount = treeWidget->columnCount();
for (int i = 0; i < columnCount; i++)
for (int i = 0; i < item->columnCount(); i++)
item->setBackground(i, color);
}