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:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/styles/qmacstyle_mac.mm

    r651 r769  
    33813381                            needText = true;
    33823382                            if (tb->toolButtonStyle == Qt::ToolButtonTextUnderIcon) {
    3383                                 pr.setHeight(pixmap.size().height());
    3384                                 cr.adjust(0, pr.bottom() + 1, 0, 1);
     3383                                QMainWindow *mw = qobject_cast<QMainWindow *>(w->window());
     3384                                if (mw && mw->unifiedTitleAndToolBarOnMac()) {
     3385                                    pr.setHeight(pixmap.size().height());
     3386                                    cr.adjust(0, pr.bottom() + 1, 0, 1);
     3387                                } else {
     3388                                    pr.setHeight(pixmap.size().height() + 6);
     3389                                    cr.adjust(0, pr.bottom(), 0, -3);
     3390                                }       
    33853391                                alignment |= Qt::AlignCenter;
    33863392                            } else {
     
    37443750                    np.setColor(QPalette::WindowText, QColor(255, 255, 255, 75));
    37453751                    QRect nr = subElementRect(SE_TabBarTabText, opt, w);
    3746                     nr.moveTop(+1);
     3752                    nr.moveTop(-1);
    37473753                    int alignment = Qt::AlignCenter | Qt::TextShowMnemonic | Qt::TextHideMnemonic;
    37483754                    proxy()->drawItemText(p, nr, alignment, np, tab->state & State_Enabled,
Note: See TracChangeset for help on using the changeset viewer.