Qt4/Qt5 neutral changes:

+ replace Q_WS_WIN with Q_OS_WIN
+ replace Q_WS_X11 with Q_OS_LINUX
+ replace Q_WS_MACX with Q_OS_MACX
+ set explicit cast to HWND
This commit is contained in:
wmayer
2016-12-12 14:09:21 +01:00
parent 546656867b
commit 1cdee20953
10 changed files with 27 additions and 27 deletions

View File

@@ -180,7 +180,7 @@ void DlgExpressionInput::setExpressionInputSize(int width, int height)
void DlgExpressionInput::mouseReleaseEvent(QMouseEvent* ev)
{
#if 0//defined(Q_WS_WIN)
#if 0//defined(Q_OS_WIN)
if (QWidget::mouseGrabber() == this) {
QList<QWidget*> childs = this->findChildren<QWidget*>();
for (QList<QWidget*>::iterator it = childs.begin(); it != childs.end(); ++it) {
@@ -203,7 +203,7 @@ void DlgExpressionInput::mouseReleaseEvent(QMouseEvent* ev)
void DlgExpressionInput::mousePressEvent(QMouseEvent* ev)
{
#if 0//defined(Q_WS_WIN)
#if 0//defined(Q_OS_WIN)
bool handled = false;
if (QWidget::mouseGrabber() == this) {
QList<QWidget*> childs = this->findChildren<QWidget*>();
@@ -241,7 +241,7 @@ void DlgExpressionInput::showEvent(QShowEvent* ev)
{
QDialog::showEvent(ev);
#if 0//defined(Q_WS_WIN)
#if 0//defined(Q_OS_WIN)
// This way we can fetch click events outside modal dialogs
QWidget* widget = QApplication::activeModalWidget();
if (widget) {