COPASI API  4.16.103
Public Member Functions | Protected Slots | List of all members
CQBrowserPane Class Reference

#include <CQBrowserPane.h>

Inheritance diagram for CQBrowserPane:
Inheritance graph
[legend]
Collaboration diagram for CQBrowserPane:
Collaboration graph
[legend]

Public Member Functions

 CQBrowserPane (QWidget *parent=0)
 
virtual ~CQBrowserPane ()
 

Protected Slots

virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous)
 
void slotUpdateScrollBar (const QModelIndex &index)
 

Detailed Description

Definition at line 19 of file CQBrowserPane.h.

Constructor & Destructor Documentation

CQBrowserPane::CQBrowserPane ( QWidget *  parent = 0)

Definition at line 18 of file CQBrowserPane.cpp.

References slotUpdateScrollBar().

18  :
19  QTreeView(parent)
20 {
21  QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
22  sizePolicy.setHorizontalStretch(0);
23  sizePolicy.setVerticalStretch(0);
24  sizePolicy.setHeightForWidth(this->sizePolicy().hasHeightForWidth());
25  setSizePolicy(sizePolicy);
26  setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
27  setAutoScroll(true);
28  setEditTriggers(QAbstractItemView::NoEditTriggers);
29  setTextElideMode(Qt::ElideNone);
30  setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
31  setUniformRowHeights(true);
32  setSortingEnabled(true);
33  setHeaderHidden(true);
34 
35  connect(this, SIGNAL(expanded(const QModelIndex &)), this, SLOT(slotUpdateScrollBar(const QModelIndex &)));
36  connect(this, SIGNAL(collapsed(const QModelIndex &)), this, SLOT(slotUpdateScrollBar(const QModelIndex &)));
37 }
void slotUpdateScrollBar(const QModelIndex &index)
CQBrowserPane::~CQBrowserPane ( )
virtual

Definition at line 40 of file CQBrowserPane.cpp.

41 {}

Member Function Documentation

void CQBrowserPane::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
protectedvirtualslot

Definition at line 44 of file CQBrowserPane.cpp.

45 {
46  static_cast< ListViews * >(parent())->slotFolderChanged(current);
47 }
void CQBrowserPane::slotUpdateScrollBar ( const QModelIndex &  index)
protectedslot

Definition at line 49 of file CQBrowserPane.cpp.

Referenced by CQBrowserPane().

50 {
51  resizeColumnToContents(index.column());
52 }

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