• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

libs/libksane/libksane

  • sources
  • kde-4.14
  • kdegraphics
  • libs
  • libksane
  • libksane
splittercollapser.h
Go to the documentation of this file.
1 // vim: set tabstop=4 shiftwidth=4 noexpandtab:
2 /*
3 Gwenview: an image viewer
4 Copyright 2009 Aurélien Gâteau <agateau@kde.org>
5 
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) version 3, or any
10 later version accepted by the membership of KDE e.V. (or its
11 successor approved by the membership of KDE e.V.), which shall
12 act as a proxy defined in Section 6 of version 3 of the license.
13 
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18 
19 You should have received a copy of the GNU Lesser General Public
20 License along with this program. If not, see <http://www.gnu.org/licenses/>.
21 
22 */
23 #ifndef SPLITTERCOLLAPSER_H
24 #define SPLITTERCOLLAPSER_H
25 
26 // Qt
27 #include <QToolButton>
28 
29 // KDE
30 
31 class QSplitter;
32 
33 namespace KSaneIface {
34 
35 
36 struct SplitterCollapserPrivate;
41 class SplitterCollapser : public QToolButton {
42  Q_OBJECT
43 public:
44  SplitterCollapser(QSplitter*, QWidget* widget);
45  ~SplitterCollapser();
46 
47  virtual QSize sizeHint() const;
48 
49 public Q_SLOTS:
50  void slotCollapse();
51  void slotRestore();
52  void slotSetCollapsed(bool collapsed);
53 
54 protected:
55  virtual bool eventFilter(QObject*, QEvent*);
56 
57  virtual void paintEvent(QPaintEvent*);
58 
59 private:
60  SplitterCollapserPrivate* const d;
61 
62 private Q_SLOTS:
63  void slotClicked();
64 };
65 
66 
67 } // namespace
68 
69 #endif /* SPLITTERCOLLAPSER_H */
QEvent
QWidget
KSaneIface::SplitterCollapser::paintEvent
virtual void paintEvent(QPaintEvent *)
Definition: splittercollapser.cpp:287
KSaneIface::SplitterCollapser
A button which appears on the side of a splitter handle and allows easy collapsing of the widget on t...
Definition: splittercollapser.h:41
KSaneIface::SplitterCollapser::sizeHint
virtual QSize sizeHint() const
Definition: splittercollapser.cpp:239
KSaneIface::SplitterCollapser::slotRestore
void slotRestore()
Definition: splittercollapser.cpp:277
QObject
KSaneIface::SplitterCollapser::SplitterCollapser
SplitterCollapser(QSplitter *, QWidget *widget)
Definition: splittercollapser.cpp:184
KSaneIface::SplitterCollapser::eventFilter
virtual bool eventFilter(QObject *, QEvent *)
Definition: splittercollapser.cpp:227
QToolButton
QSize
QSplitter
KSaneIface::SplitterCollapser::slotCollapse
void slotCollapse()
Definition: splittercollapser.cpp:272
KSaneIface::SplitterCollapser::~SplitterCollapser
~SplitterCollapser()
Definition: splittercollapser.cpp:222
KSaneIface::SplitterCollapser::slotSetCollapsed
void slotSetCollapsed(bool collapsed)
Definition: splittercollapser.cpp:282
QPaintEvent
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libs/libksane/libksane

Skip menu "libs/libksane/libksane"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal