diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-10-06 14:59:52 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-10-06 14:59:52 +0200 |
commit | 61dd862769a186a05a2b0ca7fe7cc470aa383f25 (patch) | |
tree | 04f1e49b8b341b2a357772ffc3bc86ad4a8b4d35 /src/aboutdialog.h | |
parent | b37907c8269c6e96a09da830aea85c20c4209229 (diff) |
Add about dialog.
Diffstat (limited to 'src/aboutdialog.h')
-rw-r--r-- | src/aboutdialog.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/aboutdialog.h b/src/aboutdialog.h new file mode 100644 index 0000000..f7200a3 --- /dev/null +++ b/src/aboutdialog.h @@ -0,0 +1,54 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/*************************************************************************** + * aboutdialog.h + * + * Sat Oct 6 14:29:56 CEST 2018 + * Copyright 2018 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + +/* + * This file is part of DrumGizmo. + * + * DrumGizmo is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * DrumGizmo 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with DrumGizmo; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ +#pragma once + +#include <QDialog> +#include <QMouseEvent> +#include <QScrollArea> +#include <QTabWidget> + +class AboutDialog + : public QDialog +{ + Q_OBJECT +public: + AboutDialog(QWidget *parent, Qt::WindowFlags f); + +public slots: + void scroll(); + void noMoreScroll(); + void checkTab(int tabIndex); + +signals: + +private: + void mousePressEvent(QMouseEvent * event); + QScrollArea *licenseScroll; + QTimer *scrollTimer; + int scrollState; + QTabWidget *tabs; +}; |