Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/demos/embedded/anomaly/src/BrowserView.cpp

    r651 r769  
    8383    connect(m_controlStrip, SIGNAL(backClicked()), m_webView, SLOT(back()));
    8484    connect(m_controlStrip, SIGNAL(forwardClicked()), m_webView, SLOT(forward()));
     85
    8586
    8687    QPalette pal = m_webView->palette();
  • trunk/demos/embedded/anomaly/src/ControlStrip.cpp

    r651 r769  
    5151    backPixmap.load(":/images/go-previous.png");
    5252    forwardPixmap.load(":/images/go-next.png");
     53
    5354}
    5455
     
    6667{
    6768    int h = height();
     69
    6870    int x = event->pos().x();
    6971
     
    7577
    7678    if (x > width() - h) {
     79
     80
     81
     82
     83
     84
    7785        emit forwardClicked();
    7886        event->accept();
     
    8088    }
    8189
    82     if ((x < width() - 2 * h) && (x > width() - 3 * h)) {
     90    if ((x < width() - )) {
    8391        emit backClicked();
    8492        event->accept();
     
    9098{
    9199    int h = height();
    92     int s = (h - menuPixmap.height()) / 2;
     100    int spacing = qMin(h, (width() - h * 4) / 3);
     101    int s = (height() - menuPixmap.height()) / 2;
    93102
    94103    QPainter p(this);
     
    96105    p.setCompositionMode(QPainter::CompositionMode_SourceOver);
    97106    p.drawPixmap(s, s, menuPixmap);
    98     p.drawPixmap(width() - 3 * h + s, s, backPixmap);
    99     p.drawPixmap(width() - h + s, s, forwardPixmap);
     107    p.drawPixmap(width() - h + s, s, closePixmap);
     108    p.drawPixmap(width() - (h * 2 + spacing) + s, s, forwardPixmap);
     109    p.drawPixmap(width() - (h * 3 + spacing * 2) + s, s, backPixmap);
     110
    100111    p.end();
    101112}
  • trunk/demos/embedded/anomaly/src/ControlStrip.h

    r651 r769  
    5959    void backClicked();
    6060    void forwardClicked();
     61
    6162
    6263protected:
     
    6869    QPixmap backPixmap;
    6970    QPixmap forwardPixmap;
     71
    7072};
    7173
  • trunk/demos/embedded/anomaly/src/anomaly.qrc

    r561 r769  
    66        <file>images/list-add.png</file>
    77        <file>images/list-remove.png</file>
     8
    89    </qresource>
    910</RCC>
Note: See TracChangeset for help on using the changeset viewer.