Open-Typer
Open source typewriting tutor program
|
The DialogView class is a native dialog for QML. More...
#include "framework/uicomponents/view/DialogView.h"
Public Member Functions | |
DialogView (QObject *parent=nullptr) | |
QQuickItem * | contentItem () const |
void | setContentItem (QQuickItem *newContentItem) |
bool | visible () const |
void | setVisible (bool newVisible) |
QString | title () const |
void | setTitle (const QString &newTitle) |
bool | modal () const |
void | setModal (bool newModal) |
int | minimumWidth () const |
void | setMinimumWidth (int newMinimumWidth) |
int | minimumHeight () const |
void | setMinimumHeight (int newMinimumHeight) |
int | maximumWidth () const |
void | setMaximumWidth (int newMaximumWidth) |
int | maximumHeight () const |
void | setMaximumHeight (int newMaximumHeight) |
Q_INVOKABLE void | setMaximizedState () |
Q_INVOKABLE void | setNormalState () |
Q_INVOKABLE void | showMaximized () |
Q_INVOKABLE void | showNormal () |
bool | autoClose () const |
void | setAutoClose (bool newAutoClose) |
bool | closable () const |
void | setClosable (bool newClosable) |
QQuickItem * | activeFocusItem () const |
Private Attributes | |
QuickWindow | m_window |
QQuickItem * | m_contentItem |
bool | m_modal = true |
The DialogView class is a native dialog for QML.
|
explicit |
Constructs DialogView.
QQuickItem * DialogView::activeFocusItem | ( | ) | const |
The currently active focus item.
bool DialogView::autoClose | ( | ) | const |
Whether to close the dialog when escape is pressed.
bool DialogView::closable | ( | ) | const |
Whether to allow closing the dialog using the close button or escape key when autoClose is true.
QQuickItem * DialogView::contentItem | ( | ) | const |
The root item of the dialog.
int DialogView::maximumHeight | ( | ) | const |
The maximum height of the dialog.
int DialogView::maximumWidth | ( | ) | const |
The maximum width of the dialog.
int DialogView::minimumHeight | ( | ) | const |
The minimum height of the dialog.
int DialogView::minimumWidth | ( | ) | const |
The minimum width of the dialog.
bool DialogView::modal | ( | ) | const |
Whether the dialog is modal. True by default.
void DialogView::setMaximizedState | ( | ) |
Sets the state to maximized.
void DialogView::setNormalState | ( | ) |
Sets the state to normal, i.e. neither maximized, minimized, nor fullscreen.
void DialogView::showMaximized | ( | ) |
Shows the dialog as maximized.
void DialogView::showNormal | ( | ) |
Shows the dialog as normal, i.e. neither maximized, minimized, nor fullscreen.
QString DialogView::title | ( | ) | const |
The title of the dialog.
bool DialogView::visible | ( | ) | const |
Whether the dialog is visible.