PSQL id 06.11.2024

This commit is contained in:
krivoshein
2024-11-06 16:06:32 +03:00
parent 0f1fa71c33
commit f4ca58ce91
89 changed files with 1131 additions and 763 deletions

View File

@@ -1,31 +1,25 @@
#include "commonview.h"
CommonView::CommonView(TypeView type, QWidget *parent):
CommonView::CommonView(TypeView type, bool adminMode, QWidget *parent):
QWidget(parent),
treeWidget(nullptr),
typeView(type),
archiveVisible(false),
notLoggedInVisible(false),
adminMode(false)
adminMode(adminMode)
{
}
void CommonView::setItemColorArchive(QTreeWidgetItem *item)
{
int columnCount = treeWidget->columnCount();
for (int i = 0; i < columnCount; i++)
item->setBackground(i, QBrush(QColor(220, 220, 220)));
setItemColor(item,QColor(220, 220, 220));
}
void CommonView::setItemColorNoArchive(QTreeWidgetItem *item)
{
int columnCount = treeWidget->columnCount();
for (int i = 0; i < columnCount; i++)
item->setBackground(i, QBrush(QColor(255, 255, 255)));
setItemColor(item,QColor(255, 255, 255));
}
void CommonView::setItemColor(QTreeWidgetItem *item, QColor color)