diff options
| author | Peter Penz <[email protected]> | 2011-09-19 16:38:07 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-19 16:39:08 +0200 |
| commit | f9bcd0a47cbdf0806c35a82856efdbe06279fb82 (patch) | |
| tree | bc23a8f97413d6f910031fca2446df9428cfb999 /src/kitemviews/kitemlistheader.cpp | |
| parent | 8879f5e7527caee52966f352af7fa9585fe58192 (diff) | |
Rough draft for getting back the header for the details-view
Diffstat (limited to 'src/kitemviews/kitemlistheader.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistheader.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistheader.cpp b/src/kitemviews/kitemlistheader.cpp new file mode 100644 index 000000000..89b28bcce --- /dev/null +++ b/src/kitemviews/kitemlistheader.cpp @@ -0,0 +1,42 @@ +/*************************************************************************** + * Copyright (C) 2011 by Peter Penz <[email protected]> * + * * + * 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 * + ***************************************************************************/ + +#include "kitemlistheader_p.h" + +#include <QPainter> + +KItemListHeader::KItemListHeader(QGraphicsWidget* parent) : + QGraphicsWidget(parent) +{ + resize(0, 20); // TODO... +} + +KItemListHeader::~KItemListHeader() +{ +} + +void KItemListHeader::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + Q_UNUSED(option); + Q_UNUSED(widget); + painter->setPen(Qt::red); + painter->drawRect(rect()); +} + +#include "kitemlistheader_p.moc" |
