修正大量demo

This commit is contained in:
feiyangqingyun
2021-03-08 09:04:48 +08:00
parent 2f5f9bd427
commit 23a32e6d32
32 changed files with 428 additions and 209 deletions

View File

@@ -55,14 +55,6 @@ bool MoveWidget::eventFilter(QObject *watched, QEvent *event)
return QObject::eventFilter(watched, event);
}
void MoveWidget::setWidget(QWidget *widget)
{
if (this->widget == 0) {
this->widget = widget;
this->widget->installEventFilter(this);
}
}
void MoveWidget::setLeftButton(bool leftButton)
{
this->leftButton = leftButton;
@@ -72,3 +64,11 @@ void MoveWidget::setInControl(bool inControl)
{
this->inControl = inControl;
}
void MoveWidget::setWidget(QWidget *widget)
{
if (this->widget == 0) {
this->widget = widget;
this->widget->installEventFilter(this);
}
}