#include <propertieslistview.h>
Collaboration diagram for PropertiesListView:

Public Slots | |
| void | slotCreate (ItemGroup *itemGroup) |
| void | slotUpdate (ItemGroup *itemGroup) |
| void | slotClear () |
| void | slotSelectionChanged (QListViewItem *item) |
| void | slotMergeProperties () |
| void | slotSetDefaults () |
Public Member Functions | |
| PropertiesListView (QWidget *parent=0, const char *name=0) | |
| ~PropertiesListView () | |
Protected Slots | |
| void | headerSizeChanged (int section, int oldSize, int newSize) |
| void | slotDataChanged (const QString &id, QVariant data) |
| void | destroyEditor () |
Protected Member Functions | |
| virtual void | wheelEvent (QWheelEvent *e) |
Protected Attributes | |
| PIEditor * | m_editor |
| QPushButton * | m_diffBt |
| PLVItem * | p_lastItem |
| PLVItemMap | m_plvItemMap |
Definition at line 29 of file propertieslistview.h.
| void PropertiesListView::slotCreate | ( | ItemGroup * | itemGroup | ) | [slot] |
Creates a new set of property items and inserts them into the widget.
Definition at line 57 of file propertieslistview.cpp.
References ItemGroup::activeItem(), m_plvItemMap, slotClear(), slotUpdate(), and Item::variantMap().
Referenced by ItemEditor::slotUpdate().
| void PropertiesListView::slotUpdate | ( | ItemGroup * | itemGroup | ) | [slot] |
Updates the set of property items (enables/disables according to whether the items have differing values, etc). This will be called by slotCreate, and any time new items are selected / unselected.
Definition at line 112 of file propertieslistview.cpp.
References ItemGroup::itemsHaveSameDataValue(), m_plvItemMap, and slotClear().
Referenced by slotCreate(), and ItemEditor::updateMergeDefaults().
| void PropertiesListView::slotClear | ( | ) | [slot] |
Removes all property items from the widget.
Definition at line 48 of file propertieslistview.cpp.
References destroyEditor(), m_diffBt, and m_plvItemMap.
Referenced by ItemEditor::slotClear(), slotCreate(), and slotUpdate().
| void PropertiesListView::slotMergeProperties | ( | ) | [slot] |
Whenthe selected items have different values, then the property editor for the disagreeing property will have a value taken from one of the items, but will also be disabled. This will enable all disabled property editors and set the items to the value contained.
Definition at line 286 of file propertieslistview.cpp.
References ItemInterface::self(), and ItemInterface::slotSetData().
1.5.1