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

kcachegrind

  • sources
  • kde-4.12
  • kdesdk
  • kcachegrind
  • qcachegrind
qtcolorbutton.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copied from Qt 4.6.0 sources, directory tools/shared/qtgradienteditor
4 ** with small modifications to allow compilation with Qt 4.4
5 **
6 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
7 ** All rights reserved.
8 ** Contact: Nokia Corporation (qt-info@nokia.com)
9 **
10 ** This file is part of the tools applications of the Qt Toolkit.
11 **
12 ** No Commercial Usage
13 ** This file contains pre-release code and may not be distributed.
14 ** You may use this file in accordance with the terms and conditions
15 ** contained in the Technology Preview License Agreement accompanying
16 ** this package.
17 **
18 ** GNU Lesser General Public License Usage
19 ** Alternatively, this file may be used under the terms of the GNU Lesser
20 ** General Public License version 2.1 as published by the Free Software
21 ** Foundation and appearing in the file LICENSE.LGPL included in the
22 ** packaging of this file. Please review the following information to
23 ** ensure the GNU Lesser General Public License version 2.1 requirements
24 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25 **
26 ** In addition, as a special exception, Nokia gives you certain additional
27 ** rights. These rights are described in the Nokia Qt LGPL Exception
28 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
29 **
30 ** If you have questions regarding the use of this file, please contact
31 ** Nokia at qt-info@nokia.com.
32 **
33 ****************************************************************************/
34 
35 #ifndef QTCOLORBUTTON_H
36 #define QTCOLORBUTTON_H
37 
38 #include <QToolButton>
39 
40 QT_BEGIN_NAMESPACE
41 
42 class QtColorButton : public QToolButton
43 {
44  Q_OBJECT
45  Q_PROPERTY(bool backgroundCheckered READ isBackgroundCheckered WRITE setBackgroundCheckered)
46 public:
47  QtColorButton(QWidget *parent = 0);
48  ~QtColorButton();
49 
50  bool isBackgroundCheckered() const;
51  void setBackgroundCheckered(bool checkered);
52 
53  QColor color() const;
54 
55 public slots:
56 
57  void setColor(const QColor &color);
58 
59 signals:
60  void colorChanged(const QColor &color);
61 protected:
62  void paintEvent(QPaintEvent *event);
63  void mousePressEvent(QMouseEvent *event);
64  void mouseMoveEvent(QMouseEvent *event);
65 #ifndef QT_NO_DRAGANDDROP
66  void dragEnterEvent(QDragEnterEvent *event);
67  void dragLeaveEvent(QDragLeaveEvent *event);
68  void dropEvent(QDropEvent *event);
69 #endif
70 private:
71  class QtColorButtonPrivate* d_ptr;
72  Q_DECLARE_PRIVATE(QtColorButton)
73  Q_DISABLE_COPY(QtColorButton)
74  Q_PRIVATE_SLOT(d_func(), void slotEditColor())
75 };
76 
77 QT_END_NAMESPACE
78 
79 #endif
QtColorButton::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition: qtcolorbutton.cpp:208
QWidget
QtColorButton
Definition: qtcolorbutton.h:42
QtColorButton::QtColorButton
QtColorButton(QWidget *parent=0)
Definition: qtcolorbutton.cpp:115
QtColorButton::~QtColorButton
~QtColorButton()
Definition: qtcolorbutton.cpp:128
QtColorButton::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event)
Definition: qtcolorbutton.cpp:237
QtColorButton::setColor
void setColor(const QColor &color)
Definition: qtcolorbutton.cpp:133
QtColorButton::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition: qtcolorbutton.cpp:217
QtColorButton::colorChanged
void colorChanged(const QColor &color)
QtColorButton::setBackgroundCheckered
void setBackgroundCheckered(bool checkered)
Definition: qtcolorbutton.cpp:146
QtColorButton::dropEvent
void dropEvent(QDropEvent *event)
Definition: qtcolorbutton.cpp:256
QtColorButton::dragLeaveEvent
void dragLeaveEvent(QDragLeaveEvent *event)
Definition: qtcolorbutton.cpp:249
QtColorButton::color
QColor color() const
Definition: qtcolorbutton.cpp:141
QToolButton
QtColorButton::paintEvent
void paintEvent(QPaintEvent *event)
Definition: qtcolorbutton.cpp:159
QtColorButton::isBackgroundCheckered
bool isBackgroundCheckered() const
Definition: qtcolorbutton.cpp:154
QtColorButton::backgroundCheckered
bool backgroundCheckered
Definition: qtcolorbutton.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcachegrind

Skip menu "kcachegrind"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

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