mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-25 17:08:13 +02:00
Add support for child items with RDListViewItem::RDListViewItem(RDListViewItem *parent)
This commit is contained in:
parent
1d2469f979
commit
4dc684ebc2
@ -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;i<list_parent->columns();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
|
int RDListViewItem::line() const
|
||||||
{
|
{
|
||||||
|
@ -32,6 +32,7 @@ class RDListViewItem : public Q3ListViewItem
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RDListViewItem(Q3ListView *parent);
|
RDListViewItem(Q3ListView *parent);
|
||||||
|
RDListViewItem(RDListViewItem *parent);
|
||||||
int line() const;
|
int line() const;
|
||||||
void setLine(int line);
|
void setLine(int line);
|
||||||
int id() const;
|
int id() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user