#include <CQBrowserPane.h>
Definition at line 19 of file CQBrowserPane.h.
CQBrowserPane::CQBrowserPane |
( |
QWidget * |
parent = 0 | ) |
|
Definition at line 18 of file CQBrowserPane.cpp.
References slotUpdateScrollBar().
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);
28 setEditTriggers(QAbstractItemView::NoEditTriggers);
29 setTextElideMode(Qt::ElideNone);
30 setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
31 setUniformRowHeights(
true);
32 setSortingEnabled(
true);
33 setHeaderHidden(
true);
35 connect(
this, SIGNAL(expanded(
const QModelIndex &)),
this, SLOT(
slotUpdateScrollBar(
const QModelIndex &)));
36 connect(
this, SIGNAL(collapsed(
const QModelIndex &)),
this, SLOT(
slotUpdateScrollBar(
const QModelIndex &)));
void slotUpdateScrollBar(const QModelIndex &index)
CQBrowserPane::~CQBrowserPane |
( |
| ) |
|
|
virtual |
void CQBrowserPane::currentChanged |
( |
const QModelIndex & |
current, |
|
|
const QModelIndex & |
previous |
|
) |
| |
|
protectedvirtualslot |
void CQBrowserPane::slotUpdateScrollBar |
( |
const QModelIndex & |
index | ) |
|
|
protectedslot |
The documentation for this class was generated from the following files: