equal
deleted
inserted
replaced
32 #include <hblistwidgetitem.h> |
32 #include <hblistwidgetitem.h> |
33 #include <hbinpututils.h> |
33 #include <hbinpututils.h> |
34 #include <hbinputsettingproxy.h> |
34 #include <hbinputsettingproxy.h> |
35 #include <hbinputmethod.h> |
35 #include <hbinputmethod.h> |
36 #include <hbinputregioncollector_p.h> |
36 #include <hbinputregioncollector_p.h> |
|
37 #include <hbpopup_p.h> |
37 |
38 |
38 /// @cond |
39 /// @cond |
39 |
40 |
40 bool caseInsensitiveLessThanForHbInputLanguage(const HbInputLanguage &s1, const HbInputLanguage &s2) |
41 bool caseInsensitiveLessThanForHbInputLanguage(const HbInputLanguage &s1, const HbInputLanguage &s2) |
41 { |
42 { |
46 } |
47 } |
47 |
48 |
48 /// @endcond |
49 /// @endcond |
49 |
50 |
50 /*! |
51 /*! |
|
52 @alpha |
|
53 @hbinput |
|
54 \class HbInputCommonDialogs |
|
55 \brief Provides some common input-related dialogs. |
|
56 */ |
|
57 |
|
58 /*! |
51 Displays language selection dialog and returns selected language. |
59 Displays language selection dialog and returns selected language. |
52 */ |
60 */ |
53 HbInputLanguage HbInputCommonDialogs::showLanguageSelectionDialog(QLocale::Language selectedLanguage, const QList<HbInputLanguage> languageList) |
61 HbInputLanguage HbInputCommonDialogs::showLanguageSelectionDialog(QLocale::Language selectedLanguage, const QList<HbInputLanguage> languageList) |
54 { |
62 { |
55 HbSelectionDialog *langDialog = new HbSelectionDialog(); |
63 HbSelectionDialog *langDialog = new HbSelectionDialog(); |
56 langDialog->setObjectName("Language dialog"); |
64 langDialog->setObjectName("Language dialog"); |
57 |
65 |
58 // Make sure the language dialog never steals focus. |
66 // Make sure the language dialog never steals focus. |
59 langDialog->setFlag(QGraphicsItem::ItemIsPanel, true); |
67 langDialog->setFlag(QGraphicsItem::ItemIsPanel, true); |
|
68 HbPopupPrivate::d_ptr(langDialog)->mActivePopup = false; |
60 langDialog->setActive(false); |
69 langDialog->setActive(false); |
61 |
70 |
62 HbInputSettingProxy *settings = HbInputSettingProxy::instance(); |
71 HbInputSettingProxy *settings = HbInputSettingProxy::instance(); |
63 HbInputLanguage currentLang = settings->globalInputLanguage(); |
72 HbInputLanguage currentLang = settings->globalInputLanguage(); |
64 QList<HbInputLanguage> languages; |
73 QList<HbInputLanguage> languages; |
125 HbSelectionDialog *methodDialog = new HbSelectionDialog(); |
134 HbSelectionDialog *methodDialog = new HbSelectionDialog(); |
126 methodDialog->setObjectName("Input method dialog"); |
135 methodDialog->setObjectName("Input method dialog"); |
127 |
136 |
128 // Make sure the language dialog never steals focus. |
137 // Make sure the language dialog never steals focus. |
129 methodDialog->setFlag(QGraphicsItem::ItemIsPanel, true); |
138 methodDialog->setFlag(QGraphicsItem::ItemIsPanel, true); |
|
139 HbPopupPrivate::d_ptr(methodDialog)->mActivePopup = false; |
130 methodDialog->setActive(false); |
140 methodDialog->setActive(false); |
131 |
141 |
132 QList<HbInputMethodDescriptor> customList = HbInputMethod::listCustomInputMethods(); |
142 QList<HbInputMethodDescriptor> customList = HbInputMethod::listCustomInputMethods(); |
133 |
143 |
134 QList<HbListWidgetItem *> listItems; |
144 QList<HbListWidgetItem *> listItems; |