[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/filelight/src/part/radialMap
From: Dario Freddi <drf54321 () gmail ! com>
Date: 2009-03-29 13:52:49
Message-ID: 1238334769.406531.32655.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 946457 by dafre:
struct->class, and newline
M +7 -6 labels.cpp
--- trunk/playground/utils/filelight/src/part/radialMap/labels.cpp #946456:946457
@@ -34,8 +34,9 @@
namespace RadialMap
{
-struct Label
+class Label
{
+public:
Label(const RadialMap::Segment *s, int l) : segment(s), lvl(l), \
a(segment->start() + (segment->length() / 2)) { }
bool tooClose(const int &aa) const {
@@ -53,7 +54,7 @@
};
int compareAndSortLabels(Label *item1, Label *item2)
- { \
+{
//you add 1440 to work round the fact that later you want the circle split \
vertically
//and as it is you start at 3 o' clock. It's to do with rightPrevY, stops \
annoying bug
\
@@ -70,7 +71,7 @@
return 1; \
return -1;
- }
+}
void
RadialMap::Widget::paintExplodedLabels(QPainter &paint) const
@@ -321,8 +322,7 @@
paint.setPen(QPen(Qt::black, 1));
- for (it = list.begin(); it != list.end(); ++it)
- {
+ for (it = list.begin(); it != list.end(); ++it) {
if (varySizes) {
//**** how much overhead in making new QFont each time?
// (implicate sharing remember)
@@ -339,4 +339,5 @@
delete [] sizes;
}
-}
\ No newline at end of file
+}
+
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic