Fix windowgeometry test for Windows.
- Specify main.cpp with full path to avoid obscure link errors (grabbing main.cpp from windowflags) - Set proper flags on the test window. Change-Id: I9bbaf9cb5c7e210f53a51b58bd48a827d6104fe2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
fb449f426e
commit
41ea15f83d
@ -441,6 +441,9 @@ ControllerWidget::ControllerWidget(QWidget *parent)
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
x += 300;
|
||||
m_testWindow->setWindowFlags(Qt::Window | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint
|
||||
| Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint
|
||||
| Qt::WindowTitleHint);
|
||||
m_testWindow->setFramePos(QPoint(x, y));
|
||||
m_testWindow->resize(200, 200);
|
||||
m_testWindow->show();
|
||||
|
@ -3,7 +3,7 @@ TARGET = windowgeometry
|
||||
TEMPLATE = app
|
||||
|
||||
INCLUDEPATH += ../windowflags
|
||||
SOURCES += main.cpp controllerwidget.cpp ../windowflags/controls.cpp
|
||||
SOURCES += $$PWD/main.cpp controllerwidget.cpp ../windowflags/controls.cpp
|
||||
HEADERS += controllerwidget.h ../windowflags/controls.h
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
Loading…
x
Reference in New Issue
Block a user