PSQL 01.11.2024

This commit is contained in:
krivoshein
2024-11-01 11:45:13 +03:00
parent 024cd38bd6
commit 9422c5e257
274 changed files with 3223 additions and 3102 deletions

View File

@@ -0,0 +1,37 @@
#include "commonview.h"
CommonView::CommonView(TypeView type, QWidget *parent):
QWidget(parent),
treeWidget(nullptr),
typeView(type),
archiveVisible(false),
notLoggedInVisible(false),
adminMode(false)
{
}
void CommonView::setItemColorArchive(QTreeWidgetItem *item)
{
int columnCount = treeWidget->columnCount();
for (int i = 0; i < columnCount; i++)
item->setBackground(i, QBrush(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)));
}
void CommonView::setItemColor(QTreeWidgetItem *item, QColor color)
{
int columnCount = treeWidget->columnCount();
for (int i = 0; i < columnCount; i++)
item->setBackground(i, color);
}