mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
libs: do not grab and ugrab the keyboard from the calendar focus change events
QCalendardWidget (and consequently KCalendarWidget) focus policy is set to Qt::StrongFocus by default Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
49e1b04def
commit
ecf0d7659b
2 changed files with 0 additions and 14 deletions
|
@ -126,18 +126,6 @@ void CalendarPrivate::init(const QDate &initialDate)
|
|||
updateSize();
|
||||
}
|
||||
|
||||
void Calendar::focusInEvent(QFocusEvent* event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
grabKeyboard();
|
||||
}
|
||||
|
||||
void Calendar::focusOutEvent(QFocusEvent* event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
ungrabKeyboard();
|
||||
}
|
||||
|
||||
void Calendar::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
switch(event->key()) {
|
||||
|
|
|
@ -68,8 +68,6 @@ Q_SIGNALS:
|
|||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent * event);
|
||||
void focusInEvent(QFocusEvent * event);
|
||||
void focusOutEvent(QFocusEvent * event);
|
||||
void showEvent(QShowEvent * event);
|
||||
|
||||
private Q_SLOTS:
|
||||
|
|
Loading…
Add table
Reference in a new issue