Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/styles/qs60style_s60.cpp

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 20 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    6464#include <aknnavi.h>
    6565#include <gulicon.h>
     66
    6667
    6768#if !defined(QT_NO_STYLE_S60) || defined(QT_PLUGIN)
     
    7374    EDrawGulIcon,
    7475    EDrawBackground,
     76
    7577    ENoDraw
    7678};
     
    98100} partMapEntry;
    99101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
    100143class QS60StyleModeSpecifics
    101144{
     
    114157    static TAknsItemID partSpecificThemeId(int part);
    115158
     159
     160
    116161private:
    117162    static QPixmap createSkinnedGraphicsLX(QS60StyleEnums::SkinParts part,
     
    129174
    130175const partMapEntry QS60StyleModeSpecifics::m_partMap[] = {
    131     /* SP_QgnGrafBarWait */                {KAknsIIDQgnGrafBarWaitAnim,            EDrawIcon,   ES60_All,    -1,-1},
     176    /* SP_QgnGrafBarWaiton,   ES60_All,    -1,-1},
    132177    /* SP_QgnGrafBarFrameCenter */         {KAknsIIDQgnGrafBarFrameCenter,         EDrawIcon,   ES60_All,    -1,-1},
    133178    /* SP_QgnGrafBarFrameSideL */          {KAknsIIDQgnGrafBarFrameSideL,          EDrawIcon,   ES60_All,    -1,-1},
     
    372417{
    373418    switch(stylePart) {
    374         case QS60StyleEnums::SP_QgnGrafBarWait:
     419        case QS60StyleEnums::SP_QgnGrafBarWait:
    375420            fallbackIndex = EMbmAvkonQgn_graf_bar_wait_1;
    376421            break;
     
    605650}
    606651
     652
     653
     654
     655
     656
    607657QPoint qt_s60_fill_background_offset(const QWidget *targetWidget)
    608658{
     
    710760            break;
    711761        }
     762
     763
     764
     765
     766
     767
     768
     769
     770
     771
     772
     773
     774
     775
     776
     777
     778
     779
     780
     781
     782
     783
     784
     785
     786
     787
     788
     789
     790
     791
     792
     793
     794
     795
     796
     797
     798
     799
     800
     801
     802
     803
     804
     805
     806
     807
     808
     809
     810
     811
     812
     813
     814
     815
     816
     817
     818
     819
     820
     821
     822
     823
     824
    712825    }
    713826    if (!result)
     
    732845    QPixmap result;
    733846
    734 //        QS60WindowSurface::unlockBitmapHeap();
    735847    static const TDisplayMode displayMode = S60->supportsPremultipliedAlpha ? Q_SYMBIAN_ECOLOR16MAP : EColor16MA;
    736848    static const TInt drawParam = S60->supportsPremultipliedAlpha ? KAknsDrawParamDefault : KAknsDrawParamNoClearUnderImage|KAknsDrawParamRGBOnly;
     
    9101022
    9111023QFont QS60StylePrivate::s60Font_specific(
    912     QS60StyleEnums::FontCategories fontCategory, int pointSize)
    913 {
     1024    QS60StyleEnums::FontCategories fontCategory,
     1025    int pointSize, bool resolveFontSize)
     1026{
     1027    Q_UNUSED(resolveFontSize);
     1028
    9141029    TAknFontCategory aknFontCategory = EAknFontCategoryUndefined;
    9151030    switch (fontCategory) {
     
    9831098}
    9841099
     1100
     1101
    9851102QS60StylePrivate::QS60StylePrivate()
    9861103{
     1104
     1105
     1106
    9871107    // No need to set active layout, if dynamic metrics API is available
    9881108    setActiveLayout();
     
    11851305        topLevelWidget->ensurePolished();
    11861306    }
     1307
     1308
     1309
     1310
     1311
    11871312}
    11881313
     
    12041329}
    12051330
     1331
     1332
     1333
     1334
     1335
     1336
     1337
     1338
     1339
     1340
     1341
     1342
     1343
     1344
     1345
     1346
     1347
     1348
     1349
     1350
     1351
     1352
     1353
     1354
     1355
     1356
     1357
     1358
     1359
     1360
     1361
     1362
     1363
     1364
     1365
     1366
     1367
     1368
     1369
     1370
     1371
     1372
     1373
     1374
     1375
     1376
     1377
     1378
     1379
     1380
     1381
     1382
     1383
     1384
     1385
     1386
     1387
     1388
     1389
     1390
     1391
     1392
     1393
     1394
     1395
     1396
     1397
     1398
     1399
     1400
     1401
     1402
     1403
     1404
     1405
     1406
     1407
     1408
     1409
     1410
     1411
     1412
     1413
     1414
     1415
     1416
     1417
     1418
     1419
     1420
     1421
     1422
     1423
     1424
     1425
     1426
     1427
     1428
     1429
     1430
     1431
     1432
     1433
     1434
     1435
     1436
     1437
     1438
     1439
     1440
     1441
     1442
     1443
     1444
     1445
    12061446#endif // Q_WS_S60
    12071447
Note: See TracChangeset for help on using the changeset viewer.