kleopatra
headerview.cpp
Go to the documentation of this file.
71 inline typename T_container::value_type lookup( const T_container & c, unsigned int i, const typename T_container::value_type & defaultValue ) {
113 for ( unsigned int i = 0, end = std::min<unsigned int>( newCount, modes.size() ) ; i < end ; ++i )
145 static std::vector<int> calculate_section_sizes( const std::vector<int> & oldSizes, int newLength, const std::vector<QHeaderView::ResizeMode> & modes, int minSize ) {
176 ? stretchLength ? stretchableSpace * oldSizes[i] / stretchLength : stretchableSpace / numStretchSections
242 const std::vector<int> newSizes = calculate_section_sizes( oldSizes, width(), d->modes, minimumSectionSize() );
virtual void setRootIndex(const QModelIndex &index)
HeaderView(Qt::Orientation o, QWidget *parent=0)
Definition: headerview.cpp:136
void sectionResized(int logicalIndex, int oldSize, int newSize)
void sectionCountChanged(int oldCount, int newCount)
QDebug & nospace()
static std::vector< int > section_sizes(const QHeaderView *view)
Definition: headerview.cpp:53
static void apply_section_sizes(QHeaderView *view, const std::vector< int > &newSizes)
Definition: headerview.cpp:62
Definition: headerview.h:44
void setSectionResizeMode(unsigned int logicalIndex, ResizeMode mode)
Definition: headerview.cpp:198
virtual void mouseReleaseEvent(QMouseEvent *e)
virtual void setModel(QAbstractItemModel *model)
void resizeSection(int logicalIndex, int size)
int width() const
int minimumSectionSize() const
virtual void updateGeometries()
int sectionSize(int logicalIndex) const
QDebug & space()
virtual void mousePressEvent(QMouseEvent *e)
void setResizeMode(ResizeMode mode)
void setSectionSizes(const std::vector< int > &sizes)
Definition: headerview.cpp:186
std::vector< int > sectionSizes() const
Definition: headerview.cpp:194
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int count() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.