remove debug log message
This commit is contained in:
parent
37896a7bc0
commit
e52bd89fbe
|
@ -1,5 +1,4 @@
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
#include <QDebug>
|
|
||||||
#include "exampleview.h"
|
#include "exampleview.h"
|
||||||
|
|
||||||
ExampleView::ExampleView(QWidget *parent)
|
ExampleView::ExampleView(QWidget *parent)
|
||||||
|
@ -27,7 +26,6 @@ bool ExampleView::eventFilter(QObject *obj, QEvent *event)
|
||||||
QEvent::Type type = event->type();
|
QEvent::Type type = event->type();
|
||||||
if (QEvent::Resize == type || QEvent::Move == type) {
|
if (QEvent::Resize == type || QEvent::Move == type) {
|
||||||
QRect r(_widget->geometry());
|
QRect r(_widget->geometry());
|
||||||
qDebug() << r;
|
|
||||||
r.moveCenter(rect().center());
|
r.moveCenter(rect().center());
|
||||||
_widget->setGeometry(r);
|
_widget->setGeometry(r);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue