From 0e3c96ab5090f188029176c32799d25590d8c1de Mon Sep 17 00:00:00 2001 From: zhaominyong Date: Mon, 13 Jun 2022 15:54:46 +0800 Subject: [PATCH] =?UTF-8?q?123156=20=E3=80=90UKUI=203.1.4=20=E8=B5=B0?= =?UTF-8?q?=E6=9F=A5=E3=80=91=E3=80=90=E8=AE=BE=E8=AE=A1=E3=80=91=E3=80=90?= =?UTF-8?q?=E5=A4=87=E4=BB=BD=E8=BF=98=E5=8E=9F=E3=80=91=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kybackup/backuppointlistdialog.cpp | 1 + kybackup/module/operationlog.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/kybackup/backuppointlistdialog.cpp b/kybackup/backuppointlistdialog.cpp index 7542841..5a534f9 100755 --- a/kybackup/backuppointlistdialog.cpp +++ b/kybackup/backuppointlistdialog.cpp @@ -48,6 +48,7 @@ BackupPointListDialog::BackupPointListDialog(QWidget *parent, bool isOnlyShowLoc m_tableWidget->verticalHeader()->setHidden(true); // 好像隐藏不掉 m_tableWidget->verticalHeader()->setVisible(false); //左侧标题不可见 m_tableWidget->verticalHeader()->setDefaultSectionSize(36); // 设置行高 + m_tableWidget->horizontalHeader()->setHighlightSections(false); m_tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); m_tableWidget->setSelectionMode(QAbstractItemView::SingleSelection); m_tableWidget->hideColumn(Column_Index::UUID); diff --git a/kybackup/module/operationlog.cpp b/kybackup/module/operationlog.cpp index a0aeccc..e1cf404 100755 --- a/kybackup/module/operationlog.cpp +++ b/kybackup/module/operationlog.cpp @@ -65,10 +65,13 @@ void OperationLog::initFirstWidget() m_tableWidget->horizontalHeader()->resizeSection(Column_Index::Operation_Time, 190); m_tableWidget->horizontalHeader()->setTextElideMode(Qt::ElideRight); m_tableWidget->horizontalHeader()->setFixedHeight(36); + m_tableWidget->horizontalHeader()->setHighlightSections(false); m_tableWidget->verticalHeader()->setHidden(true); // 好像隐藏不掉 m_tableWidget->verticalHeader()->setVisible(false); //左侧标题不可见 m_tableWidget->verticalHeader()->setDefaultSectionSize(36); // 设置行高 m_tableWidget->setSelectionMode(QAbstractItemView::NoSelection); + // m_tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); + m_tableWidget->setFocusPolicy(Qt::NoFocus); m_tableWidget->setSortingEnabled(false); // 等录入完数据后再排序 m_tableWidget->setAlternatingRowColors(true); m_tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);