Isis 3.0
Home
Isis::HistoryTreeWidget Class Reference

History Widget for cnetsuite. More...

#include <HistoryTreeWidget.h>

Inherits QTreeWidget.

Public Member Functions

 HistoryTreeWidget (Project *project, QWidget *parent=0)
 Construct a history tree widget. More...
 
virtual ~HistoryTreeWidget ()
 Clean up allocated memory. More...
 

Protected Member Functions

int sizeHintForColumn (int column) const
 Get the preferred size of a given column. More...
 

Detailed Description

History Widget for cnetsuite.

This widget shows the history of work orders performed on the project.

Author
2012-07-23 Steven Lambright

Constructor & Destructor Documentation

Isis::HistoryTreeWidget::HistoryTreeWidget ( Project project,
QWidget parent = 0 
)

Construct a history tree widget.

Parameters
projectThe project to show history for
parentThe Qt-relationship parent

References Isis::Project::undoStack().

Isis::HistoryTreeWidget::~HistoryTreeWidget ( )
virtual

Clean up allocated memory.

Member Function Documentation

int Isis::HistoryTreeWidget::sizeHintForColumn ( int  column) const
protected

Get the preferred size of a given column.

This is used by resizeColumnToContents().

The work order name column prefers space not taken by other columns. The progress column prefers 200. The date column prefers a little more than the text size of a date.

Returns
The preferred width of the given column

The documentation for this class was generated from the following files: