Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28697

disabled MiniSplitter looks enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 9.0.1
    • All Other Issues
    • None
    • Linux/X11

    Description

      I'd like to change the color when it is disabled. How can I improve the code below?

      (Just setting alpha to 64 seems okay to me visually)

       

      void MiniSplitterHandle::paintEvent(QPaintEvent *event)
      {
          QPainter painter(this);
          const QColor color = Utils::creatorTheme()->color(
                      m_lightColored ? Utils::Theme::FancyToolBarSeparatorColor
                                     : Utils::Theme::SplitterColor);
          painter.fillRect(event->rect(), color);
      }

      Attachments

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

        Activity

          People

            portale Alessandro Portale
            tasuku.suzuki Tasuku Suzuki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes