~ubuntu-branches/ubuntu/vivid/lazarus/vivid-proposed

« back to all changes in this revision

Viewing changes to lcl/interfaces/qt/qtthemes.pas

  • Committer: Package Import Robot
  • Author(s): Paul Gevers, Abou Al Montacir, Paul Gevers
  • Date: 2013-06-22 13:31:45 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130622133145-kf2awlf322usnrfv
Tags: 1.0.10+dfsg-1
[ Abou Al Montacir ]
* New upstream maintenance release offering many fixes improving the IDE and
  the LCL stability level.
  - The detailed list of changes can be found here:
    http://wiki.lazarus.freepascal.org/Lazarus_1.0_fixes_branch#Fixes_for_1.0.10
* Use compiler configuration file to pass debian custom compiler flags.
* Recover FTBFS on arm machines fix, dropped unintentionally when upgrading
  to 1.0.8. QT4 based LCL WS could not use QTOPIA. (Closes: Bug#712834)
* Update copyright notice to highlight that upstream source where repacked.

[ Paul Gevers ]
* Update Standard to 3.9.4 (no changes needed)
* Remove obsolete DM-Upload-Allowed
* Update lintian overrides
* Add myself to uploaders
* Update Vsc-Browser URL to the browse interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
  ClipR: TRect; // fix branch indicators (treeviews)
135
135
  {$ENDIF}
136
136
  dx, dy: integer;
 
137
  APalette: QPaletteH;
137
138
begin
138
139
  if (Context <> nil) then
139
140
  begin
178
179
            if Details.Element = teToolBar then
179
180
              Features := Features or QStyleOptionButtonFlat;
180
181
            QStyleOptionButton_setFeatures(QStyleOptionButtonH(opt), Features);
 
182
 
 
183
            // workaround for qt QStyle bug. QStyle does not set disable flag (palette).
 
184
            // see issue #24413
 
185
            if Details.State in [TS_DISABLED] then
 
186
            begin
 
187
              APalette := QPalette_create();
 
188
              try
 
189
                QStyleOption_palette(opt, APalette);
 
190
                QPalette_setCurrentColorGroup(APalette, QPaletteDisabled);
 
191
                QStyleOption_setPalette(opt, APalette);
 
192
              finally
 
193
                QPalette_destroy(APalette);
 
194
              end;
 
195
            end;
 
196
 
181
197
          end
182
198
          else
183
199
          if (Element.ControlElement = QStyleCE_HeaderSection) then