QCAD
Open Source 2D CAD
RTreeWidget Class Reference

Copyright (c) 2011-2015 by Andrew Mustun. More...

#include <RTreeWidget.h>

Inheritance diagram for RTreeWidget:

Signals

void contextMenuRequested (QTreeWidgetItem *item, int column)
 
void itemColumnClicked (QTreeWidgetItem *item, int column)
 

Public Member Functions

QModelIndex getIndex (QTreeWidgetItem *item, int column=0)
 
 RTreeWidget (QWidget *parent=0)
 Copyright (c) 2011-2015 by Andrew Mustun. More...
 
void setSelectableColumn (int c)
 
virtual ~RTreeWidget ()
 Destructor. More...
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *e)
 
void mouseMoveEvent (QMouseEvent *e)
 
void mousePressEvent (QMouseEvent *e)
 
void mouseReleaseEvent (QMouseEvent *e)
 

Private Attributes

int indexPressed
 
QVariant itemPressedData
 
int selectableColumn
 

Detailed Description

Copyright (c) 2011-2015 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD. Tree widget with some additional functionality for icons.

Scriptable:
This class is available in script environments.

Constructor & Destructor Documentation

RTreeWidget::RTreeWidget ( QWidget *  parent = 0)

Copyright (c) 2011-2015 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD. Default Constructor.

RTreeWidget::~RTreeWidget ( )
virtual

Destructor.

Member Function Documentation

void RTreeWidget::contextMenuEvent ( QContextMenuEvent *  e)
protected
void RTreeWidget::contextMenuRequested ( QTreeWidgetItem *  item,
int  column 
)
signal
QModelIndex RTreeWidget::getIndex ( QTreeWidgetItem *  item,
int  column = 0 
)
inline
void RTreeWidget::itemColumnClicked ( QTreeWidgetItem *  item,
int  column 
)
signal
void RTreeWidget::mouseMoveEvent ( QMouseEvent *  e)
protected
void RTreeWidget::mousePressEvent ( QMouseEvent *  e)
protected
void RTreeWidget::mouseReleaseEvent ( QMouseEvent *  e)
protected
void RTreeWidget::setSelectableColumn ( int  c)
inline

Member Data Documentation

int RTreeWidget::indexPressed
private
QVariant RTreeWidget::itemPressedData
private
int RTreeWidget::selectableColumn
private

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