Ignore:
Timestamp:
01/20/10 20:49:28 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
926f106
Parents:
7ec8838
Message:

event dialog changes

  • changed font/background colors
  • title occupies more lines if it doesn't fit in one line
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/eventdialog.cpp

    r7ec8838 r4e071a3  
    1212    Event event = Event::getById(aEventId,confId);
    1313
    14     abstract->setStyleSheet("background-color : transparent;");
    15     description->setStyleSheet("background-color : transparent;");
     14    //abstract->setStyleSheet("background-color : transparent;");
     15    //description->setStyleSheet("background-color : transparent;");
    1616
    1717    // use text color from 'title' QLabel
    1818    QColor color = title->palette().color(QPalette::Active, QPalette::WindowText);
     19    QColor bkgrColor = this->palette().color(QPalette::Active, QPalette::Background);
    1920    QPalette p = abstract->palette();
    20     //p.setColor(QPalette::Active, QPalette::Text, Qt::blue);
    2121    p.setColor(QPalette::Active, QPalette::Text, color);
    22     p.setColor(QPalette::Active, QPalette::WindowText, color);
     22    p.setColor(QPalette::Active, QPalette::Base, bkgrColor);
    2323    abstract->setPalette(p);
    2424    description->setPalette(p);
    2525
    2626    // set scrollbars color
    27     QPalette p2 = description->verticalScrollBar()->palette();
    28     p2.setColor(QPalette::Active, QPalette::Background, color);
    29     //description->verticalScrollBar()->setStyleSheet("background-color : blue;");
    30     abstract->verticalScrollBar()->setPalette(p2);
    31     description->verticalScrollBar()->setPalette(p2);
     27    //QPalette p2 = description->verticalScrollBar()->palette();
     28    //p2.setColor(QPalette::Active, QPalette::Background, color);
     29    ////description->verticalScrollBar()->setStyleSheet("background-color : blue;");
     30    //abstract->verticalScrollBar()->setPalette(p2);
     31    //description->verticalScrollBar()->setPalette(p2);
    3232
    3333    title->setText(event.title());
Note: See TracChangeset for help on using the changeset viewer.