Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32787

Active tab for QTabWidget is shown with white foreground color

    XMLWordPrintable

Details

    Description

      Qt 4.8.5 introduced an issue with QTabWidget foreground color being white.
      While this is ok for OS X 10.7 and greater for 10.6 it isn't.

      This change broke it for 10.6:
      http://qt.gitorious.org/qt/qt/commit/a1eaf0169f041f599895fac90570df601559a526

      Simple patch would be:

      tabwidget.patch
      rc/gui/styles/qmacstyle_mac.mm: 
      
      ~line 3662: 
      if (selected && !myTab.documentMode 
      + && qMacVersion() >= QSysInfo::MV_10_7 
      ) 
      myTab.palette.setColor(QPalette::WindowText, QColor(Qt::white)); 
      
      ~line 3685: 
      
      if ( 
      + qMacVersion() >= QSysInfo::MV_10_7 && ( 
      myTab.documentMode || selected 
      + ) 
      ) { 
      p->save(); 
      rotateTabPainter(p, myTab.shape, myTab.rect); 
      QColor shadowColor = QColor(myTab.documentMode ? Qt::white : Qt::black);
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bachewii Jens
            kileppal Kimmo Leppälä
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes