Commit e799885f authored by Stephan Binner's avatar Stephan Binner
Browse files

Bug 55560: wish that konquerors tabs indicated if a page was still loading, or was done

svn path=/trunk/kdebase/konqueror/; revision=228687
parent 66c1b462
......@@ -228,6 +228,7 @@ void KonqFrameTabs::removeChildFrame( KonqFrameBase * frame )
void KonqFrameTabs::slotCurrentChanged( QWidget* newPage )
{
setTabColor( newPage, QColor( "black") );
KonqFrameBase* currentFrame = dynamic_cast<KonqFrameBase*>(newPage);
if (!m_pViewManager->isLoadingProfile()) {
......
......@@ -465,6 +465,7 @@ void KonqView::setLoading( bool loading, bool hasPending /*= false*/)
if ( m_pMainWindow->currentView() == this )
m_pMainWindow->updateToolBarActions( hasPending );
m_pMainWindow->viewManager()->setLoading( this, loading | hasPending );
}
void KonqView::slotPercent( KIO::Job *, unsigned long percent )
......
......@@ -1585,6 +1585,22 @@ void KonqViewManager::slotProfileListAboutToShow()
m_bProfileListDirty = false;
}
void KonqViewManager::setLoading( KonqView *view, bool loading ) {
if ( m_pDocContainer->frameType() == "Tabs" ) {
QColor color;
if ( loading )
color = QColor( "red" );
else
{
if ( m_pMainWindow->currentView() != view )
color = QColor( "blue" );
else
color = QColor( "black" );
}
static_cast<KonqFrameTabs*>( docContainer())->setTabColor( view->frame(), color );
}
}
///////////////// Debug stuff ////////////////
#ifndef NDEBUG
......
......@@ -265,6 +265,8 @@ public:
void printFullHierarchy( KonqFrameContainerBase * container );
#endif
void setLoading( KonqView *view, bool loading );
protected slots:
void emitActivePartChanged();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment