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 <QMainWindow>
8#include <QTextDocumentFragment>
9
10class QAction;
11class QTextDocument;
12class QTextEdit;
13
14class MainWindow : public QMainWindow
15{
17
18public:
20
21public slots:
22 void cutSelection();
23 void copySelection();
24 void openFile();
25 void pasteSelection();
26 void selectWord();
27 void selectLine();
28 void selectBlock();
29 void selectFrame();
31
32private:
33 QAction *cutAction = nullptr;
34 QAction *copyAction = nullptr;
35 QAction *pasteAction = nullptr;
36 QString currentFile;
37 QTextEdit *editor = nullptr;
38 QTextDocument *document = nullptr;
39 QTextDocumentFragment selection;
40};
41
42#endif
int main(int argc, char *argv[])
[2]
Definition buffer.cpp:77
void selectBlock()
void copySelection()
void openFile()
void selectLine()
void selectFrame()
void pasteSelection()
void selectWord()
void updateMenus()