2026年6月22日 :大量更新
This commit is contained in:
@@ -23,9 +23,6 @@
|
||||
|
||||
PrintTextDisplay::PrintTextDisplay(QWidget *parent):
|
||||
QWidget(parent){
|
||||
if (sysPara == nullptr) {
|
||||
sysPara = SysPara::ins();
|
||||
}
|
||||
|
||||
setPalette(QPalette(Qt::white));
|
||||
setAutoFillBackground(true);
|
||||
@@ -98,6 +95,11 @@ int PrintTextDisplay::currScaleRatio()
|
||||
return this->scaleRatio;
|
||||
}
|
||||
|
||||
void PrintTextDisplay::bindSysPara(SysPara *sysPara)
|
||||
{
|
||||
this->sysPara = sysPara;
|
||||
}
|
||||
|
||||
void PrintTextDisplay::paintEvent(QPaintEvent *event){
|
||||
QRect updateRect = event->rect();
|
||||
updateRect.setY(0);
|
||||
|
||||
Reference in New Issue
Block a user