~ubuntu-branches/ubuntu/maverick/kdebase-workspace/maverick-security

« back to all changes in this revision

Viewing changes to debian/patches/kubuntu_117_fix_dolphin_show_free_space_in_places.diff

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-03 22:26:37 UTC
  • Revision ID: james.westby@ubuntu.com-20101003222637-eid8qe5u38nd8pmn
Tags: 4:4.5.1-0ubuntu7
Add kubuntu_117_fix_dolphin_show_free_space_in_places.diff (LP: #602389)
To fix regression, dolphin wasn't able to show free space in places for
removable devices. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -ru kdebase-workspace-4.5.1/kstyles/oxygen/oxygenstyle.cpp kdebase-workspace-4.5.1/kstyles/oxygen/oxygenstyle.cpp
 
2
--- kdebase-workspace-4.5.1/kstyles/oxygen/oxygenstyle.cpp      2010-09-19 14:55:18.000000000 +0200
 
3
+++ kdebase-workspace-4.5.1/kstyles/oxygen/oxygenstyle.cpp      2010-09-19 14:58:00.000000000 +0200
 
4
@@ -4520,6 +4520,9 @@
 
5
 
 
6
         // draw bar
 
7
         sub_opt.rect = subElementRect( QStyle::SE_ProgressBarContents, cbOption, widget);
 
8
+        if (sub_opt.rect.height() < 3) {
 
9
+            sub_opt.rect.adjust(0, 0, 0, 2);
 
10
+        }
 
11
         drawControl( QStyle::CE_ProgressBarContents, &sub_opt, p, widget);
 
12
 
 
13
         // draw label