QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RTreeWidget Class Reference

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

#include <RTreeWidget.h>

Inheritance diagram for RTreeWidget:
RBlockListQt RCadToolMatrixTree

Signals

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

Public Member Functions

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

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 
virtual void resizeEvent (QResizeEvent *event)
 

Private Attributes

int indexPressed
 
QVariant itemPressedData
 
int selectableColumn
 

Detailed Description

Copyright (c) 2011-2018 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:\nThis class is available in script environments.\n
\generateScriptShell

Constructor & Destructor Documentation

◆ RTreeWidget()

RTreeWidget::RTreeWidget ( QWidget * parent = 0)

Copyright (c) 2011-2018 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::~RTreeWidget ( )
virtual

Destructor.

Member Function Documentation

◆ contextMenuEvent()

void RTreeWidget::contextMenuEvent ( QContextMenuEvent * e)
protectedvirtual

◆ contextMenuRequested

void RTreeWidget::contextMenuRequested ( QTreeWidgetItem * item,
int column )
signal

◆ getActiveItem()

QTreeWidgetItem * RTreeWidget::getActiveItem ( )
Returns
The active item. Either the selected or current item. This is the item an action is applied for.

◆ getIndex()

QModelIndex RTreeWidget::getIndex ( QTreeWidgetItem * item,
int column = 0 )
inline

◆ itemColumnClicked

void RTreeWidget::itemColumnClicked ( QTreeWidgetItem * item,
int column )
signal

◆ mouseMoveEvent()

void RTreeWidget::mouseMoveEvent ( QMouseEvent * e)
protectedvirtual

◆ mousePressEvent()

void RTreeWidget::mousePressEvent ( QMouseEvent * e)
protectedvirtual

◆ mouseReleaseEvent()

void RTreeWidget::mouseReleaseEvent ( QMouseEvent * e)
protectedvirtual

◆ resizeEvent()

void RTreeWidget::resizeEvent ( QResizeEvent * event)
protectedvirtual

◆ setSelectableColumn()

void RTreeWidget::setSelectableColumn ( int c)
inline

Member Data Documentation

◆ indexPressed

int RTreeWidget::indexPressed
private

◆ itemPressedData

QVariant RTreeWidget::itemPressedData
private

◆ selectableColumn

int RTreeWidget::selectableColumn
private

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