Adds fullscreen toggling to a player dialog. The dialog is returned to its previous geometry when fullscreen is left. Owned by (and destroyed with) the dialog.
More...
#include <player_fullscreen.h>
|
| | PlayerFullscreen (QDialog *dialog, QPushButton *button) |
| | Attach fullscreen handling to a player dialog.
|
|
| PlayerFullscreen (const PlayerFullscreen &)=delete |
|
PlayerFullscreen & | operator= (const PlayerFullscreen &)=delete |
|
void | toggle () |
| | Toggle fullscreen on / off.
|
|
|
void | showHint () |
| | Show the hint at the top centre, then fade it out.
|
|
void | hideHint () |
| | Hide the hint immediately.
|
|
void | setChromeHidden (bool hidden) |
| | Hide (or restore) everything except the video view, so the video fills the screen.
|
|
void | updateButton () |
| | Update the button text and tooltip for the current state.
|
|
|
QDialog * | m_dialog |
| | The player dialog.
|
|
QPushButton * | m_button |
| | The toggle button.
|
|
QRect | m_normal_geometry |
| | The geometry before entering fullscreen.
|
|
bool | m_was_maximized = false |
| | Whether the window was maximised before entering fullscreen.
|
|
QShortcut * | m_escape = nullptr |
| | Esc shortcut, enabled only while fullscreen.
|
|
QList< QPointer< QWidget > > | m_hidden_widgets |
| | Widgets hidden while fullscreen (status bar, buttons).
|
|
QMargins | m_margins |
| | The layout margins before entering fullscreen.
|
|
int | m_spacing = 0 |
| | The layout spacing before entering fullscreen.
|
|
QString | m_style_sheet |
| | The dialog style sheet before entering fullscreen.
|
|
QLabel * | m_hint = nullptr |
| | The "exit fullscreen" hint overlay.
|
|
QGraphicsOpacityEffect * | m_hint_effect = nullptr |
| | Opacity effect of the hint.
|
|
QPropertyAnimation * | m_hint_animation = nullptr |
| | Fade out animation of the hint.
|
Adds fullscreen toggling to a player dialog. The dialog is returned to its previous geometry when fullscreen is left. Owned by (and destroyed with) the dialog.
◆ PlayerFullscreen()
| toolx::streams::PlayerFullscreen::PlayerFullscreen |
( |
QDialog * | dialog, |
|
|
QPushButton * | button ) |
|
explicit |
Attach fullscreen handling to a player dialog.
- Parameters
-
| dialog | The player dialog (must be a top level window) |
| button | The button that toggles fullscreen (may be nullptr) |
The documentation for this class was generated from the following files: