feat:增加报警事件实现框架相关文件

This commit is contained in:
duanshengchao 2025-09-18 15:50:18 +08:00
parent 3e6cd36162
commit 956483cc94
18 changed files with 1157 additions and 13 deletions

View File

@ -25,6 +25,7 @@ set(H_HEADER_FILES
include/global.h
include/mainWindow.h
include/customBorderContainer.h
include/customLineEdit.h
include/customMenu.h
include/customTab.h
include/customTabBar.h
@ -47,6 +48,9 @@ set(H_HEADER_FILES
include/customCalendarWidget.h
include/dateTimeSelectionPanel.h
include/httpRequestManager.h
include/alarmEventGlobal.h
include/alarmEventMainDialog.h
include/alarmEventDataView.h
)
set(CPP_SOURCE_FILES
@ -54,6 +58,7 @@ set(CPP_SOURCE_FILES
source/main.cpp
source/mainWindow.cpp
source/customBorderContainer.cpp
source/customLineEdit.cpp
source/customMenu.cpp
source/customTab.cpp
source/customTabBar.cpp
@ -76,6 +81,8 @@ set(CPP_SOURCE_FILES
source/customCalendarWidget.cpp
source/dateTimeSelectionPanel.cpp
source/httpRequestManager.cpp
source/alarmEventMainDialog.cpp
source/alarmEventDataView.cpp
)
set(UI_FILES
@ -94,6 +101,7 @@ set(UI_FILES
ui/dateTimeWidget.ui
ui/dateTimeSelectionPanel.ui
ui/dpConfigurationDialog.ui
ui/alarmEventMainDialog.ui
)
set(UTIL_FILES

View File

@ -0,0 +1,21 @@
#ifndef ALARMEVENTDATAVIEW_H
#define ALARMEVENTDATAVIEW_H
#include <QWidget>
class QTableView;
class QVBoxLayout;
class AlarmEventDataView : public QWidget
{
Q_OBJECT
public:
AlarmEventDataView(QWidget* parent = nullptr);
~AlarmEventDataView();
private:
QTableView* m_tableView;
QVBoxLayout* m_vLayout;
};
#endif

View File

@ -0,0 +1,24 @@
#ifndef ALARMEVENTGLOBAL_H
#define ALARMEVENTGLOBAL_H
#include <QString>
#include <QDateTime>
enum MainDialogType
{
RealTime = 0,
Historical
};
struct EventData
{
QString id;
QString stationName;
QString bayName;
QString description;
bool confirmed;
QDateTime recivingTime;
QDateTime SOETime;
};
#endif

View File

@ -0,0 +1,31 @@
#ifndef ALARMEVENTMAINDIALOG_H
#define ALARMEVENTMAINDIALOG_H
#include <QDialog>
#include "alarmEventGlobal.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class alarmEventMainDialog;
}
QT_END_NAMESPACE
class AlarmEventMainDialog : public QDialog
{
Q_OBJECT
public:
AlarmEventMainDialog(MainDialogType type, QWidget *parent = nullptr);
~AlarmEventMainDialog();
signals:
void sgl_hide();
public slots:
void onBtnClicked_close();
private:
Ui::alarmEventMainDialog* ui;
};
#endif

26
include/customLineEdit.h Normal file
View File

@ -0,0 +1,26 @@
/**
*\brief QLineEdit的点击响应
*
*\author dsc
*/
#ifndef CUSTOMLINEEDIT_H
#define CUSTOMLINEEDIT_H
#include <QLineEdit>
class CustomLineEdit : public QLineEdit
{
Q_OBJECT
public:
explicit CustomLineEdit(QWidget* parent = nullptr);
signals:
void clicked();
protected:
void mousePressEvent(QMouseEvent* event) override;
};
#endif

View File

@ -1,5 +1,14 @@
<RCC>
<qresource prefix="/">
<file>images/icon_first.png</file>
<file>images/icon_last.png</file>
<file>images/icon_next.png</file>
<file>images/icon_previous.png</file>
<file>images/icon_first.png</file>
<file>images/icon_last.png</file>
<file>images/icon_next.png</file>
<file>images/icon_previous.png</file>
<file>images/icon_checked.png</file>
<file>images/ico_switch_off.png</file>
<file>images/ico_switch_on.png</file>
<file>images/down-arrow.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

View File

@ -0,0 +1,23 @@
#include "alarmEventDataView.h"
#include <QTableView>
#include <QHeaderView>
#include <QVBoxLayout>
AlarmEventDataView::AlarmEventDataView(QWidget* parent)
: QWidget(parent)
{
m_tableView = new QTableView(this);
m_tableView->verticalHeader()->setVisible(false);
m_tableView->setEditTriggers(QAbstractItemView::NoEditTriggers);
m_tableView->setShowGrid(false);
//m_tableView->setStyleSheet("QHeaderView{background-color: rgb(40, 40, 40);} QHeaderView::section{background-color:transparent;}");
m_vLayout = new QVBoxLayout(this);
m_vLayout->setSpacing(0);
m_vLayout->setContentsMargins(0, 0, 0, 0);
m_vLayout->addWidget(m_tableView);
this->setLayout(m_vLayout);
}
AlarmEventDataView::~AlarmEventDataView()
{}

View File

@ -0,0 +1,26 @@
#include "alarmEventMainDialog.h"
#include "ui_alarmEventMainDialog.h"
AlarmEventMainDialog::AlarmEventMainDialog(MainDialogType type, QWidget *parent)
: QDialog(parent)
, ui(new Ui::alarmEventMainDialog)
{
ui->setupUi(this);
if(type == RealTime)
ui->dataFilteringPanel->setVisible(false);
else
ui->dataFilteringPanel->setVisible(true);
}
AlarmEventMainDialog::~AlarmEventMainDialog()
{
delete ui;
}
void AlarmEventMainDialog::onBtnClicked_close()
{
//reject();
hide();
emit sgl_hide();
}

14
source/customLineEdit.cpp Normal file
View File

@ -0,0 +1,14 @@
#include "customLineEdit.h"
#include <QMouseEvent>
CustomLineEdit::CustomLineEdit(QWidget* parent)
: QLineEdit(parent)
{}
void CustomLineEdit::mousePressEvent(QMouseEvent* event)
{
if(event->button() == Qt::LeftButton)
emit clicked();
QLineEdit::mousePressEvent(event);
}

View File

@ -43,8 +43,8 @@ DashboardFrame::DashboardFrame(const QString& strName, dashboardFrame::frameType
m_type = fType;
if(m_type == dashboardFrame::ft_secondary) //只有主window具有报警提示
{
ui->btnEventNotication->setVisible(false);
ui->btnAlarmNoticatio->setVisible(false);
ui->btnAllEvent->setVisible(false);
ui->btnAlarm->setVisible(false);
}
initializeGlobalVariable();

944
ui/alarmEventMainDialog.ui Normal file
View File

@ -0,0 +1,944 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>alarmEventMainDialog</class>
<widget class="QDialog" name="alarmEventMainDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1496</width>
<height>1006</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<property name="styleSheet">
<string notr="true">QDialog
{
background-color:rgba(36,43,50,250);
}
QPushButton
{
color: rgb(250, 250, 250);
font: 700 10pt &quot;微软雅黑&quot;;
border:1px solid rgb(67,160,249);
border-radius:2px;
background-color:rgb(24,32,38);
}
QPushButton:hover
{
background-color:rgb(8,11,13);
}
QPushButton:pressed
{
background-color:rgb(24,32,38);
}
QLabel
{
font: 12pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
}
QLineEdit
{
font: 12pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
padding-left:10px;
border:1px solid rgb(200,200,200);
background-color: rgb(24, 32, 38);
}
QLineEdit:focus
{
border:1px solid rgb(67,160,249);
}
QComboBox
{
font: 12pt &quot;黑体&quot;;
color: rgb(250, 250, 250);
padding-left:10px;
background-color: rgb(54, 62, 74);
border: 0px;
border-radius: 0px;
}
QComboBox:hover
{
background-color: rgb(72, 83, 99);
}
QComboBox::drop-down
{
border:0px;
}
QComboBox::down-arrow
{
margin-right:10px;
width:14px;
border-image: url(:/images/down-arrow.png);
}
QComboBox QAbstractItemView
{
outline: 0px; /*去除选中虚线框 */
border:0px;
background-color:rgba(25,25,25,220);
}
QComboBox QAbstractItemView::item:hover
{
background-color: rgb(43, 102, 158);
}
QComboBox QAbstractItemView::item:selected
{
color: rgb(250, 250, 250);
background-color: rgba(43, 102, 158, 80);
}</string>
</property>
<layout class="QHBoxLayout" name="hLayout_main" stretch="1,0">
<property name="spacing">
<number>5</number>
</property>
<property name="leftMargin">
<number>30</number>
</property>
<property name="topMargin">
<number>7</number>
</property>
<property name="rightMargin">
<number>7</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<item>
<layout class="QVBoxLayout" name="vLayout_central">
<property name="spacing">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="topPanel" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>60</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>60</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QWidget #topPanel
{
border:1px solid rgb(67,160,249);
border-left:0px;
border-top:0px;
border-right:0px;
}
</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="rightMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="labeWindowlTitle">
<property name="styleSheet">
<string notr="true">color: rgb(250, 250, 250);
font: 700 18pt &quot;微软雅黑&quot;;
</string>
</property>
<property name="text">
<string>历史事件</string>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="tobBtnsWidget" native="true">
<property name="minimumSize">
<size>
<width>261</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>261</width>
<height>16777215</height>
</size>
</property>
<widget class="QPushButton" name="btnConfirmAll">
<property name="geometry">
<rect>
<x>40</x>
<y>10</y>
<width>101</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
icon-size:20px;
icon: url(:/images/icon_checked.png);
}</string>
</property>
<property name="text">
<string>全部确认</string>
</property>
</widget>
<widget class="QPushButton" name="btnSetting">
<property name="geometry">
<rect>
<x>170</x>
<y>10</y>
<width>81</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
icon-size:20px;
icon: url(:/images/icon_configuration.png);
}</string>
</property>
<property name="text">
<string>设置</string>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="dataFilteringPanel" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>96</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>96</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QWidget #dataFilteringPanel
{
}
</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,1,1,1">
<property name="spacing">
<number>35</number>
</property>
<property name="leftMargin">
<number>8</number>
</property>
<property name="topMargin">
<number>10</number>
</property>
<property name="rightMargin">
<number>8</number>
</property>
<property name="bottomMargin">
<number>10</number>
</property>
<item>
<layout class="QGridLayout" name="gridLayout">
<property name="horizontalSpacing">
<number>3</number>
</property>
<property name="verticalSpacing">
<number>5</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_stationName">
<property name="minimumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>厂站名称:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="conboBox_stationName">
<property name="minimumSize">
<size>
<width>0</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
<item>
<property name="text">
<string>请选择</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_bayName">
<property name="minimumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>间隔名称:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="conboBox_bayName">
<property name="minimumSize">
<size>
<width>0</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
<item>
<property name="text">
<string>请选择</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_2">
<property name="horizontalSpacing">
<number>3</number>
</property>
<property name="verticalSpacing">
<number>5</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_eventType">
<property name="minimumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>告警类型:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="conboBox_eventType">
<property name="minimumSize">
<size>
<width>0</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
<item>
<property name="text">
<string>请选择</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_eventLevel">
<property name="minimumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>告警等级:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="conboBox_eventLevel">
<property name="minimumSize">
<size>
<width>0</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
<item>
<property name="text">
<string>请选择</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_3">
<property name="horizontalSpacing">
<number>3</number>
</property>
<property name="verticalSpacing">
<number>5</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_confirmStatus">
<property name="minimumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>确认状态:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="conboBox_confirmStatus">
<property name="minimumSize">
<size>
<width>0</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
<item>
<property name="text">
<string>请选择</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_timePeriod_3">
<property name="minimumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>告警信息:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineEdit_timePeriod_3">
<property name="minimumSize">
<size>
<width>0</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_4">
<property name="horizontalSpacing">
<number>3</number>
</property>
<property name="verticalSpacing">
<number>5</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_beginTime">
<property name="minimumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>最早时间:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="CustomLineEdit" name="lineEdit_beginTime">
<property name="minimumSize">
<size>
<width>0</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>2025/09/16 10:06:12 </string>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_endTime">
<property name="minimumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>81</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>最后时间:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="CustomLineEdit" name="lineEdit_endTime">
<property name="minimumSize">
<size>
<width>0</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
<property name="text">
<string>2025/09/16 10:07:12</string>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="tableView" native="true">
<property name="styleSheet">
<string notr="true">QWidget #tableView
{
background-color: rgba(54, 62, 74,100);
}</string>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="bottomPanel" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
border:1px solid rgb(100,100,100);
}
QPushButton:hover
{
border:1px solid rgb(67,160,249);
}
QPushButton:pressed
{
border:1px solid rgb(100,100,100);
}</string>
</property>
<widget class="QPushButton" name="btnFirstPage">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>8</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="toolTip">
<string>第一页</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../resource/PowerMaster.qrc">
<normaloff>:/images/icon_first.png</normaloff>:/images/icon_first.png</iconset>
</property>
<property name="iconSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
</widget>
<widget class="QLabel" name="recordInfo">
<property name="geometry">
<rect>
<x>170</x>
<y>8</y>
<width>131</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 11pt &quot;黑体&quot;;</string>
</property>
<property name="text">
<string>共100条记录</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
<widget class="QPushButton" name="btnPreviousPage">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>30</x>
<y>8</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="toolTip">
<string>第一页</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../resource/PowerMaster.qrc">
<normaloff>:/images/icon_previous.png</normaloff>:/images/icon_previous.png</iconset>
</property>
<property name="iconSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="btnNextPage">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>105</x>
<y>8</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="toolTip">
<string>第一页</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../resource/PowerMaster.qrc">
<normaloff>:/images/icon_next.png</normaloff>:/images/icon_next.png</iconset>
</property>
<property name="iconSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="btnLastPage">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>135</x>
<y>8</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="toolTip">
<string>第一页</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../resource/PowerMaster.qrc">
<normaloff>:/images/icon_last.png</normaloff>:/images/icon_last.png</iconset>
</property>
<property name="iconSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit">
<property name="geometry">
<rect>
<x>60</x>
<y>9</y>
<width>36</width>
<height>20</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 11pt &quot;黑体&quot;;
border:0px;
padding:0px;</string>
</property>
<property name="text">
<string>1</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="vLayout_close">
<item>
<widget class="QPushButton" name="btnClose">
<property name="minimumSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
background-color:transparent;
border-image: url(:/images/btn_close_default.png);
}
QPushButton:hover
{
border-image: url(:/images/btn_close_hover.png);
}
QPushButton:pressed
{
border-image: url(:/images/btn_close_default.png);
}</string>
</property>
<property name="text">
<string/>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>CustomLineEdit</class>
<extends>QLineEdit</extends>
<header location="global">customLineEdit.h</header>
</customwidget>
</customwidgets>
<resources>
<include location="../resource/PowerMaster.qrc"/>
</resources>
<connections/>
</ui>

View File

@ -122,7 +122,7 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QPushButton" name="btnEventNotication">
<widget class="QPushButton" name="btnAllEvent">
<property name="minimumSize">
<size>
<width>165</width>
@ -141,23 +141,23 @@
font: 700 12pt &quot;微软雅黑&quot;;
color:rgb(250,250,250);
text-align:right;
padding-right:40px;
background-color: rgb(200, 68, 56);
padding-right:35px;
background-color: rgb(67,160,249);
icon-size:20px;
icon: url(:/images/icon_event.png);
}
QPushButton:hover
{
background-color: rgb(166, 56, 46);
background-color: rgb(55,131,204);
}
QPushButton:pressed
{
background-color: rgb(128, 43, 36);
background-color: rgb(67,160,249);
}
</string>
</property>
<property name="text">
<string>事件(0)</string>
<string>事件查看</string>
</property>
<property name="flat">
<bool>false</bool>
@ -208,7 +208,7 @@ background-color: rgb(39, 102, 59);
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="btnAlarmNoticatio">
<widget class="QPushButton" name="btnAlarm">
<property name="minimumSize">
<size>
<width>165</width>
@ -227,7 +227,7 @@ background-color: rgb(39, 102, 59);
font: 700 12pt &quot;微软雅黑&quot;;
color:rgb(250,250,250);
text-align:right;
padding-right:20px;
padding-right:30px;
background-color: rgb(200, 68, 56);
icon-size:20px;
icon: url(:/images/icon_alarm.png);
@ -243,7 +243,7 @@ background-color: rgb(128, 43, 36);
</string>
</property>
<property name="text">
<string>报警(10+)</string>
<string>报警(0条)</string>
</property>
</widget>
</item>
@ -562,7 +562,25 @@ QPushButton:pressed
</property>
</layout>
</widget>
<widget class="QWidget" name="page_notifications"/>
<widget class="QWidget" name="page_notifications">
<layout class="QHBoxLayout" name="hLayout_notifications">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
</layout>
</widget>
</widget>
</item>
</layout>

View File

@ -146,7 +146,7 @@ border:1px solid rgb(67,160,249);
{
color: rgb(250, 250, 250);
font: 700 12pt &quot;微软雅黑&quot;;
border:1px solid rgb(67,160,249);
border:1px solid rgb(200,200,200);
border-radius:2px;
background-color:rgb(24,32,38);
}