changed abstract/description/scrollbars color in eventdialog
authorpavelpa <pavelpa@localhost>
Tue, 19 Jan 2010 21:05:44 +0000 (21:05 +0000)
committerpavelpa <pavelpa@localhost>
Tue, 19 Jan 2010 21:05:44 +0000 (21:05 +0000)
src/gui/eventdialog.cpp
src/gui/eventdialog.ui
src/src.pro

index dbd277d..a997dbf 100644 (file)
@@ -1,6 +1,6 @@
 #include "eventdialog.h"
 
-#include <QDebug>
+#include <QScrollBar>
 
 EventDialog::EventDialog(const QModelIndex &aIndex, QWidget *aParent)
     : QDialog(aParent)
@@ -11,6 +11,22 @@ EventDialog::EventDialog(const QModelIndex &aIndex, QWidget *aParent)
     abstract->setStyleSheet("background-color : transparent;");
     description->setStyleSheet("background-color : transparent;");
 
+    // use text color from 'title' QLabel
+    QColor color = title->palette().color(QPalette::Active, QPalette::WindowText);
+    QPalette p = abstract->palette();
+    //p.setColor(QPalette::Active, QPalette::Text, Qt::blue);
+    p.setColor(QPalette::Active, QPalette::Text, color);
+    p.setColor(QPalette::Active, QPalette::WindowText, color);
+    abstract->setPalette(p);
+    description->setPalette(p);
+
+    // set scrollbars color
+    QPalette p2 = description->verticalScrollBar()->palette();
+    p2.setColor(QPalette::Active, QPalette::Background, color);
+    //description->verticalScrollBar()->setStyleSheet("background-color : blue;");
+    abstract->verticalScrollBar()->setPalette(p2);
+    description->verticalScrollBar()->setPalette(p2);
+
     Event *event = static_cast<Event *>(mIndex.internalPointer());
     title->setText(event->title());
     persons->setText(event->persons().join(" and "));
index 4955acb..10a1cb0 100644 (file)
@@ -30,7 +30,7 @@
        <item row="1" column="1" >
         <widget class="QLabel" name="label_2" >
          <property name="text" >
-          <string>Presenter(s):</string>
+          <string>Presenter(s): </string>
          </property>
         </widget>
        </item>
index fb46540..58a5937 100644 (file)
@@ -1,7 +1,7 @@
 include(global.pri)
 TEMPLATE = subdirs
-SUBDIRS  = orm mvc sql gui app
 maemo : SUBDIRS += alarm
+SUBDIRS  += orm mvc sql gui app
 #SUBDIRS += test
 CONFIG += ordered