Procházet zdrojové kódy

V1.6.1
1、修改了一些UI问题

Apple před 3 dny
rodič
revize
b9ced160a1

+ 2 - 0
TransmitterSwitch/ExecPlanData/plancard.cpp

@@ -110,6 +110,8 @@ PlanCard::PlanCard(QWidget *parent) :
     ui->tableView->setShowGrid(false);
     /* 设置单元格不可编辑 */
     ui->tableView->setEditTriggers(QAbstractItemView::NoEditTriggers);
+    /* 禁止显示横向滚动条 */
+    ui->tableView->horizontalHeader()->setStretchLastSection(true); /* 设置最后一列拉伸 */
 
     /* 设置空白图片和文字的位置 */
     setSpaceImageAndTextRect();

+ 67 - 1
TransmitterSwitch/Resource/QSS/dark/plancard.qss

@@ -115,4 +115,70 @@ QTableWidget::item:selected
 {
     color: #EBEBEB;
     background: #558bda;
-} */
+} */
+
+
+/*===============================================================
+ * QScrollBar 滚动条
+ ================================================================*/
+QScrollArea#scrollArea
+{
+	background:transparent;
+    /* background: #202428; */
+	border-radius:0px;
+	border:none;
+}
+
+QWidget#scrollAreaContents_Card
+{
+    background: transparent;
+    /* background: #202428; */
+    border-radius: 0px 0px 0px 0px;
+    border: 0px solid rgba(255,255,255,0.15);
+}
+
+
+QScrollBar:horizontal, QScrollBar:vertical
+{
+    border:none;
+    /* background-color: rgba(255, 255, 255, 0); */
+    background: transparent;
+    margin: 0px 0px 0px 0px;
+}
+QScrollBar:horizontal
+{
+    height: 12px;
+}
+QScrollBar:vertical
+{
+    width: 6px;
+}
+QScrollBar::handle:horizontal,QScrollBar::handle:vertical
+{
+    /* background: #E2E2E2; */
+    background: #505357;
+    border-radius: 3px;
+    min-width: 8px;
+}
+QScrollBar::handle:horizontal
+{
+    min-width: 8px;
+}
+QScrollBar::handle:vertical
+{
+    min-height: 113px;
+}
+QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal,
+QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical
+{
+    background-color: rgba(255, 255, 255, 0);
+    border: none;
+}
+QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal,
+QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
+{
+    background-color: rgba(255, 255, 255, 0);
+    background: none;
+}
+
+

+ 4 - 2
TransmitterSwitch/Resource/QSS/dark/transmitterswitch.qss

@@ -183,7 +183,8 @@ QWidget#scrollAreaContents_Card
 QScrollBar:horizontal, QScrollBar:vertical
 {
     border:none;
-    background-color: rgba(255, 255, 255, 0);
+    /* background-color: rgba(255, 255, 255, 0); */
+    background: transparent;
     margin: 0px 0px 0px 0px;
 }
 QScrollBar:horizontal
@@ -196,7 +197,8 @@ QScrollBar:vertical
 }
 QScrollBar::handle:horizontal,QScrollBar::handle:vertical
 {
-    background: #E2E2E2;
+    /* background: #E2E2E2; */
+    background: #505357;
     border-radius: 3px;
     min-width: 8px;
 }

+ 11 - 13
show1/widget.cpp

@@ -46,26 +46,24 @@ Widget::Widget(QWidget *parent) :
     // initData.serverID = "2e36b53ccd2a433b9a803b98d683ed91";
     initData.serverKey = "TMS";
 
-    // m_tSwitch->DoInit(&initData);
-    // m_tSwitch->DoCreateWindow(1, container);
-    // m_tSwitch->DoGetExecPlanFromEQM();
-    // m_tSwitch->DoSetCallBack(trackCallBack);
+    m_tSwitch->DoInit(&initData);
+    m_tSwitch->DoCreateWindow(1, container);
+    m_tSwitch->DoGetExecPlanFromEQM();
+    m_tSwitch->DoSetCallBack(trackCallBack);
 
-    m_tSwitch->DoInitLibrary();
-    m_tSwitch->DoCreateOneWindow(0, container);
-    m_tSwitch->DoSetOnePageCardNum(4, 2);
+    // m_tSwitch->DoInitLibrary();
+    // m_tSwitch->DoCreateOneWindow(0, container);
+    // m_tSwitch->DoSetOnePageCardNum(4, 2);
 
-    m_tSwitch->DoSetWebAPIInfo(&initData);
+    // m_tSwitch->DoSetWebAPIInfo(&initData);
 
     ExecPlanInfo info;
     info.ChannelID = -1;
     info.ChannelName = "";
     info.DatabasePath = QApplication::applicationDirPath() + "/db/";
-    m_tSwitch->DoSetChannelInfo(&info, true);
-    
-    m_tSwitch->DoSetCallBack(trackCallBack);
-
-    m_tSwitch->DoGetExecPlanFromEQM();
+    // m_tSwitch->DoSetChannelInfo(&info, true);
+    // m_tSwitch->DoSetCallBack(trackCallBack);
+    // m_tSwitch->DoGetExecPlanFromEQM();
 
     m_style = 1;