FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
qtgui::TreeComboBox Class Reference

Provides a QComboBox able to display a tree model item. More...

#include <qttools/gui/tree_combo_box.h>

Inheritance diagram for qtgui::TreeComboBox:

Public Member Functions

 TreeComboBox (QWidget *parent=NULL)
 
void showPopup () Q_DECL_OVERRIDE
 
QTreeView * treeView () const
 The QTreeView used to display the attached tree model. More...
 
QModelIndex treeFindData (const QVariant &data, int role=Qt::UserRole, Qt::MatchFlags flags=Qt::MatchRecursive) const
 
QModelIndex currentModelIndex () const
 
Q_SLOT void setCurrentModelIndex (const QModelIndex &modelIndex)
 

Detailed Description

Provides a QComboBox able to display a tree model item.

Examples:
qttools/tree_combo_box/main.cpp.

Constructor & Destructor Documentation

qtgui::TreeComboBox::TreeComboBox ( QWidget *  parent = NULL)

Member Function Documentation

QModelIndex qtgui::TreeComboBox::currentModelIndex ( ) const
void qtgui::TreeComboBox::setCurrentModelIndex ( const QModelIndex &  modelIndex)
void qtgui::TreeComboBox::showPopup ( )
QModelIndex qtgui::TreeComboBox::treeFindData ( const QVariant &  data,
int  role = Qt::UserRole,
Qt::MatchFlags  flags = Qt::MatchRecursive 
) const

Similar to QComboBox::findData() but searches recursively in the tree model (instead of just root items)

QTreeView * qtgui::TreeComboBox::treeView ( ) const

The QTreeView used to display the attached tree model.


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