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
11QT_BEGIN_NAMESPACE
12
13class QAction;
14class QTextDocument;
15class QTextEdit;
16class QTextList;
17class QTreeWidgetItem;
18
19class MainWindow : public QMainWindow
20{
22
23public:
25
26public slots:
27 void insertList();
28 void highlightListItems();
29 void showList();
30
31private:
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
40QT_END_NAMESPACE
41
42#endif
void highlightListItems()
void showList()
int main(int argc, char *argv[])
[ctor_close]