亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? localeselector.cpp

?? Qt控件使用實例
?? CPP
字號:
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the example classes of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial Usage
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain
** additional rights. These rights are described in the Nokia Qt LGPL
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
** package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at qt-sales@nokia.com.
** $QT_END_LICENSE$
**
****************************************************************************/

#include "localeselector.h"
#include <QLocale>

struct SupportedLocale
{
    int lang, country;
};

const SupportedLocale SUPPORTED_LOCALES[] = {
    {      1,     0 }, // C/AnyCountry
    {      3,    69 }, // Afan/Ethiopia
    {      3,   111 }, // Afan/Kenya
    {      4,    59 }, // Afar/Djibouti
    {      4,    67 }, // Afar/Eritrea
    {      4,    69 }, // Afar/Ethiopia
    {      5,   195 }, // Afrikaans/SouthAfrica
    {      5,   148 }, // Afrikaans/Namibia
    {      6,     2 }, // Albanian/Albania
    {      7,    69 }, // Amharic/Ethiopia
    {      8,   186 }, // Arabic/SaudiArabia
    {      8,     3 }, // Arabic/Algeria
    {      8,    17 }, // Arabic/Bahrain
    {      8,    64 }, // Arabic/Egypt
    {      8,   103 }, // Arabic/Iraq
    {      8,   109 }, // Arabic/Jordan
    {      8,   115 }, // Arabic/Kuwait
    {      8,   119 }, // Arabic/Lebanon
    {      8,   122 }, // Arabic/LibyanArabJamahiriya
    {      8,   145 }, // Arabic/Morocco
    {      8,   162 }, // Arabic/Oman
    {      8,   175 }, // Arabic/Qatar
    {      8,   201 }, // Arabic/Sudan
    {      8,   207 }, // Arabic/SyrianArabRepublic
    {      8,   216 }, // Arabic/Tunisia
    {      8,   223 }, // Arabic/UnitedArabEmirates
    {      8,   237 }, // Arabic/Yemen
    {      9,    11 }, // Armenian/Armenia
    {     10,   100 }, // Assamese/India
    {     12,    15 }, // Azerbaijani/Azerbaijan
    {     14,   197 }, // Basque/Spain
    {     15,    18 }, // Bengali/Bangladesh
    {     15,   100 }, // Bengali/India
    {     16,    25 }, // Bhutani/Bhutan
    {     20,    33 }, // Bulgarian/Bulgaria
    {     22,    20 }, // Byelorussian/Belarus
    {     23,    36 }, // Cambodian/Cambodia
    {     24,   197 }, // Catalan/Spain
    {     25,    44 }, // Chinese/China
    {     25,    97 }, // Chinese/HongKong
    {     25,   126 }, // Chinese/Macau
    {     25,   190 }, // Chinese/Singapore
    {     25,   208 }, // Chinese/Taiwan
    {     27,    54 }, // Croatian/Croatia
    {     28,    57 }, // Czech/CzechRepublic
    {     29,    58 }, // Danish/Denmark
    {     30,   151 }, // Dutch/Netherlands
    {     30,    21 }, // Dutch/Belgium
    {     31,   225 }, // English/UnitedStates
    {     31,     4 }, // English/AmericanSamoa
    {     31,    13 }, // English/Australia
    {     31,    21 }, // English/Belgium
    {     31,    22 }, // English/Belize
    {     31,    28 }, // English/Botswana
    {     31,    38 }, // English/Canada
    {     31,    89 }, // English/Guam
    {     31,    97 }, // English/HongKong
    {     31,   100 }, // English/India
    {     31,   104 }, // English/Ireland
    {     31,   107 }, // English/Jamaica
    {     31,   133 }, // English/Malta
    {     31,   134 }, // English/MarshallIslands
    {     31,   148 }, // English/Namibia
    {     31,   154 }, // English/NewZealand
    {     31,   160 }, // English/NorthernMarianaIslands
    {     31,   163 }, // English/Pakistan
    {     31,   170 }, // English/Philippines
    {     31,   190 }, // English/Singapore
    {     31,   195 }, // English/SouthAfrica
    {     31,   215 }, // English/TrinidadAndTobago
    {     31,   224 }, // English/UnitedKingdom
    {     31,   226 }, // English/UnitedStatesMinorOutlyingIslands
    {     31,   234 }, // English/USVirginIslands
    {     31,   240 }, // English/Zimbabwe
    {     33,    68 }, // Estonian/Estonia
    {     34,    71 }, // Faroese/FaroeIslands
    {     36,    73 }, // Finnish/Finland
    {     37,    74 }, // French/France
    {     37,    21 }, // French/Belgium
    {     37,    38 }, // French/Canada
    {     37,   125 }, // French/Luxembourg
    {     37,   142 }, // French/Monaco
    {     37,   206 }, // French/Switzerland
    {     40,   197 }, // Galician/Spain
    {     41,    81 }, // Georgian/Georgia
    {     42,    82 }, // German/Germany
    {     42,    14 }, // German/Austria
    {     42,    21 }, // German/Belgium
    {     42,   123 }, // German/Liechtenstein
    {     42,   125 }, // German/Luxembourg
    {     42,   206 }, // German/Switzerland
    {     43,    85 }, // Greek/Greece
    {     43,    56 }, // Greek/Cyprus
    {     44,    86 }, // Greenlandic/Greenland
    {     46,   100 }, // Gujarati/India
    {     47,    83 }, // Hausa/Ghana
    {     47,   156 }, // Hausa/Niger
    {     47,   157 }, // Hausa/Nigeria
    {     48,   105 }, // Hebrew/Israel
    {     49,   100 }, // Hindi/India
    {     50,    98 }, // Hungarian/Hungary
    {     51,    99 }, // Icelandic/Iceland
    {     52,   101 }, // Indonesian/Indonesia
    {     57,   104 }, // Irish/Ireland
    {     58,   106 }, // Italian/Italy
    {     58,   206 }, // Italian/Switzerland
    {     59,   108 }, // Japanese/Japan
    {     61,   100 }, // Kannada/India
    {     63,   110 }, // Kazakh/Kazakhstan
    {     64,   179 }, // Kinyarwanda/Rwanda
    {     65,   116 }, // Kirghiz/Kyrgyzstan
    {     66,   114 }, // Korean/RepublicOfKorea
    {     67,   102 }, // Kurdish/Iran
    {     67,   103 }, // Kurdish/Iraq
    {     67,   207 }, // Kurdish/SyrianArabRepublic
    {     67,   217 }, // Kurdish/Turkey
    {     69,   117 }, // Laothian/Lao
    {     71,   118 }, // Latvian/Latvia
    {     72,    49 }, // Lingala/DemocraticRepublicOfCongo
    {     72,    50 }, // Lingala/PeoplesRepublicOfCongo
    {     73,   124 }, // Lithuanian/Lithuania
    {     74,   127 }, // Macedonian/Macedonia
    {     76,   130 }, // Malay/Malaysia
    {     76,    32 }, // Malay/BruneiDarussalam
    {     77,   100 }, // Malayalam/India
    {     78,   133 }, // Maltese/Malta
    {     80,   100 }, // Marathi/India
    {     82,   143 }, // Mongolian/Mongolia
    {     84,   150 }, // Nepali/Nepal
    {     85,   161 }, // Norwegian/Norway
    {     87,   100 }, // Oriya/India
    {     88,     1 }, // Pashto/Afghanistan
    {     89,   102 }, // Persian/Iran
    {     89,     1 }, // Persian/Afghanistan
    {     90,   172 }, // Polish/Poland
    {     91,   173 }, // Portuguese/Portugal
    {     91,    30 }, // Portuguese/Brazil
    {     92,   100 }, // Punjabi/India
    {     92,   163 }, // Punjabi/Pakistan
    {     95,   177 }, // Romanian/Romania
    {     96,   178 }, // Russian/RussianFederation
    {     96,   222 }, // Russian/Ukraine
    {     99,   100 }, // Sanskrit/India
    {    100,   241 }, // Serbian/SerbiaAndMontenegro
    {    100,    27 }, // Serbian/BosniaAndHerzegowina
    {    100,   238 }, // Serbian/Yugoslavia
    {    101,   241 }, // SerboCroatian/SerbiaAndMontenegro
    {    101,    27 }, // SerboCroatian/BosniaAndHerzegowina
    {    101,   238 }, // SerboCroatian/Yugoslavia
    {    102,   195 }, // Sesotho/SouthAfrica
    {    103,   195 }, // Setswana/SouthAfrica
    {    107,   195 }, // Siswati/SouthAfrica
    {    108,   191 }, // Slovak/Slovakia
    {    109,   192 }, // Slovenian/Slovenia
    {    110,   194 }, // Somali/Somalia
    {    110,    59 }, // Somali/Djibouti
    {    110,    69 }, // Somali/Ethiopia
    {    110,   111 }, // Somali/Kenya
    {    111,   197 }, // Spanish/Spain
    {    111,    10 }, // Spanish/Argentina
    {    111,    26 }, // Spanish/Bolivia
    {    111,    43 }, // Spanish/Chile
    {    111,    47 }, // Spanish/Colombia
    {    111,    52 }, // Spanish/CostaRica
    {    111,    61 }, // Spanish/DominicanRepublic
    {    111,    63 }, // Spanish/Ecuador
    {    111,    65 }, // Spanish/ElSalvador
    {    111,    90 }, // Spanish/Guatemala
    {    111,    96 }, // Spanish/Honduras
    {    111,   139 }, // Spanish/Mexico
    {    111,   155 }, // Spanish/Nicaragua
    {    111,   166 }, // Spanish/Panama
    {    111,   168 }, // Spanish/Paraguay
    {    111,   169 }, // Spanish/Peru
    {    111,   174 }, // Spanish/PuertoRico
    {    111,   225 }, // Spanish/UnitedStates
    {    111,   227 }, // Spanish/Uruguay
    {    111,   231 }, // Spanish/Venezuela
    {    113,   111 }, // Swahili/Kenya
    {    113,   210 }, // Swahili/Tanzania
    {    114,   205 }, // Swedish/Sweden
    {    114,    73 }, // Swedish/Finland
    {    116,   209 }, // Tajik/Tajikistan
    {    117,   100 }, // Tamil/India
    {    118,   178 }, // Tatar/RussianFederation
    {    119,   100 }, // Telugu/India
    {    120,   211 }, // Thai/Thailand
    {    122,    67 }, // Tigrinya/Eritrea
    {    122,    69 }, // Tigrinya/Ethiopia
    {    124,   195 }, // Tsonga/SouthAfrica
    {    125,   217 }, // Turkish/Turkey
    {    129,   222 }, // Ukrainian/Ukraine
    {    130,   100 }, // Urdu/India
    {    130,   163 }, // Urdu/Pakistan
    {    131,   228 }, // Uzbek/Uzbekistan
    {    131,     1 }, // Uzbek/Afghanistan
    {    132,   232 }, // Vietnamese/VietNam
    {    134,   224 }, // Welsh/UnitedKingdom
    {    136,   195 }, // Xhosa/SouthAfrica
    {    138,   157 }, // Yoruba/Nigeria
    {    140,   195 }, // Zulu/SouthAfrica
    {    141,   161 }, // Nynorsk/Norway
    {    142,    27 }, // Bosnian/BosniaAndHerzegowina
    {    143,   131 }, // Divehi/Maldives
    {    144,   224 }, // Manx/UnitedKingdom
    {    145,   224 }, // Cornish/UnitedKingdom
    {    146,    83 }, // Akan/Ghana
    {    147,   100 }, // Konkani/India
    {    148,    83 }, // Ga/Ghana
    {    149,   157 }, // Igbo/Nigeria
    {    150,   111 }, // Kamba/Kenya
    {    151,   207 }, // Syriac/SyrianArabRepublic
    {    152,    67 }, // Blin/Eritrea
    {    153,    67 }, // Geez/Eritrea
    {    153,    69 }, // Geez/Ethiopia
    {    154,   157 }, // Koro/Nigeria
    {    155,    69 }, // Sidamo/Ethiopia
    {    156,   157 }, // Atsam/Nigeria
    {    157,    67 }, // Tigre/Eritrea
    {    158,   157 }, // Jju/Nigeria
    {    159,   106 }, // Friulian/Italy
    {    160,   195 }, // Venda/SouthAfrica
    {    161,    83 }, // Ewe/Ghana
    {    161,   212 }, // Ewe/Togo
    {    163,   225 }, // Hawaiian/UnitedStates
    {    164,   157 }, // Tyap/Nigeria
    {    165,   129 } // Chewa/Malawi
};

const int SUPPORTED_LOCALES_COUNT = sizeof(SUPPORTED_LOCALES)/sizeof(SupportedLocale);

typedef QPair<int, int> IntPair;
Q_DECLARE_METATYPE(SupportedLocale)

LocaleSelector::LocaleSelector(QWidget *parent)
    : QComboBox(parent)
{
    int curIndex = -1;
    QLocale curLocale;

    for (int i = 0; i < SUPPORTED_LOCALES_COUNT; ++i) {
        const SupportedLocale &l = SUPPORTED_LOCALES[i];
        if (l.lang == curLocale.language() && l.country == curLocale.country())
            curIndex = i;
        QString text = QLocale::languageToString(QLocale::Language(l.lang))
                        + QLatin1Char('/')
                        + QLocale::countryToString(QLocale::Country(l.country));
        addItem(text, qVariantFromValue(l));
    }

    setCurrentIndex(curIndex);

    connect(this, SIGNAL(activated(int)), this, SLOT(emitLocaleSelected(int)));
}

void LocaleSelector::emitLocaleSelected(int index)
{
    QVariant v = itemData(index);
    if (!v.isValid())
        return;
    SupportedLocale l = qVariantValue<SupportedLocale>(v);
    emit localeSelected(QLocale(QLocale::Language(l.lang), QLocale::Country(l.country)));
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成a人v欧美综合天堂下载| 中文子幕无线码一区tr| 亚洲成av人综合在线观看| 在线观看不卡一区| 亚洲一级片在线观看| 欧日韩精品视频| 日韩黄色小视频| 精品久久久久av影院| 国内精品伊人久久久久av影院 | 9l国产精品久久久久麻豆| 国产精品传媒在线| 在线免费视频一区二区| 香蕉影视欧美成人| 欧美精品一区二区三区在线| 国产精品一二三在| 亚洲精品视频在线观看网站| 欧美日韩精品一区二区天天拍小说| 婷婷夜色潮精品综合在线| 精品国产三级a在线观看| 国产麻豆精品一区二区| 亚洲欧洲精品一区二区三区不卡| 91福利在线观看| 久久爱另类一区二区小说| 中文字幕乱码亚洲精品一区| www.视频一区| 免费在线视频一区| 18欧美乱大交hd1984| 欧美欧美午夜aⅴ在线观看| 韩国女主播成人在线| 亚洲欧洲国产日韩| 日韩一区二区电影在线| 91网站最新地址| 蜜桃av噜噜一区二区三区小说| 国产精品美女久久久久久久| 欧美日韩不卡一区| 99久久精品免费看国产| 青青草91视频| 亚洲欧美经典视频| 久久久激情视频| 欧美性一区二区| 国产精品99久久久久久有的能看 | 久久精品亚洲一区二区三区浴池 | 日韩一区二区免费在线电影| 北条麻妃一区二区三区| 久久se精品一区二区| 亚洲色图视频网站| 久久亚洲一区二区三区四区| 在线观看国产91| 国产91在线观看| 精品一区二区影视| 亚洲成av人片在线观看无码| 日本一二三四高清不卡| 精品久久久三级丝袜| 欧美日韩欧美一区二区| av在线一区二区三区| 国内精品久久久久影院色| 亚洲一区二区三区四区的 | 久久免费看少妇高潮| 欧美精品免费视频| 91一区二区在线| 成人a免费在线看| 国产麻豆精品久久一二三| 蜜桃精品视频在线| 日韩 欧美一区二区三区| 亚洲一区二区欧美日韩| 最好看的中文字幕久久| 国产精品私房写真福利视频| 26uuu色噜噜精品一区| 欧美一区二区黄| 91精品国产乱| 91精品国产色综合久久不卡电影| 欧美日韩一区二区在线观看视频| 91视频在线看| 色婷婷综合久久久久中文| 99久久99久久久精品齐齐| av不卡在线观看| 99久久精品一区| 91福利小视频| 欧美日韩亚洲另类| 欧美性受极品xxxx喷水| 欧美视频在线一区| 欧美日韩久久不卡| 欧美一区国产二区| 日韩欧美国产综合在线一区二区三区| 欧美一区二区私人影院日本| 欧美日韩高清一区二区不卡| 欧美在线三级电影| 91.成人天堂一区| 欧美草草影院在线视频| 久久一区二区三区四区| 国产精品午夜在线观看| 国产精品久久久久精k8| 亚洲人123区| 亚洲gay无套男同| 毛片不卡一区二区| 国产高清亚洲一区| 92国产精品观看| 欧美日韩免费一区二区三区视频| 3atv一区二区三区| 久久尤物电影视频在线观看| 久久久久久久久一| 成人免费一区二区三区视频| 一区二区三区波多野结衣在线观看 | 国产精品久久久一本精品| 亚洲人成影院在线观看| 亚洲.国产.中文慕字在线| 精品在线你懂的| 国产99久久久久| 91久久精品国产91性色tv| 欧美电影影音先锋| 国产欧美日韩视频在线观看| 亚洲欧美日韩国产另类专区| 五月激情综合色| 国产精品一区二区三区99| www.激情成人| 制服丝袜成人动漫| 国产精品视频一二三| 亚洲狠狠爱一区二区三区| 精品一区二区三区视频在线观看 | 国产原创一区二区| 在线日韩国产精品| 亚洲精品一区二区三区蜜桃下载| 亚洲天堂精品视频| 理论电影国产精品| 日本精品免费观看高清观看| 日韩视频免费观看高清完整版在线观看 | 亚洲男人都懂的| 黄色资源网久久资源365| 91视频观看免费| 精品99一区二区三区| 亚洲日本青草视频在线怡红院| 美女一区二区三区| 在线免费观看不卡av| 久久综合九色综合欧美98| 夜夜操天天操亚洲| 国产69精品一区二区亚洲孕妇| 欧美日韩一区二区电影| 国产精品色呦呦| 精品一区二区精品| 91精品国产一区二区三区| 日韩伦理免费电影| 国产一区二区三区黄视频| 欧美二区乱c少妇| 亚洲婷婷综合色高清在线| 久久99久久精品| 欧美美女直播网站| 亚洲美女视频一区| 不卡视频一二三| 国产亚洲欧美一区在线观看| 奇米色一区二区| 在线观看日韩高清av| 国产精品国产精品国产专区不蜜 | 成人国产精品免费观看视频| 欧美成人一区二区三区在线观看| 亚洲一区在线观看免费 | 不卡的av电影在线观看| 欧美精品一区二区三区视频 | 亚洲国产精品一区二区久久恐怖片| 国产成人在线视频网址| 9191成人精品久久| 欧美a级一区二区| 欧美理论在线播放| 亚洲成人av一区二区三区| 91久久精品一区二区二区| 亚洲视频网在线直播| 99vv1com这只有精品| 国产精品视频一二三| 丁香另类激情小说| 中文字幕免费一区| 99久久精品费精品国产一区二区| 精品国产乱码久久久久久久| 精品一区二区三区免费视频| 日韩欧美中文一区| 久久99热狠狠色一区二区| 日韩欧美国产1| 捆绑调教美女网站视频一区| 欧美本精品男人aⅴ天堂| 天堂av在线一区| 91麻豆精品91久久久久同性| 日产国产欧美视频一区精品| 精品人在线二区三区| 国产一本一道久久香蕉| 中文一区二区完整视频在线观看| 成人国产精品免费观看动漫| 有码一区二区三区| 欧美精品久久99久久在免费线| 青青草原综合久久大伊人精品优势| 精品久久久久av影院| 成人午夜视频福利| 一区二区在线免费| 日韩一区二区三区视频在线| 国产一区二区主播在线| 国产精品久久福利| 欧美日韩久久久久久| 国产一区二区三区在线看麻豆 | 亚洲丝袜美腿综合| 欧美一区二区三区在线视频 | 91色porny蝌蚪| 日韩激情一区二区| 国产日产欧美一区二区三区|