JKQtExtras
a library of useful Qt widgets and tools
Main Page
Related Pages
Modules
Namespaces
Classes
jkqteverticalscrollarea.h
1
/*
2
Copyright (c) 2013-2020 Jan W. Krieger (<jan@jkrieger.de>)
3
4
This software is free software: you can redistribute it and/or modify
5
it under the terms of the GNU Lesser General Public License (LGPL) as published by
6
the Free Software Foundation, either version 2.1 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU Lesser General Public License (LGPL) for more details.
13
14
You should have received a copy of the GNU Lesser General Public License (LGPL)
15
along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
19
#ifndef JKQTEVERTICALSCROLLAREA_H
20
#define JKQTEVERTICALSCROLLAREA_H
21
22
#include "jkqtextras_imexport.h"
23
#include <QScrollArea>
24
25
/*! \brief a scrollarea which shows only vertical scrollbars whenever possible (minimum widget size) and otherwise tries
26
to maximize the size of the widget.
27
\ingroup JKQtExtrasWidgetsLayout
28
29
30
*/
31
class
JKQTEXTRAS_LIB_EXPORT
JKQTEVerticalScrollArea
:
public
QScrollArea {
32
Q_OBJECT
33
public
:
34
JKQTEVerticalScrollArea
(QWidget* parent);
35
virtual
~JKQTEVerticalScrollArea
();
36
protected
:
37
virtual
void
resizeEvent
(QResizeEvent* event);
38
private
:
39
};
40
41
#endif // JKQTEVERTICALSCROLLAREA_H
JKQTEXTRAS_LIB_EXPORT
#define JKQTEXTRAS_LIB_EXPORT
Definition:
jkqtextras_imexport.h:95
JKQTEVerticalScrollArea::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
JKQTEVerticalScrollArea
a scrollarea which shows only vertical scrollbars whenever possible (minimum widget size) and otherwi...
Definition:
jkqteverticalscrollarea.h:31
JKQTEVerticalScrollArea::JKQTEVerticalScrollArea
JKQTEVerticalScrollArea(QWidget *parent)
JKQTEVerticalScrollArea::~JKQTEVerticalScrollArea
virtual ~JKQTEVerticalScrollArea()
lib
jkqtextras
jkqteverticalscrollarea.h
Generated on Mon Oct 12 2020 08:28:48 for JKQtExtras by
1.8.20