Applets
notifierview.h
Go to the documentation of this file.00001 /* Copyright 2007 by Alexis Ménard <darktears31@gmail.com> 00002 00003 This library is free software; you can redistribute it and/or 00004 modify it under the terms of the GNU Library General Public 00005 License as published by the Free Software Foundation; either 00006 version 2 of the License, or (at your option) any later version. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 #ifndef NOTIFIERVIEW_H 00019 #define NOTIFIERVIEW_H 00020 00021 // Qt 00022 #include <QTreeView> 00023 00024 class QModelIndex; 00025 00026 namespace Notifier 00027 { 00028 00029 class NotifierView : public QTreeView 00030 { 00031 Q_OBJECT 00032 00033 public: 00034 NotifierView(QWidget *parent = 0); 00035 virtual ~NotifierView(); 00036 00037 protected: 00038 void resizeEvent(QResizeEvent * event); 00039 void mouseMoveEvent(QMouseEvent *event); 00040 void leaveEvent(QEvent *event); 00041 QModelIndex moveCursor(CursorAction cursorAction,Qt::KeyboardModifiers ); 00042 void paintEvent(QPaintEvent *event); 00043 00044 private: 00045 QModelIndex m_hoveredIndex; 00046 }; 00047 00048 } 00049 #endif // NOTIFIERVIEW_H