diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:29:33 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:29:33 -0600 |
commit | 2b3aa210d14678345e222621ad199acc62a157ad (patch) | |
tree | 4b70114be947526643bcc3409b94a3e72fc0de56 /digikam/imageplugins/inserttext/inserttextwidget.cpp | |
parent | ae7d9301dbad38c1b2135261ba932576d7f7f08b (diff) | |
download | digikam-2b3aa210d14678345e222621ad199acc62a157ad.tar.gz digikam-2b3aa210d14678345e222621ad199acc62a157ad.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'digikam/imageplugins/inserttext/inserttextwidget.cpp')
-rw-r--r-- | digikam/imageplugins/inserttext/inserttextwidget.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/digikam/imageplugins/inserttext/inserttextwidget.cpp b/digikam/imageplugins/inserttext/inserttextwidget.cpp index 82e0789e..0595d23b 100644 --- a/digikam/imageplugins/inserttext/inserttextwidget.cpp +++ b/digikam/imageplugins/inserttext/inserttextwidget.cpp @@ -61,7 +61,7 @@ InsertTextWidget::InsertTextWidget(int w, int h, TQWidget *parent) m_w = m_iface->previewWidth(); m_h = m_iface->previewHeight(); m_pixmap = new TQPixmap(w, h); - m_pixmap->fill(tqcolorGroup().background()); + m_pixmap->fill(colorGroup().background()); setBackgroundMode(TQt::NoBackground); setMinimumSize(w, h); @@ -91,7 +91,7 @@ void InsertTextWidget::resetEdit() // signal this needs to be filled by makePixmap m_textRect = TQRect(); makePixmap(); - tqrepaint(false); + repaint(false); } void InsertTextWidget::setText(TQString text, TQFont font, TQColor color, int alignMode, @@ -137,7 +137,7 @@ void InsertTextWidget::setText(TQString text, TQFont font, TQColor color, int al m_textFont = font; makePixmap(); - tqrepaint(false); + repaint(false); } void InsertTextWidget::setPositionHint(TQRect hint) @@ -146,10 +146,10 @@ void InsertTextWidget::setPositionHint(TQRect hint) m_positionHint = hint; if (m_textRect.isValid()) { - // tqinvalidate current position so that hint is certainly interpreted + // invalidate current position so that hint is certainly interpreted m_textRect = TQRect(); makePixmap(); - tqrepaint(); + repaint(); } } @@ -229,7 +229,7 @@ void InsertTextWidget::makePixmap(void) // paint pixmap for drawing this widget // First, fill with background color - m_pixmap->fill(tqcolorGroup().background()); + m_pixmap->fill(colorGroup().background()); TQPainter p(m_pixmap); // Convert image to pixmap and draw it TQPixmap imagePixmap = image.convertToPixmap(); @@ -368,7 +368,7 @@ TQRect InsertTextWidget::composeImage(Digikam::DImg *image, TQPainter *destPaint y = TQMAX( (maxHeight - fontHeight) / 2, 0); } - // tqinvalidate position hint, use only once + // invalidate position hint, use only once m_positionHint = TQRect(); } else @@ -602,7 +602,7 @@ void InsertTextWidget::mouseMoveEvent ( TQMouseEvent * e ) m_textRect.moveBy(newxpos - m_xpos, newypos - m_ypos); makePixmap(); - tqrepaint(false); + repaint(false); m_xpos = newxpos; m_ypos = newypos; |