┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/metatextlabel.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-03-16 02:17:16 +0000
committerPeter Penz <[email protected]>2008-03-16 02:17:16 +0000
commit2b8772807fb862895c00762fb5b246ed78b663fc (patch)
treed6df2f48fbbabbc0bd2f16d1035d49dcb1ff0ec8 /src/metatextlabel.h
parentef07279ab72d367afe3e25c80c530f2e52bfc166 (diff)
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
Diffstat (limited to 'src/metatextlabel.h')
-rw-r--r--src/metatextlabel.h49
1 files changed, 49 insertions, 0 deletions
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 <[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 *
+ ***************************************************************************/
+
+#ifndef METATEXTLABEL_H
+#define METATEXTLABEL_H
+
+#include <QGroupBox>
+
+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