[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/dialogs
From:       Urs Wolfer <uwolfer () kde ! org>
Date:       2008-02-29 20:01:26
Message-ID: 1204315286.056487.11381.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 780704 by uwolfer:

fix transparent backgrounds with Qt 4.4 snapshot

 M  +6 -3      kaboutapplicationdialog.cpp  


--- trunk/KDE/kdelibs/kdeui/dialogs/kaboutapplicationdialog.cpp #780703:780704
@@ -122,6 +122,9 @@
 
     tabWidget->addTab(aboutWidget, i18n("&About"));
 
+    QPalette transparentBackgroundPalette;
+    transparentBackgroundPalette.setColor(QPalette::Base, Qt::transparent);
+
     int authorCount = aboutData->authors().count();
     if (authorCount) {
         QString authorPageText;
@@ -164,7 +167,7 @@
 
         KTextBrowser *authorTextBrowser = new KTextBrowser;
         authorTextBrowser->setFrameStyle(QFrame::NoFrame);
-        authorTextBrowser->setStyleSheet( "KTextBrowser { background: transparent; }" );
+        authorTextBrowser->setPalette(transparentBackgroundPalette);
         authorTextBrowser->setHtml(authorPageText);
         tabWidget->addTab(authorTextBrowser, authorPageTitle);
     }
@@ -187,7 +190,7 @@
 
         KTextBrowser *creditsTextBrowser = new KTextBrowser;
         creditsTextBrowser->setFrameStyle(QFrame::NoFrame);
-        creditsTextBrowser->setStyleSheet( "KTextBrowser { background: transparent; }" );
+        creditsTextBrowser->setPalette(transparentBackgroundPalette);
         creditsTextBrowser->setHtml(creditsPageText);
         tabWidget->addTab(creditsTextBrowser, i18n("&Thanks To"));
     }
@@ -209,7 +212,7 @@
 
         KTextBrowser *translatorTextBrowser = new KTextBrowser;
         translatorTextBrowser->setFrameStyle(QFrame::NoFrame);
-        translatorTextBrowser->setStyleSheet( "KTextBrowser { background: transparent; }" );
+        translatorTextBrowser->setPalette(transparentBackgroundPalette);
         translatorTextBrowser->setHtml(translatorPageText);
         tabWidget->addTab(translatorTextBrowser, i18n("T&ranslation"));
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic