Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
mainwindow.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4
#
ifndef
WINDOW_H
5
#
define
WINDOW_H
6
7
#
include
<
QList
>
8
#
include
<
QMainWindow
>
9
#
include
<
QString
>
10
11
QT_BEGIN_NAMESPACE
12
13
class
QAction;
14
class
QTextDocument;
15
class
QTextEdit;
16
class
QTextList;
17
class
QTreeWidgetItem;
18
19
class
MainWindow
:
public
QMainWindow
20
{
21
Q_OBJECT
22
23
public
:
24
MainWindow
();
25
26
public
slots
:
27
void
insertList
();
28
void
highlightListItems
();
29
void
showList
();
30
31
private
:
32
QString currentFile;
33
QTextEdit *editor =
nullptr
;
34
QTextDocument *document =
nullptr
;
35
QList<QTextList*> listStructures;
36
QList<QTreeWidgetItem*> previousItems;
37
QList<QTreeWidgetItem*> parentItems;
38
};
39
40
QT_END_NAMESPACE
41
42
#
endif
MainWindow
[6]
Definition
src_corelib_kernel_qmetaobject.cpp:74
MainWindow::highlightListItems
void highlightListItems()
Definition
mainwindow.cpp:40
MainWindow::showList
void showList()
Definition
mainwindow.cpp:72
main
int main(int argc, char *argv[])
[ctor_close]
Definition
src_corelib_animation_qpropertyanimation.cpp:100
qtbase
src
gui
doc
snippets
textdocument-listitems
mainwindow.h
Generated on
for Qt by
1.14.0