~ubuntu-branches/ubuntu/maverick/kdeutils/maverick-proposed

« back to all changes in this revision

Viewing changes to okteta/parts/kpart/part.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-02-28 11:30:24 UTC
  • mfrom: (1.2.41 upstream)
  • Revision ID: james.westby@ubuntu.com-20100228113024-o11z0lf8ertqublf
Tags: 4:4.4.1-0ubuntu1
* New upstream bugfix release:
  - Bump build-depend versions
  - Update kdelirc.install, printer-applet.install and okteta.install
* Backport svn revision 1089254 (LP: #521061)

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        mDocument = static_cast<Kasten::ByteArrayDocument*>( document );
184
184
        mDocument->setReadOnly( mModus != ReadWriteModus );
185
185
        connect( mDocument, SIGNAL(localSyncStateChanged( Kasten::LocalSyncState )),
186
 
                 SLOT(onModified( int )) );
 
186
                 SLOT(onModified( Kasten::LocalSyncState )) );
187
187
 
188
188
        mByteArrayView = new Kasten::ByteArrayView( mDocument );
189
189
//     mByteArrayView->setNoOfBytesPerLine( 16 );
202
202
}
203
203
 
204
204
 
205
 
void OktetaPart::onModified( int state )
 
205
void OktetaPart::onModified( Kasten::LocalSyncState state )
206
206
{
207
 
    Kasten::LocalSyncState syncState = (Kasten::LocalSyncState)( state );
208
 
 
209
 
    const bool isModified = ( syncState != Kasten::LocalInSync );
 
207
    const bool isModified = ( state != Kasten::LocalInSync );
210
208
    setModified( isModified );
211
209
}
212
210