Bug 228948 - sourceformatting preview not updated properly in style-edit-dialog
Summary: sourceformatting preview not updated properly in style-edit-dialog
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: sourceformatter (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-28 20:04 UTC by Vadym Krevs
Modified: 2010-02-28 21:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadym Krevs 2010-02-28 20:04:19 UTC
Version:           3.9.98 (using KDevPlatform 0.9.98) (using 4.3.5 (KDE 4.3.5) "release 3", KDE:KDE4:STABLE:Desktop / openSUSE_11.2)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.31.12-0.1-desktop

Open the SourceFormatter window, create a new custom formatting style, and click Edit to configure it. On the "Indent" group try to click any of the indent-related checkboxes (except for
Preprocessor Directive" - the preview text on the right does not change. Same
apply to checkboxes on the Other tab.
Comment 1 Andreas Pakulat 2010-02-28 21:06:50 UTC
IIRC the settings are written properly to the config and hence its merely the preview thats not showing the options properly.
Comment 2 Andreas Pakulat 2010-02-28 21:45:59 UTC
Used wrong bugnumber in commit, just fixed this:
> SVN commit 1097256 by apaku:
>
> Properly update m_style when content changed.
>
> The updatePreviewText is called each time an option is changed. To show
> this we need to update our copy of the style with those changed settings.
>
> BUG:229848
>
>  M  +1 -0      editstyledialog.cpp
>
>
> WebSVN link: http://websvn.kde.org/?view=rev&revision=1097256