Diffstat (limited to 'noncore/apps/tinykate/libkate/document/katedocument.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/libkate/document/katedocument.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katedocument.h b/noncore/apps/tinykate/libkate/document/katedocument.h index 9d8ec6a..969be87 100644 --- a/noncore/apps/tinykate/libkate/document/katedocument.h +++ b/noncore/apps/tinykate/libkate/document/katedocument.h | |||
@@ -67,25 +67,25 @@ public: | |||
67 | CachedFontMetrics(const QFont& f) : QFontMetrics(f) { | 67 | CachedFontMetrics(const QFont& f) : QFontMetrics(f) { |
68 | for (int i=0; i<256; i++) warray[i]=0; | 68 | for (int i=0; i<256; i++) warray[i]=0; |
69 | } | 69 | } |
70 | ~CachedFontMetrics() { | 70 | ~CachedFontMetrics() { |
71 | for (int i=0; i<256; i++) | 71 | for (int i=0; i<256; i++) |
72 | if (warray[i]) delete[] warray[i]; | 72 | if (warray[i]) delete[] warray[i]; |
73 | } | 73 | } |
74 | int width(QChar c) { | 74 | int width(QChar c) { |
75 | uchar cell=c.cell(); | 75 | uchar cell=c.cell(); |
76 | uchar row=c.row(); | 76 | uchar row=c.row(); |
77 | short *wa=warray[row]; | 77 | short *wa=warray[row]; |
78 | if (!wa) { | 78 | if (!wa) { |
79 | // qDebug("create row: %d",row); | 79 | // odebug << "create row: " << row << oendl; |
80 | wa=warray[row]=new short[256]; | 80 | wa=warray[row]=new short[256]; |
81 | for (int i=0; i<256; i++) wa[i]=-1; | 81 | for (int i=0; i<256; i++) wa[i]=-1; |
82 | } | 82 | } |
83 | if (wa[cell]<0) wa[cell]=(short) QFontMetrics::width(c); | 83 | if (wa[cell]<0) wa[cell]=(short) QFontMetrics::width(c); |
84 | return (int)wa[cell]; | 84 | return (int)wa[cell]; |
85 | } | 85 | } |
86 | int width(QString s) { return QFontMetrics::width(s); } | 86 | int width(QString s) { return QFontMetrics::width(s); } |
87 | }; | 87 | }; |
88 | 88 | ||
89 | class Attribute { | 89 | class Attribute { |
90 | public: | 90 | public: |
91 | Attribute() { ; }; | 91 | Attribute() { ; }; |