修改外部同步器的编辑逻辑、添加‘另存为’ 按钮
This commit is contained in:
+2
-1
@@ -1809,12 +1809,13 @@ bool InkJetPrinter::eventFilter(QObject *watched, QEvent *event)
|
||||
// return QTabWidget::eventFilter(watched,event);
|
||||
//qDebug()<<"eventFilter";
|
||||
QSpinBox *qsb=dynamic_cast<QSpinBox*>(watched);
|
||||
QDoubleSpinBox* qdsb = dynamic_cast<QDoubleSpinBox*>(watched);
|
||||
QLineEdit *qle=dynamic_cast<QLineEdit*>(watched);
|
||||
QTextEdit *qte=dynamic_cast<QTextEdit*>(watched);
|
||||
QWidget *widget = qobject_cast<QWidget *>(watched);
|
||||
switch (event->type()){
|
||||
case QEvent::FocusIn:
|
||||
if(qsb&&!qsb->isReadOnly()||qle&&!qle->isReadOnly()||qte&&!qte->isReadOnly() && watched->objectName() != "inputPreviewBox")
|
||||
if(qsb&&!qsb->isReadOnly()||qle&&!qle->isReadOnly()||qte&&!qte->isReadOnly() && watched->objectName() != "inputPreviewBox" || qdsb && !qdsb->isReadOnly())
|
||||
myInputMethod->updateHandler(1);
|
||||
break;
|
||||
case QEvent::FocusOut:
|
||||
|
||||
Reference in New Issue
Block a user