WSL/SLF GitLab Repository

AboutWindow.h 1.36 KB
Newer Older
Mathias Bavay's avatar
Mathias Bavay committed
1
//SPDX-License-Identifier: GPL-3.0-or-later
2
3
4
5
6
/*****************************************************************************/
/*  Copyright 2019 WSL Institute for Snow and Avalanche Research  SLF-DAVOS  */
/*****************************************************************************/
/* This file is part of INIshell.
   INIshell is free software: you can redistribute it and/or modify
7
   it under the terms of the GNU General Public License as published by
8
9
10
11
12
13
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   INIshell is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
   GNU General Public License for more details.
15

16
17
   You should have received a copy of the GNU General Public License
   along with INIshell.  If not, see <http://www.gnu.org/licenses/>.
18
19
20
21
22
23
24
*/

/*
 * This is the About window accessible through the help menu.
 * 2019-11
 */

Michael Reisecker's avatar
Michael Reisecker committed
25
26
27
#ifndef ABOUTWINDOW_H
#define ABOUTWINDOW_H

Michael Reisecker's avatar
Michael Reisecker committed
28
#include <QKeyEvent>
29
#include <QTextBrowser>
Michael Reisecker's avatar
Michael Reisecker committed
30
31
32
33
34
35
36
#include <QWidget>

class AboutWindow : public QWidget {
	Q_OBJECT

	public:
		explicit AboutWindow(QWidget *parent = nullptr);
37

Michael Reisecker's avatar
Michael Reisecker committed
38
39
40
	protected:
		void keyPressEvent(QKeyEvent *event) override;

41
42
	private:
		void setAboutText(QTextBrowser *textbox);
Michael Reisecker's avatar
Michael Reisecker committed
43
44
45
};

#endif //ABOUTWINDOW_H