From 2b8772807fb862895c00762fb5b246ed78b663fc Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 16 Mar 2008 02:17:16 +0000 Subject: provide a cleaner layout for the information panel; there are still some open issues, but it looks already less cluttered... svn path=/trunk/KDE/kdebase/apps/; revision=786080 --- src/metatextlabel.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/metatextlabel.h (limited to 'src/metatextlabel.h') diff --git a/src/metatextlabel.h b/src/metatextlabel.h new file mode 100644 index 000000000..856bc85c2 --- /dev/null +++ b/src/metatextlabel.h @@ -0,0 +1,49 @@ +/*************************************************************************** + * Copyright (C) 2008 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 METATEXTLABEL_H +#define METATEXTLABEL_H + +#include + +class KVBox; +class QHBoxLayout; + +/** + * @brief Displays general meta in several lines. + * + * Each line contains a label and the the meta information. + */ +class MetaTextLabel : public QGroupBox +{ + Q_OBJECT + +public: + MetaTextLabel(QWidget* parent = 0); + virtual ~MetaTextLabel(); + + void clear(); + void add(const QString& labelText, const QString& infoText); + +private: + KVBox* m_lines; + QHBoxLayout* m_layout; +}; + +#endif -- cgit v1.3