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

kontact

  • sources
  • kde-4.12
  • kdepim
  • kontact
  • plugins
  • knotes
knotetip.h
Go to the documentation of this file.
1 /*
2  This file is part of the KDE project
3 
4  Copyright (C) 2004 Michael Brade <brade@kde.org>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; see the file COPYING. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 
21  In addition, as a special exception, the copyright holders give
22  permission to link the code of this program with any edition of
23  the Qt library by Trolltech AS, Norway (or with modified versions
24  of Qt that use the same license as Qt), and distribute linked
25  combinations including the two. You must obey the GNU General
26  Public License in all respects for all of the code used other than
27  Qt. If you modify this file, you may extend this exception to
28  your version of the file, but you are not obligated to do so. If
29  you do not wish to do so, delete this exception statement from
30  your version.
31 */
32 
33 #ifndef KNOTETIP_H
34 #define KNOTETIP_H
35 
36 #include <QFrame>
37 
38 class KNotesIconViewItem;
39 
40 class QTextEdit;
41 class QListWidget;
42 
43 class KNoteTip : public QFrame
44 {
45 public:
46  explicit KNoteTip( QListWidget *parent );
47  ~KNoteTip();
48 
49  void setNote( KNotesIconViewItem *item );
50 
51 protected:
52  bool eventFilter( QObject *, QEvent *e );
53  void timerEvent( QTimerEvent * );
54  void resizeEvent( QResizeEvent * );
55 
56 private:
57  void setColor( const QColor &fg, const QColor &bg );
58  void setFilter( bool enable );
59  void reposition();
60 
61 private:
62  bool mFilter;
63  QListWidget *mView;
64  KNotesIconViewItem *mNoteIVI;
65  QTextEdit *mPreview;
66 };
67 
68 #endif
QListWidget
KNoteTip
Definition: knotetip.h:43
QObject
KNoteTip::~KNoteTip
~KNoteTip()
Definition: knotetip.cpp:69
KNoteTip::KNoteTip
KNoteTip(QListWidget *parent)
Definition: knotetip.cpp:48
KNoteTip::eventFilter
bool eventFilter(QObject *, QEvent *e)
Definition: knotetip.cpp:139
KNoteTip::setNote
void setNote(KNotesIconViewItem *item)
Definition: knotetip.cpp:75
KNotesIconViewItem
Definition: knotesiconview.h:37
KNoteTip::timerEvent
void timerEvent(QTimerEvent *)
Definition: knotetip.cpp:125
QFrame
KNoteTip::resizeEvent
void resizeEvent(QResizeEvent *)
Definition: knotetip.cpp:119
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:30 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kontact

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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