--Boundary-00=_0NbbGfCik76b6RB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, Without the patch, header was visible in tabbed and plain mode. After the fix: http://kexi-project.org/pics/2.0/alpha1/kpagewidget/ OK? -- regards / pozdrawiam, Jaroslaw Staniek Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on Kexi & KOffice: http://www.kexi-project.org, http://www.koffice.org KDE3 & KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org --Boundary-00=_0NbbGfCik76b6RB Content-Type: text/x-diff; charset="us-ascii"; name="kdeui_paged.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kdeui_paged.patch" Index: kdeui/paged/kpageview.cpp =================================================================== --- kdeui/paged/kpageview.cpp (revision 674122) +++ kdeui/paged/kpageview.cpp (working copy) @@ -66,6 +66,8 @@ { } + void updateTitleWidget(const QModelIndex& index); + KPageView* parent; // data @@ -266,16 +268,23 @@ //d->stack->setCurrentWidget( d->emptyWidget ); } + updateTitleWidget(index); + + emit parent->currentPageChanged( index, previous ); +} + +void KPageView::Private::updateTitleWidget(const QModelIndex& index) +{ + if (!parent->showPageHeader()) + return; + QString header = model->data( index, KPageModel::HeaderRole ).toString(); if ( header.isEmpty() ) { header = model->data( index, Qt::DisplayRole ).toString(); } titleWidget->setText(header.remove('&')); - const QIcon icon = model->data( index, Qt::DecorationRole ).value(); titleWidget->setPixmap(icon.pixmap(22, 22)); - - emit parent->currentPageChanged( index, previous ); } void KPageView::Private::dataChanged( const QModelIndex&, const QModelIndex& ) @@ -291,14 +300,7 @@ if ( !index.isValid() ) return; - QString header = model->data( index, KPageModel::HeaderRole ).toString(); - if ( header.isEmpty() ) { - header = model->data( index, Qt::DisplayRole ).toString(); - } - titleWidget->setText(header.remove('&')); - - const QIcon icon = model->data( index, Qt::DecorationRole ).value(); - titleWidget->setPixmap(icon.pixmap(22, 22)); + updateTitleWidget(index); } /** --Boundary-00=_0NbbGfCik76b6RB--