diff options
Diffstat (limited to 'krita/ui/kis_text_brush.cc')
-rw-r--r-- | krita/ui/kis_text_brush.cc | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/krita/ui/kis_text_brush.cc b/krita/ui/kis_text_brush.cc index 6285e503..ef376373 100644 --- a/krita/ui/kis_text_brush.cc +++ b/krita/ui/kis_text_brush.cc @@ -16,11 +16,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qfontmetrics.h> -#include <qpainter.h> -#include <qspinbox.h> -#include <qcheckbox.h> -#include <qlabel.h> +#include <tqfontmetrics.h> +#include <tqpainter.h> +#include <tqspinbox.h> +#include <tqcheckbox.h> +#include <tqlabel.h> #include <kfontdialog.h> @@ -29,27 +29,27 @@ void KisTextBrushResource::updateBrush() { - QFontMetrics metric(m_font); + TQFontMetrics metric(m_font); int w = metric.width(m_txt); int h = metric.height(); - QPixmap px(w,h); - QPainter p; + TQPixmap px(w,h); + TQPainter p; p.begin(&px); p.setFont( m_font ); - p.fillRect(0,0, w, h, Qt::white); - p.setPen(Qt::black); + p.fillRect(0,0, w, h, TQt::white); + p.setPen(TQt::black); p.drawText(0, metric.ascent(), m_txt ); p.end(); setImage(px.convertToImage ()); } -KisTextBrush::KisTextBrush(QWidget *parent, const char* name, const QString& caption) - : KisWdgTextBrush(parent, name), +KisTextBrush::KisTextBrush(TQWidget *tqparent, const char* name, const TQString& caption) + : KisWdgTextBrush(tqparent, name), m_textBrushResource(new KisTextBrushResource()) { setCaption(caption); - connect((QObject*)lineEdit, SIGNAL(textChanged(const QString&)), this, SLOT(rebuildTextBrush())); - connect((QObject*)bnFont, SIGNAL(clicked()), this, SLOT(getFont())); + connect((TQObject*)lineEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(rebuildTextBrush())); + connect((TQObject*)bnFont, TQT_SIGNAL(clicked()), this, TQT_SLOT(getFont())); m_font = font(); rebuildTextBrush(); } @@ -57,13 +57,13 @@ KisTextBrush::KisTextBrush(QWidget *parent, const char* name, const QString& cap void KisTextBrush::getFont() { - KFontDialog::getFont( m_font, false/*, QWidget* parent! */ ); + KFontDialog::getFont( m_font, false/*, TQWidget* tqparent! */ ); rebuildTextBrush(); } void KisTextBrush::rebuildTextBrush() { - lblFont->setText(QString(m_font.family() + ", %1").arg(m_font.pointSize())); + lblFont->setText(TQString(m_font.family() + ", %1").tqarg(m_font.pointSize())); lblFont->setFont(m_font); m_textBrushResource->setFont(m_font); m_textBrushResource->setText(lineEdit->text()); |