KDEUI
kpageview.cpp
Go to the documentation of this file.
46 QObject::disconnect(view->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
65 QObject::connect(view->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), q, SLOT(_k_pageSelected(QItemSelection,QItemSelection)));
210 void KPageViewPrivate::_k_pageSelected(const QItemSelection &index, const QItemSelection &previous)
228 QWidget *widget = qvariant_cast<QWidget*>( model->data( currentIndex, KPageModel::WidgetRole ) );
252 if ( header.isNull() ) { //TODO KDE5 remove that ugly logic, see also doxy-comments in KPageWidgetItem::setHeader()
QModelIndexList indexes() const
const char header[]
Definition: kpageview.h:90
FaceType
This enum is used to decide which type of navigation view shall be used in the page view...
Definition: kpageview.h:85
minimumSizeHint
virtual QAbstractItemView * createView()
Returns the navigation view, depending on the current face type.
Definition: kpageview.cpp:422
typedef Alignment
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setFaceType(FaceType faceType)
Sets the face type of the page view.
Definition: kpageview.cpp:355
Definition: kpageview.h:89
QPixmap pixmap(const QSize &size, Mode mode, State state) const
bool isNull() const
bool isValid() const
int count(const T &value) const
void append(const T &value)
void setModel(QAbstractItemModel *model)
Sets the model of the page view.
Definition: kpageview.cpp:325
QModelIndex currentPage() const
Returns the index for the current page or an invalid index if no current page exists.
Definition: kpageview.cpp:377
Definition: kpageview.h:88
QAbstractItemModel * model() const
Returns the model of the page view.
Definition: kpageview.cpp:350
Definition: kpageview.h:91
void setPixmap(const QPixmap &pixmap, Size size, Mode mode, State state)
virtual bool showPageHeader() const
Returns whether the page header should be visible.
Definition: kpageview.cpp:448
QSize expandedTo(const QSize &otherSize) const
QAbstractItemDelegate * itemDelegate() const
Returns the item delegate of the page view.
Definition: kpageview.cpp:393
Standard title widget with a white background and round border.
Definition: ktitlewidget.h:61
virtual Qt::Alignment viewPosition() const
Returns the position where the navigation view should be located according to the page stack...
Definition: kpageview.cpp:463
Definition: kpageview.h:87
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QChar * data()
void setDefaultWidget(QWidget *widget)
Sets the widget which will be shown when a page is selected that has no own widget set...
Definition: kpageview.cpp:402
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 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:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.