X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fwidgets%2Flistviewitem.cpp;h=f260c9ca0408776a711a0634cde1095096a19fc2;hb=1f0d096a7fc370ff02477f3860beae2669bf8903;hp=c9baaa29a0843b69c254ee86c0d1eedcc74b870d;hpb=e5a77a32dbe17d9534d3099f1fd3fdacba199516;p=architektonas diff --git a/src/widgets/listviewitem.cpp b/src/widgets/listviewitem.cpp index c9baaa2..f260c9c 100644 --- a/src/widgets/listviewitem.cpp +++ b/src/widgets/listviewitem.cpp @@ -21,7 +21,7 @@ /** * Constructor for root items. */ -QG_ListViewItem::QG_ListViewItem(QListWidget * par, const QString & label, +ListViewItem::ListViewItem(QListWidget * par, const QString & label, bool open, int id): QListWidgetItem(par) { par = 0; @@ -35,7 +35,7 @@ QG_ListViewItem::QG_ListViewItem(QListWidget * par, const QString & label, /** * Constructor for list view items with a folder icon. */ -QG_ListViewItem::QG_ListViewItem(QG_ListViewItem * par, const QString & label, +ListViewItem::ListViewItem(ListViewItem * par, const QString & label, bool open, int id): QListWidgetItem((QListWidget *)par) { this->par = par; @@ -50,7 +50,7 @@ QG_ListViewItem::QG_ListViewItem(QG_ListViewItem * par, const QString & label, /** * Opens or closes the item. */ -void QG_ListViewItem::setOpen(bool open) +void ListViewItem::setOpen(bool open) { if (open == true) // setPixmap(0, QPixmap(folderopen_xpm)); @@ -69,7 +69,7 @@ void QG_ListViewItem::setOpen(bool open) /** * Called in the beginning. */ -void QG_ListViewItem::setup() +void ListViewItem::setup() { // Q3ListViewItem::setup(); #warning "!!!" @@ -79,7 +79,7 @@ void QG_ListViewItem::setup() /** * Returns the "path" of this item (like: "Project/Page1/Paragraph1/"). */ -QString QG_ListViewItem::getFullPath() +QString ListViewItem::getFullPath() { QString s; @@ -101,7 +101,7 @@ QString QG_ListViewItem::getFullPath() /** * Returns the text of the given column of this item. */ -QString QG_ListViewItem::text(int column) const +QString ListViewItem::text(int column) const { if (column == 0) return label; @@ -109,17 +109,17 @@ QString QG_ListViewItem::text(int column) const return "Column1"; } -QString QG_ListViewItem::getLabel() const +QString ListViewItem::getLabel() const { return label; } -void QG_ListViewItem::setId(int id) +void ListViewItem::setId(int id) { this->id = id; } -int QG_ListViewItem::getId() +int ListViewItem::getId() { return id; }