Changeset 4e071a3 for src


Ignore:
Timestamp:
01/20/10 20:49:28 (13 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
Location:
src/gui
Files:
2 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());
  • src/gui/eventdialog.ui

    r7ec8838 r4e071a3  
    66    <x>0</x>
    77    <y>0</y>
    8     <width>445</width>
    9     <height>298</height>
     8    <width>468</width>
     9    <height>496</height>
    1010   </rect>
    1111  </property>
     12  <property name="sizePolicy" >
     13   <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding" >
     14    <horstretch>0</horstretch>
     15    <verstretch>0</verstretch>
     16   </sizepolicy>
     17  </property>
    1218  <property name="windowTitle" >
    13    <string>Dialog</string>
     19   <string>Details</string>
    1420  </property>
    1521  <property name="autoFillBackground" >
     
    2127     <item>
    2228      <widget class="QLabel" name="title" >
     29       <property name="sizePolicy" >
     30        <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding" >
     31         <horstretch>0</horstretch>
     32         <verstretch>0</verstretch>
     33        </sizepolicy>
     34       </property>
     35       <property name="font" >
     36        <font>
     37         <weight>75</weight>
     38         <bold>true</bold>
     39        </font>
     40       </property>
    2341       <property name="text" >
    24         <string>Here goes title</string>
     42        <string>Title goes here</string>
     43       </property>
     44       <property name="wordWrap" >
     45        <bool>true</bool>
    2546       </property>
    2647      </widget>
Note: See TracChangeset for help on using the changeset viewer.