Commit 07528724 authored by Yann Bodson's avatar Yann Bodson

fix typo: transparancy -> transparency

svn path=/trunk/koffice/; revision=589385
parent b2e72693
...@@ -48,7 +48,7 @@ KoInsets* KoLineBorder::borderInsets(const KoShape *shape, KoInsets &insets) { ...@@ -48,7 +48,7 @@ KoInsets* KoLineBorder::borderInsets(const KoShape *shape, KoInsets &insets) {
return &insets; return &insets;
} }
bool KoLineBorder::hasTransparancy() { bool KoLineBorder::hasTransparency() {
return m_color.alpha() > 0; return m_color.alpha() > 0;
} }
......
...@@ -46,7 +46,7 @@ public: ...@@ -46,7 +46,7 @@ public:
virtual ~KoLineBorder() {}; virtual ~KoLineBorder() {};
virtual KoInsets* borderInsets(const KoShape *shape, KoInsets &insets); virtual KoInsets* borderInsets(const KoShape *shape, KoInsets &insets);
virtual bool hasTransparancy(); virtual bool hasTransparency();
virtual void paintBorder(KoShape *shape, QPainter &painter, const KoViewConverter &converter); virtual void paintBorder(KoShape *shape, QPainter &painter, const KoViewConverter &converter);
private: private:
......
...@@ -341,7 +341,7 @@ KoShapeUserData *KoShape::userData() const { ...@@ -341,7 +341,7 @@ KoShapeUserData *KoShape::userData() const {
return m_userData; return m_userData;
} }
bool KoShape::hasTransparancy() { bool KoShape::hasTransparency() {
if(m_backgroundBrush.style() == Qt::NoBrush) if(m_backgroundBrush.style() == Qt::NoBrush)
return true; return true;
return !m_backgroundBrush.isOpaque(); return !m_backgroundBrush.isOpaque();
......
...@@ -253,7 +253,7 @@ public: ...@@ -253,7 +253,7 @@ public:
* you should override it and always return true if your shape is not square. * you should override it and always return true if your shape is not square.
* @return if the shape is (partly) transparent. * @return if the shape is (partly) transparent.
*/ */
virtual bool hasTransparancy(); virtual bool hasTransparency();
/** /**
* Retrieve the z-coordinate of this shape. * Retrieve the z-coordinate of this shape.
......
...@@ -63,7 +63,7 @@ public: ...@@ -63,7 +63,7 @@ public:
* Returns true if there is some transparency, false if the border is fully opaque. * Returns true if there is some transparency, false if the border is fully opaque.
* @return if the border is transparent. * @return if the border is transparent.
*/ */
virtual bool hasTransparancy() = 0; virtual bool hasTransparency() = 0;
/** /**
* Paint the border. * Paint the border.
* This method should paint the border around shape. * This method should paint the border around shape.
......
...@@ -108,7 +108,7 @@ kDebug() << " appending" << endl; ...@@ -108,7 +108,7 @@ kDebug() << " appending" << endl;
// paint caret. // paint caret.
QPen pen(Qt::black); QPen pen(Qt::black);
if(! m_textShape->hasTransparancy()) { if(! m_textShape->hasTransparency()) {
QColor bg = m_textShape->background().color(); QColor bg = m_textShape->background().color();
QColor invert = QColor(255 - bg.red(), 255 - bg.green(), 255 - bg.blue()); QColor invert = QColor(255 - bg.red(), 255 - bg.green(), 255 - bg.blue());
pen.setColor(invert); pen.setColor(invert);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment