20#include "../tabs/qmltab.h"
29 QQmlEngine::setObjectOwnership(
this, QQmlEngine::CppOwnership);
43 return mApp->isPrivate();
52 return m_window->windowTitle();
61 if (m_window->isFullScreen()) {
63 }
else if (m_window->isMaximized()) {
65 }
else if (m_window->isMinimized()) {
98 list.reserve(allTabs.size());
99 for (
WebTab *tab : allTabs) {
100 list.append(
new QmlTab(tab));
112 return m_window->isActiveWindow();
121 return m_window->height();
130 return m_window->width();
Qz::BrowserWindowType windowType() const
TabWidget * tabWidget() const
WindowType
The WindowType enum.
@ FirstAppWindow
Represents first app window.
@ MacFirstWindow
Represents first mac window.
@ OtherRestoredWindow
Represents other restored window.
@ NewWindow
Represents new window.
WindowState
The WindowState enum.
@ Maximized
Represents maximized window.
@ Normal
Represents normal window.
@ FullScreen
Represents full screen window.
@ Invalid
Represents a invalid window.
@ Minimized
Represents minimized window.
QHash< BrowserWindow *, int > windowIdHash()
static QmlStaticData & instance()
The class exposing a browser tab to QML.
int height
height of window
QString title
title of window
QmlWindow(BrowserWindow *window=nullptr, QObject *parent=nullptr)
QmlEnums::WindowType type
window type of window
QmlEnums::WindowState state
window state of window
bool focussed
checks if the window is focused
QList< QObject * > tabs
list of all tabs of window
bool incognito
checks if the window is private