diff --git a/lib/rdlistviewitem.cpp b/lib/rdlistviewitem.cpp index 7cf7d4f5..45869bef 100644 --- a/lib/rdlistviewitem.cpp +++ b/lib/rdlistviewitem.cpp @@ -39,6 +39,20 @@ RDListViewItem::RDListViewItem(Q3ListView *parent) } } +RDListViewItem::RDListViewItem(RDListViewItem *parent) + : Q3ListViewItem((Q3ListViewItem *)parent) +{ + item_line=-1; + item_id=-1; + list_parent=(RDListView *)listView(); + item_background_color= + list_parent->palette().color(QPalette::Active,QColorGroup::Base); + for(int i=0;icolumns();i++) { + item_text_color. + push_back(list_parent->palette().color(QPalette::Active,QColorGroup::Text)); + item_text_weight.push_back(list_parent->font().weight()); + } +} int RDListViewItem::line() const { diff --git a/lib/rdlistviewitem.h b/lib/rdlistviewitem.h index 247b6f7a..ee82cf38 100644 --- a/lib/rdlistviewitem.h +++ b/lib/rdlistviewitem.h @@ -32,6 +32,7 @@ class RDListViewItem : public Q3ListViewItem { public: RDListViewItem(Q3ListView *parent); + RDListViewItem(RDListViewItem *parent); int line() const; void setLine(int line); int id() const;