src/gui/kernel/qwidget_win.cpp
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   164         return;
   164         return;
   165     firstTime = false;
   165     firstTime = false;
   166     qt_tablet_widget = new QWidget(0);
   166     qt_tablet_widget = new QWidget(0);
   167     qt_tablet_widget->createWinId();
   167     qt_tablet_widget->createWinId();
   168     qt_tablet_widget->setObjectName(QLatin1String("Qt internal tablet widget"));
   168     qt_tablet_widget->setObjectName(QLatin1String("Qt internal tablet widget"));
   169     // We dont need this internal widget to appear in QApplication::topLevelWidgets()
   169     // We don't need this internal widget to appear in QApplication::topLevelWidgets()
   170     if (QWidgetPrivate::allWidgets)
   170     if (QWidgetPrivate::allWidgets)
   171         QWidgetPrivate::allWidgets->remove(qt_tablet_widget);
   171         QWidgetPrivate::allWidgets->remove(qt_tablet_widget);
   172     LOGCONTEXT lcMine;
   172     LOGCONTEXT lcMine;
   173     qAddPostRoutine(qt_tablet_cleanup);
   173     qAddPostRoutine(qt_tablet_cleanup);
   174     struct tagAXIS tpOri[3];
   174     struct tagAXIS tpOri[3];
  1545 
  1545 
  1546 bool QWidgetPrivate::shouldShowMaximizeButton()
  1546 bool QWidgetPrivate::shouldShowMaximizeButton()
  1547 {
  1547 {
  1548     if (data.window_flags & Qt::MSWindowsFixedSizeDialogHint)
  1548     if (data.window_flags & Qt::MSWindowsFixedSizeDialogHint)
  1549         return false;
  1549         return false;
  1550     // if the user explicitely asked for the maximize button, we try to add
  1550     // if the user explicitly asked for the maximize button, we try to add
  1551     // it even if the window has fixed size.
  1551     // it even if the window has fixed size.
  1552     if (data.window_flags & Qt::CustomizeWindowHint &&
  1552     if (data.window_flags & Qt::CustomizeWindowHint &&
  1553         data.window_flags & Qt::WindowMaximizeButtonHint)
  1553         data.window_flags & Qt::WindowMaximizeButtonHint)
  1554         return true;
  1554         return true;
  1555     if (extra) {
  1555     if (extra) {