mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Style
This commit is contained in:
@@ -17,6 +17,18 @@
|
|||||||
<iconset resource="testDBpgSQL.qrc">
|
<iconset resource="testDBpgSQL.qrc">
|
||||||
<normaloff>:/resources/lms.png</normaloff>:/resources/lms.png</iconset>
|
<normaloff>:/resources/lms.png</normaloff>:/resources/lms.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolButtonStyle">
|
||||||
|
<enum>Qt::ToolButtonIconOnly</enum>
|
||||||
|
</property>
|
||||||
|
<property name="documentMode">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="dockNestingEnabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="dockOptions">
|
||||||
|
<set>QMainWindow::AllowTabbedDocks|QMainWindow::AnimatedDocks</set>
|
||||||
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ DialogSettings::DialogSettings(ConnectorToServer* connectorToServer, bool instru
|
|||||||
ui->btnUpdateStyle->setObjectName("btnUpdateStyle");
|
ui->btnUpdateStyle->setObjectName("btnUpdateStyle");
|
||||||
ui->btnSetVersion->setObjectName("btnSetVersion");
|
ui->btnSetVersion->setObjectName("btnSetVersion");
|
||||||
ui->btnSave->setObjectName("btnSave");
|
ui->btnSave->setObjectName("btnSave");
|
||||||
ui->btnSave->setObjectName("checkAutoStart");
|
ui->checkAutoStart->setObjectName("checkAutoStart");
|
||||||
|
|
||||||
this->connectorToServer = connectorToServer;
|
this->connectorToServer = connectorToServer;
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ InstructorsAndTraineesWidget::InstructorsAndTraineesWidget(QWidget *parent) :
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
ui->btnSettings->setObjectName("btnSettings");
|
ui->btnSettings->setObjectName("btnSettings");
|
||||||
|
ui->tabWidgetTasks->setObjectName("tabWidgetTasks");
|
||||||
#ifndef PROJECT_TYPE_DEBUG
|
#ifndef PROJECT_TYPE_DEBUG
|
||||||
ui->btnUpdateStyleSheet->setVisible(false);
|
ui->btnUpdateStyleSheet->setVisible(false);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -67,6 +67,35 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="btnAuthorizationInstructor">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>170</width>
|
||||||
|
<height>58</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Authorization Instructor</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="resources.qrc">
|
||||||
|
<normaloff>:/resources/icons/login-user.png</normaloff>:/resources/icons/login-user.png</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="iconSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="toolButtonStyle">
|
||||||
|
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lblDBisConnected">
|
<widget class="QLabel" name="lblDBisConnected">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@@ -106,35 +135,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="btnAuthorizationInstructor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>170</width>
|
|
||||||
<height>58</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Authorization Instructor</string>
|
|
||||||
</property>
|
|
||||||
<property name="icon">
|
|
||||||
<iconset resource="resources.qrc">
|
|
||||||
<normaloff>:/resources/icons/login-user.png</normaloff>:/resources/icons/login-user.png</iconset>
|
|
||||||
</property>
|
|
||||||
<property name="iconSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="checkable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="toolButtonStyle">
|
|
||||||
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lblLoggedIn">
|
<widget class="QLabel" name="lblLoggedIn">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@@ -328,7 +328,7 @@
|
|||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidgetTasks">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
@@ -57,11 +57,22 @@ AMMtasksWidget::AMMtasksWidget(ConnectorToServer* connectorToServer, TypeList ty
|
|||||||
ui->btnAssignTask->setObjectName("btnAssignTask");
|
ui->btnAssignTask->setObjectName("btnAssignTask");
|
||||||
ui->btnAssignTask->setEnabled(false);
|
ui->btnAssignTask->setEnabled(false);
|
||||||
if(type == TypeList::listCommon)
|
if(type == TypeList::listCommon)
|
||||||
|
{
|
||||||
|
ui->horizontalLayout_3->addWidget(ui->btnAssignTask);
|
||||||
|
ui->horizontalLayout_3->addWidget(ui->btnOnlyActive);
|
||||||
|
ui->horizontalLayout_3->addWidget(ui->btnCheck);
|
||||||
|
ui->horizontalLayout_3->addWidget(ui->btnDelete);
|
||||||
|
|
||||||
|
ui->horizontalLayout_3->setAlignment(Qt::AlignmentFlag::AlignLeft);
|
||||||
|
|
||||||
ui->btnDelete->setVisible(false);
|
ui->btnDelete->setVisible(false);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->btnOnlyActive->setVisible(false);
|
ui->btnOnlyActive->setVisible(false);
|
||||||
ui->btnAssignTask->setVisible(false);
|
ui->btnAssignTask->setVisible(false);
|
||||||
|
|
||||||
|
ui->verticalLayout->setAlignment(Qt::AlignmentFlag::AlignBottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->btnCheck->setVisible(false);
|
ui->btnCheck->setVisible(false);
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_1"/>
|
<layout class="QHBoxLayout" name="horizontalLayout_1"/>
|
||||||
@@ -28,17 +30,30 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer">
|
<widget class="QToolButton" name="btnAssignTask">
|
||||||
<property name="orientation">
|
<property name="minimumSize">
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>50</width>
|
||||||
<height>40</height>
|
<height>50</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<property name="text">
|
||||||
|
<string>Assign</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../resources.qrc">
|
||||||
|
<normaloff>:/resources/icons/assignTask.png</normaloff>:/resources/icons/assignTask.png</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="iconSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolButtonStyle">
|
||||||
|
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="btnOnlyActive">
|
<widget class="QToolButton" name="btnOnlyActive">
|
||||||
@@ -69,32 +84,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="btnAssignTask">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>50</width>
|
|
||||||
<height>50</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Assign</string>
|
|
||||||
</property>
|
|
||||||
<property name="icon">
|
|
||||||
<iconset resource="../resources.qrc">
|
|
||||||
<normaloff>:/resources/icons/assignTask.png</normaloff>:/resources/icons/assignTask.png</iconset>
|
|
||||||
</property>
|
|
||||||
<property name="iconSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolButtonStyle">
|
|
||||||
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="btnCheck">
|
<widget class="QToolButton" name="btnCheck">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@@ -151,6 +140,15 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_3"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
|
|||||||
@@ -50,6 +50,12 @@ FIMtasksWidget::FIMtasksWidget(ConnectorToServer* connectorToServer, TypeList ty
|
|||||||
|
|
||||||
if(type == TypeList::listCommon)
|
if(type == TypeList::listCommon)
|
||||||
{
|
{
|
||||||
|
ui->horizontalLayout_3->addWidget(ui->btnAssignTask);
|
||||||
|
ui->horizontalLayout_3->addWidget(ui->btnCheck);
|
||||||
|
ui->horizontalLayout_3->addWidget(ui->btnDelete);
|
||||||
|
|
||||||
|
ui->horizontalLayout_3->setAlignment(Qt::AlignmentFlag::AlignLeft);
|
||||||
|
|
||||||
ui->btnDelete->setVisible(false);
|
ui->btnDelete->setVisible(false);
|
||||||
ui->btnCheck->setVisible(false);
|
ui->btnCheck->setVisible(false);
|
||||||
}
|
}
|
||||||
@@ -64,6 +70,8 @@ FIMtasksWidget::FIMtasksWidget(ConnectorToServer* connectorToServer, TypeList ty
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->btnAssignTask->setVisible(false);
|
ui->btnAssignTask->setVisible(false);
|
||||||
|
|
||||||
|
ui->verticalLayout->setAlignment(Qt::AlignmentFlag::AlignBottom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,25 +15,14 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_1"/>
|
<layout class="QHBoxLayout" name="horizontalLayout_1"/>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="btnAssignTask">
|
<widget class="QToolButton" name="btnAssignTask">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@@ -116,6 +105,15 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_3"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user