#include "qvariant.h"
#include "qwidget.h"
#include "qstyleoption.h"
+#include "qstylehints.h"
#ifndef QT_NO_ACCESSIBILITY
# include "qaccessible.h"
#endif
setWindowState((windowState() & ~(Qt::WindowMinimized | Qt::WindowMaximized))
| Qt::WindowFullScreen);
- show();
+ setVisible(true);
activateWindow();
}
d->setUpdatesEnabled_helper(enable);
}
-/*! \fn void QWidget::show()
-
+/*!
Shows the widget and its child widgets. This function is
- equivalent to setVisible(true).
+ equivalent to setVisible(true) in the normal case, and equivalent
+ to showFullScreen() if the QStyleHints::showIsFullScreen() hint
+ is true.
\sa raise(), showEvent(), hide(), setVisible(), showMinimized(), showMaximized(),
showNormal(), isVisible()
*/
-
+void QWidget::show()
+{
+ if (isWindow() && qApp->styleHints()->showIsFullScreen())
+ showFullScreen();
+ else
+ setVisible(true);
+}
/*! \internal
data.in_show = false; // reset qws optimization
}
-/*! \fn void QWidget::hide()
-
+/*!
Hides the widget. This function is equivalent to
setVisible(false).
\sa hideEvent(), isHidden(), show(), setVisible(), isVisible(), close()
*/
+void QWidget::hide()
+{
+ setVisible(false);
+}
/*!\internal
*/
}
}
-/*!\fn void QWidget::setHidden(bool hidden)
-
+/*!
Convenience function, equivalent to setVisible(!\a hidden).
*/
-
+void QWidget::setHidden(bool hidden)
+{
+ setVisible(!hidden);
+}
void QWidgetPrivate::_q_showIfNotHidden()
{
// Widget management functions
virtual void setVisible(bool visible);
- inline void setHidden(bool hidden) { setVisible(!hidden); }
- inline void show() { setVisible(true); }
- inline void hide() { setVisible(false); }
+ void setHidden(bool hidden);
+ void show();
+ void hide();
void showMinimized();
void showMaximized();