[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kate/utils
From: Mirko Stocker <me () misto ! ch>
Date: 2007-09-24 19:34:26
Message-ID: 1190662466.399471.15979.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 716491 by mstocker:
Update the whole row on resetting to default style. I'm not sure if there's a better \
way to do that, but it works :).
M +6 -2 katestyletreewidget.cpp
--- trunk/KDE/kdelibs/kate/utils/katestyletreewidget.cpp #716490:716491
@@ -607,8 +607,12 @@
else {
currentStyle = KTextEditor::Attribute::Ptr(new KTextEditor::Attribute( \
*defaultStyle )); updateStyle();
- //FIXME
- //repaint();
+
+ QModelIndex currentIndex = treeWidget()->currentIndex();
+ while(currentIndex.isValid()) {
+ treeWidget()->update(currentIndex);
+ currentIndex = currentIndex.sibling(currentIndex.row(), \
currentIndex.column() - 1); + }
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic