[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/src
From: Harald Fernengel <harry () kdevelop ! org>
Date: 2003-07-19 21:07:41
[Download RAW message or body]
CVS commit by harald:
make it less magic, better handling of reloaded files
M +6 -4 mainwindowideal.cpp 1.37
--- kdevelop/src/mainwindowideal.cpp #1.36:1.37
@@ -646,9 +646,11 @@ void MainWindowIDEAl::updateTabForPart(
QString tLabel( rw_part->url().fileName() );
QIconSet tSet;
- if ( rw_part->isModified() )
+ QString toolTip = rw_part->url().url();
+ if ( PartController::getInstance()->isDirty( rw_part ) ) {
+ toolTip.prepend( i18n("Externally modified - ") );
+ tSet = SmallIconSet( "revert" );
+ } else if ( rw_part->isModified() ) {
tSet = SmallIconSet( "filesave" );
- if ( ( m_tabWidget->tabLabel( rw_part->widget() ) == tLabel )
- && ( !m_tabWidget->tabIconSet( rw_part->widget() ).isNull() ) )
- return;
+ }
m_tabWidget->changeTab( rw_part->widget(), tSet, tLabel );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic