Ignore:
Timestamp:
01/19/10 22:05:44 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
0ca783e
Parents:
9208bdb
Message:

changed abstract/description/scrollbars color in eventdialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/eventdialog.cpp

    r9208bdb r1fe2f21  
    11#include "eventdialog.h"
    22
    3 #include <QDebug>
     3#include <QScrollBar>
    44
    55EventDialog::EventDialog(const QModelIndex &aIndex, QWidget *aParent)
     
    1212    description->setStyleSheet("background-color : transparent;");
    1313
     14    // use text color from 'title' QLabel
     15    QColor color = title->palette().color(QPalette::Active, QPalette::WindowText);
     16    QPalette p = abstract->palette();
     17    //p.setColor(QPalette::Active, QPalette::Text, Qt::blue);
     18    p.setColor(QPalette::Active, QPalette::Text, color);
     19    p.setColor(QPalette::Active, QPalette::WindowText, color);
     20    abstract->setPalette(p);
     21    description->setPalette(p);
     22
     23    // set scrollbars color
     24    QPalette p2 = description->verticalScrollBar()->palette();
     25    p2.setColor(QPalette::Active, QPalette::Background, color);
     26    //description->verticalScrollBar()->setStyleSheet("background-color : blue;");
     27    abstract->verticalScrollBar()->setPalette(p2);
     28    description->verticalScrollBar()->setPalette(p2);
     29
    1430    Event *event = static_cast<Event *>(mIndex.internalPointer());
    1531    title->setText(event->title());
Note: See TracChangeset for help on using the changeset viewer.