equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
605 if (e->type() == QEvent::StyleChange) { |
605 if (e->type() == QEvent::StyleChange) { |
606 QStyleOptionComboBox opt = comboStyleOption(); |
606 QStyleOptionComboBox opt = comboStyleOption(); |
607 view->setMouseTracking(combo->style()->styleHint(QStyle::SH_ComboBox_ListMouseTracking, &opt, combo) || |
607 view->setMouseTracking(combo->style()->styleHint(QStyle::SH_ComboBox_ListMouseTracking, &opt, combo) || |
608 combo->style()->styleHint(QStyle::SH_ComboBox_Popup, &opt, combo)); |
608 combo->style()->styleHint(QStyle::SH_ComboBox_Popup, &opt, combo)); |
609 setFrameStyle(combo->style()->styleHint(QStyle::SH_ComboBox_PopupFrameStyle, &opt, combo)); |
609 setFrameStyle(combo->style()->styleHint(QStyle::SH_ComboBox_PopupFrameStyle, &opt, combo)); |
610 } |
610 #ifdef QT_SOFTKEYS_ENABLED |
|
611 } else if (e->type() == QEvent::LanguageChange) { |
|
612 selectAction->setText(QSoftKeyManager::standardSoftKeyText(QSoftKeyManager::SelectSoftKey)); |
|
613 cancelAction->setText(QSoftKeyManager::standardSoftKeyText(QSoftKeyManager::CancelSoftKey)); |
|
614 #endif |
|
615 } |
|
616 |
611 QWidget::changeEvent(e); |
617 QWidget::changeEvent(e); |
612 } |
618 } |
613 |
619 |
614 |
620 |
615 bool QComboBoxPrivateContainer::eventFilter(QObject *o, QEvent *e) |
621 bool QComboBoxPrivateContainer::eventFilter(QObject *o, QEvent *e) |