Changeset 4e071a3
- Timestamp:
- 01/20/10 20:49:28 (13 years ago)
- Branches:
- master, qt5
- Children:
- 926f106
- Parents:
- 7ec8838
- Location:
- src/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/eventdialog.cpp
r7ec8838 r4e071a3 12 12 Event event = Event::getById(aEventId,confId); 13 13 14 abstract->setStyleSheet("background-color : transparent;");15 description->setStyleSheet("background-color : transparent;");14 //abstract->setStyleSheet("background-color : transparent;"); 15 //description->setStyleSheet("background-color : transparent;"); 16 16 17 17 // use text color from 'title' QLabel 18 18 QColor color = title->palette().color(QPalette::Active, QPalette::WindowText); 19 QColor bkgrColor = this->palette().color(QPalette::Active, QPalette::Background); 19 20 QPalette p = abstract->palette(); 20 //p.setColor(QPalette::Active, QPalette::Text, Qt::blue);21 21 p.setColor(QPalette::Active, QPalette::Text, color); 22 p.setColor(QPalette::Active, QPalette:: WindowText, color);22 p.setColor(QPalette::Active, QPalette::Base, bkgrColor); 23 23 abstract->setPalette(p); 24 24 description->setPalette(p); 25 25 26 26 // 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); 32 32 33 33 title->setText(event.title()); -
src/gui/eventdialog.ui
r7ec8838 r4e071a3 6 6 <x>0</x> 7 7 <y>0</y> 8 <width>4 45</width>9 <height> 298</height>8 <width>468</width> 9 <height>496</height> 10 10 </rect> 11 11 </property> 12 <property name="sizePolicy" > 13 <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding" > 14 <horstretch>0</horstretch> 15 <verstretch>0</verstretch> 16 </sizepolicy> 17 </property> 12 18 <property name="windowTitle" > 13 <string>D ialog</string>19 <string>Details</string> 14 20 </property> 15 21 <property name="autoFillBackground" > … … 21 27 <item> 22 28 <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> 23 41 <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> 25 46 </property> 26 47 </widget>
Note: See TracChangeset
for help on using the changeset viewer.