mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Оптимизировал CommonView
This commit is contained in:
@@ -27,10 +27,27 @@ public:
|
||||
objGroup
|
||||
};
|
||||
|
||||
protected:
|
||||
enum ColumnsTreeUsers{
|
||||
clmn_Name = 0,
|
||||
clmn_Login,
|
||||
clmn_Password,
|
||||
clmn_Class,
|
||||
clmn_Computer,
|
||||
clmn_IP_address,
|
||||
clmn_Administrator,
|
||||
clmn_Archived,
|
||||
clmn_Logged,
|
||||
clmn_ID,
|
||||
clmn_count
|
||||
};
|
||||
|
||||
public:
|
||||
CommonView(ConnectorToServer* connectorToServer, TypeView type, QWidget *parent = nullptr);
|
||||
~CommonView();
|
||||
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
|
||||
public:
|
||||
void setAdminMode(bool adminMode)
|
||||
{
|
||||
@@ -67,9 +84,20 @@ protected:
|
||||
|
||||
void setItemColor(QTreeWidgetItem* item, QColor color);
|
||||
|
||||
void preparationTreeWidget();
|
||||
|
||||
private:
|
||||
int calculateWidth_0Column();
|
||||
void setWidthColumnsTree();
|
||||
|
||||
protected:
|
||||
void reSetHeadTreeWidget();
|
||||
|
||||
protected:
|
||||
ConnectorToServer* connectorToServer;
|
||||
QTreeWidget* treeWidget;
|
||||
QList<int> listWidthColumn;
|
||||
QString TypeUserDB;
|
||||
QMutex mtxTreeWidget;
|
||||
TypeView typeView;
|
||||
bool archiveVisible;
|
||||
|
||||
Reference in New Issue
Block a user