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) {
return &insets;
}
bool KoLineBorder::hasTransparancy() {
bool KoLineBorder::hasTransparency() {
return m_color.alpha() > 0;
}
......
......@@ -46,7 +46,7 @@ public:
virtual ~KoLineBorder() {};
virtual KoInsets* borderInsets(const KoShape *shape, KoInsets &insets);
virtual bool hasTransparancy();
virtual bool hasTransparency();
virtual void paintBorder(KoShape *shape, QPainter &painter, const KoViewConverter &converter);
private:
......
......@@ -341,7 +341,7 @@ KoShapeUserData *KoShape::userData() const {
return m_userData;
}
bool KoShape::hasTransparancy() {
bool KoShape::hasTransparency() {
if(m_backgroundBrush.style() == Qt::NoBrush)
return true;
return !m_backgroundBrush.isOpaque();
......
......@@ -253,7 +253,7 @@ public:
* you should override it and always return true if your shape is not square.
* @return if the shape is (partly) transparent.
*/
virtual bool hasTransparancy();
virtual bool hasTransparency();
/**
* Retrieve the z-coordinate of this shape.
......
......@@ -63,7 +63,7 @@ public:
* Returns true if there is some transparency, false if the border is fully opaque.
* @return if the border is transparent.
*/
virtual bool hasTransparancy() = 0;
virtual bool hasTransparency() = 0;
/**
* Paint the border.
* This method should paint the border around shape.
......
......@@ -108,7 +108,7 @@ kDebug() << " appending" << endl;
// paint caret.
QPen pen(Qt::black);
if(! m_textShape->hasTransparancy()) {
if(! m_textShape->hasTransparency()) {
QColor bg = m_textShape->background().color();
QColor invert = QColor(255 - bg.red(), 255 - bg.green(), 255 - bg.blue());
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