Bug 187119

Summary: compilation with Qt no accessibility failes
Product: [Unmaintained] plasma4 Reporter: Peter Häring <p.haering>
Component: widget-batteryAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Peter Häring 2009-03-14 10:44:38 UTC
Version:            (using KDE 4.2.1)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Compiled From Sources

In kdebase-workspace-4.2.1:
Compilation of file plasma/applets/battery/battery.cpp failes, if Qt is compiled without Accessibility.
Failure is in header file ui_batteryConfig.h, wich is produced from plasma/applets/battery/batteryConfig.ui. There is a line (for me #67), where a not defined function setAccessibleName() is called. This called is surrounded by a preprocessor directive #ifndef UI_QT_NO_ACCESSIBILITY, but this variable is never defined. 
If I change the preprocessor directive manually to #ifndef QT_NO_ACCESSIBILITY (without the leading UI_), compilation works.

Now I discovered exactly the same thing in ui_quicklaunchConfig.h, produced from plasma/applets/quicklauch/quicklaunchConfig.ui, ui_quicklaunchAdd.h from plasma/applets/quicklauch/quicklaunchAdd.ui,
and again in plasma/applets/pager/ui_pagerConfig.h,
so the fault is probably where the header files are produced from the *.ui.
Comment 1 Aaron J. Seigo 2009-04-28 20:59:01 UTC
SVN commit 960629 by aseigo:

don't require an a11y qt build
BUG:187119


 M  +0 -3      battery/batteryConfig.ui  
 M  +0 -3      lock_logout/lockoutConfig.ui  
 M  +0 -3      pager/pagerConfig.ui  
 M  +0 -3      quicklaunch/quicklaunchConfig.ui  


WebSVN link: http://websvn.kde.org/?view=rev&revision=960629