Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
class
QAction
;
12
class
QTextDocument
;
13
class
QTextEdit
;
14
class
QTextList
;
15
class
QTreeWidgetItem
;
16
17
class
MainWindow
:
public
QMainWindow
18
{
19
Q_OBJECT
20
21
public
:
22
MainWindow
();
23
24
public
slots
:
25
void
insertList
();
26
void
highlightListItems
();
27
void
showList
();
28
29
private
:
30
QString
currentFile;
31
QTextEdit
*editor =
nullptr
;
32
QTextDocument
*document =
nullptr
;
33
QList<QTextList*> listStructures;
34
QList<QTreeWidgetItem*> previousItems;
35
QList<QTreeWidgetItem*> parentItems;
36
};
37
38
#endif
MainWindow
[5]
Definition
src_corelib_kernel_qobject.cpp:52
MainWindow::highlightListItems
void highlightListItems()
Definition
mainwindow.cpp:40
MainWindow::MainWindow
MainWindow()
MainWindow::showList
void showList()
Definition
mainwindow.cpp:72
MainWindow::insertList
void insertList()
Definition
mainwindow.cpp:148
QAction
The QAction class provides an abstraction for user commands that can be added to different user inter...
Definition
qaction.h:30
QMainWindow
The QMainWindow class provides a main application window.
Definition
qmainwindow.h:25
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QTextDocument
\reentrant \inmodule QtGui
Definition
qtextdocument.h:60
QTextEdit
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
Definition
qtextedit.h:27
QTextList
\reentrant
Definition
qtextlist.h:18
QTreeWidgetItem
The QTreeWidgetItem class provides an item for use with the QTreeWidget convenience class.
Definition
qtreewidget.h:23
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
slots
#define slots
Definition
qtmetamacros.h:40
qtbase
src
gui
doc
snippets
textdocument-listitems
mainwindow.h
Generated by
1.10.0