OSDN Git Service

f4f1e7be5dd50e0e6fa2ad445d187cb0c7ce7b85
[kita/kita.git] / kita / src / kitaui / listviewitem.cpp
1 /***************************************************************************
2 *   Copyright (C) 2004 by Kita Developers                                 *
3 *   ikemo@users.sourceforge.jp                                            *
4 *                                                                         *
5 *   This program is free software; you can redistribute it and/or modify  *
6 *   it under the terms of the GNU General Public License as published by  *
7 *   the Free Software Foundation; either version 2 of the License, or     *
8 *   (at your option) any later version.                                   *
9 ***************************************************************************/
10
11 #include "listviewitem.h"
12
13 using namespace Kita;
14
15 ListViewItem::ListViewItem(QTreeWidget *parent, QTreeWidgetItem *preceding,
16         const QStringList& strings)
17         : QTreeWidgetItem(parent, preceding)
18 {
19     for (int i = 0, j = strings.size(); i < j; i++)
20         setText(i, strings.at(i));
21 }
22
23 ListViewItem::ListViewItem(QTreeWidget *parent, const QStringList& strings)
24         : QTreeWidgetItem(parent, strings)
25 {
26 }
27
28 ListViewItem::ListViewItem(QTreeWidgetItem* parent, QTreeWidgetItem *preceding,
29         const QStringList& strings)
30         : QTreeWidgetItem(parent, preceding)
31 {
32     for (int i = 0, j = strings.size(); i < j; i++)
33         setText(i, strings.at(i));
34 }
35
36 ListViewItem::ListViewItem(QTreeWidgetItem* parent, const QStringList& strings)
37         : QTreeWidgetItem(parent, strings)
38 {
39 }