TaskModel Class Reference

List of all members.

Public Types

typedef CompilerOutputWidget::PatternType PatternType
 File = Qt::UserRole
 Line
 Description
 FileNotFound
 Type
enum  Roles {
  File = Qt::UserRole, Line, Description, FileNotFound,
  Type
}

Public Member Functions

 TaskModel ()
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QModelIndex parent (const QModelIndex &child) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
void clear ()
void addTask (PatternType type, const QString &description, const QString &file, int line)
int sizeOfFile ()
int sizeOfLineNumber ()
QModelIndex firstError () const
void setFileNotFound (const QModelIndex &index, bool b)
QIcon iconFor (PatternType type)

Private Attributes

QList< TaskItemm_items
int m_maxSizeOfFileName
QIcon m_errorIcon
QIcon m_warningIcon
QIcon m_unspecifiedIcon

Classes

struct  TaskItem

Detailed Description

Definition at line 32 of file CompilerOutputWidget.cpp.


Member Typedef Documentation

typedef CompilerOutputWidget::PatternType TaskModel::PatternType

Definition at line 36 of file CompilerOutputWidget.cpp.


Member Enumeration Documentation

enum TaskModel::Roles

Enumerator:
File 
Line 
Description 
FileNotFound 
Type 

Definition at line 61 of file CompilerOutputWidget.cpp.


Constructor & Destructor Documentation

TaskModel::TaskModel (  ) 

Definition at line 112 of file CompilerOutputWidget.cpp.


Member Function Documentation

void TaskModel::addTask ( PatternType  type,
const QString &  description,
const QString &  file,
int  line 
)

Definition at line 120 of file CompilerOutputWidget.cpp.

Referenced by CompilerOutputWidget::addItem().

Here is the caller graph for this function:

void TaskModel::clear (  ) 

Definition at line 142 of file CompilerOutputWidget.cpp.

Referenced by CompilerOutputWidget::clearContents().

Here is the caller graph for this function:

int TaskModel::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const

Definition at line 171 of file CompilerOutputWidget.cpp.

QVariant TaskModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 176 of file CompilerOutputWidget.cpp.

QModelIndex TaskModel::firstError (  )  const

Definition at line 216 of file CompilerOutputWidget.cpp.

Referenced by CompilerOutputWidget::gotoFirstError().

Here is the call graph for this function:

Here is the caller graph for this function:

QIcon TaskModel::iconFor ( PatternType  type  ) 

Definition at line 194 of file CompilerOutputWidget.cpp.

Referenced by TaskDelegate::paint().

Here is the caller graph for this function:

QModelIndex TaskModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

Definition at line 153 of file CompilerOutputWidget.cpp.

Referenced by firstError().

Here is the caller graph for this function:

QModelIndex TaskModel::parent ( const QModelIndex &  child  )  const

Definition at line 160 of file CompilerOutputWidget.cpp.

int TaskModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const

Definition at line 166 of file CompilerOutputWidget.cpp.

Referenced by CompilerOutputWidget::numberOfTasks().

Here is the caller graph for this function:

void TaskModel::setFileNotFound ( const QModelIndex &  index,
bool  b 
)

Definition at line 227 of file CompilerOutputWidget.cpp.

Referenced by CompilerOutputWidget::showTaskInFile().

int TaskModel::sizeOfFile (  ) 

Definition at line 204 of file CompilerOutputWidget.cpp.

Referenced by TaskDelegate::paint().

Here is the caller graph for this function:

int TaskModel::sizeOfLineNumber (  ) 

Definition at line 209 of file CompilerOutputWidget.cpp.

Referenced by TaskDelegate::paint().

Here is the caller graph for this function:


Member Data Documentation

QIcon TaskModel::m_errorIcon [private]

Definition at line 68 of file CompilerOutputWidget.cpp.

Referenced by iconFor(), and TaskModel().

QList<TaskItem> TaskModel::m_items [private]

Definition at line 66 of file CompilerOutputWidget.cpp.

Referenced by addTask(), clear(), data(), firstError(), rowCount(), and setFileNotFound().

int TaskModel::m_maxSizeOfFileName [private]

Definition at line 67 of file CompilerOutputWidget.cpp.

Referenced by addTask(), clear(), sizeOfFile(), and TaskModel().

QIcon TaskModel::m_unspecifiedIcon [private]

Definition at line 70 of file CompilerOutputWidget.cpp.

Referenced by iconFor(), and TaskModel().

QIcon TaskModel::m_warningIcon [private]

Definition at line 69 of file CompilerOutputWidget.cpp.

Referenced by iconFor(), and TaskModel().


The documentation for this class was generated from the following file:
Generated on Tue Sep 15 14:48:50 2009 for RoseQtWidgets by  doxygen 1.4.7