logplus/logPlus/CellBorderDlg.cpp
2026-06-24 15:33:12 +08:00

34 lines
772 B
C++

#include "CellBorderDlg.h"
#include <QPainter>
CellBorderDlg::CellBorderDlg(FormTableItem *pCell, QWidget *parent)
: QDialog(parent)
{
ui.setupUi(this);
ui.preView->SetCellObject(pCell);
//setWindowTitle(QString::fromLocal8Bit("边框线形设置"));
connect(ui.btnAccess,SIGNAL(clicked()),this,SLOT(onEnter()));
connect(ui.lineGridView,SIGNAL(signalSelectLineStyleChanged(int,int)),
this,SLOT(OnSelectLineStyleChanged(int,int)));
}
CellBorderDlg::~CellBorderDlg()
{
}
void CellBorderDlg::OnSelectLineStyleChanged(int style,int lineWidth)
{
ui.preView->SetBorderStyle(lineWidth,style);
}
void CellBorderDlg::onEnter()
{
this->accept();
}
void CellBorderDlg::paintEvent(QPaintEvent *pevt)
{
QDialog::paintEvent(pevt);
}