[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise4/kdelibs-4.1-branch/kdeui/widgets
From: Laurent Montel <montel () kde ! org>
Date: 2009-04-16 8:30:04
Message-ID: 1239870604.667644.12291.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 954750 by mlaurent:
Backport:
Don't allow to cut/paste/undo/redo when lineedit is read only
M +8 -4 klineedit.cpp
--- branches/kdepim/enterprise4/kdelibs-4.1-branch/kdeui/widgets/klineedit.cpp #954749:954750
@@ -656,7 +656,8 @@
}
else if ( KStandardShortcut::paste().contains( key ) )
{
- paste();
+ if( !isReadOnly() )
+ paste();
return;
}
else if ( KStandardShortcut::pasteSelection().contains( key ) )
@@ -669,17 +670,20 @@
else if ( KStandardShortcut::cut().contains( key ) )
{
- cut();
+ if( !isReadOnly() )
+ cut();
return;
}
else if ( KStandardShortcut::undo().contains( key ) )
{
- undo();
+ if( !isReadOnly() )
+ undo();
return;
}
else if ( KStandardShortcut::redo().contains( key ) )
{
- redo();
+ if( !isReadOnly() )
+ redo();
return;
}
else if ( KStandardShortcut::deleteWordBack().contains( key ) )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic