Falkon Develop
Cross-platform Qt-based web browser
qmlenums.h
Go to the documentation of this file.
1/* ============================================================
2* Falkon - Qt web browser
3* Copyright (C) 2018 Anmol Gautam <tarptaeya@gmail.com>
4*
5* This program is free software: you can redistribute it and/or modify
6* it under the terms of the GNU General Public License as published by
7* the Free Software Foundation, either version 3 of the License, or
8* (at your option) any later version.
9*
10* This program is distributed in the hope that it will be useful,
11* but WITHOUT ANY WARRANTY; without even the implied warranty of
12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13* GNU General Public License for more details.
14*
15* You should have received a copy of the GNU General Public License
16* along with this program. If not, see <http://www.gnu.org/licenses/>.
17* ============================================================ */
18#pragma once
19
20#include <QObject>
21#include "qzcommon.h"
22
26class QmlEnums : public QObject
27{
28 Q_OBJECT
29public:
38 Invalid
39 };
40 Q_ENUM(WindowState)
41
42
50 };
51 Q_ENUM(WindowType)
52
53 QmlEnums(QObject *parent = nullptr);
54};
The class exposing Enums to QML.
Definition: qmlenums.h:27
WindowType
The WindowType enum.
Definition: qmlenums.h:45
@ FirstAppWindow
Represents first app window.
Definition: qmlenums.h:46
@ MacFirstWindow
Represents first mac window.
Definition: qmlenums.h:47
@ OtherRestoredWindow
Represents other restored window.
Definition: qmlenums.h:49
@ NewWindow
Represents new window.
Definition: qmlenums.h:48
QmlEnums(QObject *parent=nullptr)
Definition: qmlenums.cpp:20
WindowState
The WindowState enum.
Definition: qmlenums.h:33
@ Maximized
Represents maximized window.
Definition: qmlenums.h:35
@ Normal
Represents normal window.
Definition: qmlenums.h:37
@ FullScreen
Represents full screen window.
Definition: qmlenums.h:34
@ Invalid
Represents a invalid window.
Definition: qmlenums.h:38
@ Minimized
Represents minimized window.
Definition: qmlenums.h:36
@ BW_NewWindow
Definition: qzcommon.h:67
@ BW_OtherRestoredWindow
Definition: qzcommon.h:66
@ BW_FirstAppWindow
Definition: qzcommon.h:65
@ BW_MacFirstWindow
Definition: qzcommon.h:68