From f9bcd0a47cbdf0806c35a82856efdbe06279fb82 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 19 Sep 2011 16:38:07 +0200 Subject: Rough draft for getting back the header for the details-view --- src/kitemviews/kitemlistheader_p.h | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/kitemviews/kitemlistheader_p.h (limited to 'src/kitemviews/kitemlistheader_p.h') diff --git a/src/kitemviews/kitemlistheader_p.h b/src/kitemviews/kitemlistheader_p.h new file mode 100644 index 000000000..6f04ac94b --- /dev/null +++ b/src/kitemviews/kitemlistheader_p.h @@ -0,0 +1,42 @@ +/*************************************************************************** + * Copyright (C) 2011 by Peter Penz * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * + ***************************************************************************/ + +#ifndef KITEMLISTHEADER_H +#define KITEMLISTHEADER_H + +#include +#include + +/** + * @brief Header for KItemListView that shows the currently used roles. + */ +class LIBDOLPHINPRIVATE_EXPORT KItemListHeader : public QGraphicsWidget +{ + Q_OBJECT + +public: + KItemListHeader(QGraphicsWidget* parent = 0); + virtual ~KItemListHeader(); + + virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); +}; + +#endif + + -- cgit v1.3.1