diff options
Diffstat (limited to 'kxkb')
-rw-r--r-- | kxkb/kxkbtraywindow.h | 2 | ||||
-rw-r--r-- | kxkb/pixmap.cpp | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/kxkb/kxkbtraywindow.h b/kxkb/kxkbtraywindow.h index 7d1412ae7..01529f0f3 100644 --- a/kxkb/kxkbtraywindow.h +++ b/kxkb/kxkbtraywindow.h @@ -78,7 +78,7 @@ class KxkbSystemTray : public KSystemTray void mouseReleaseEvent(TQMouseEvent *ev) { - if (ev->button() == Qt::LeftButton) + if (ev->button() == TQt::LeftButton) emit toggled(); KSystemTray::mouseReleaseEvent(ev); } diff --git a/kxkb/pixmap.cpp b/kxkb/pixmap.cpp index 45fb935ec..63fc4f1db 100644 --- a/kxkb/pixmap.cpp +++ b/kxkb/pixmap.cpp @@ -141,11 +141,11 @@ LayoutIcon::findPixmap(const TQString& code_, int pixmapStyle, const TQString& d if( m_labelShadow ) { p.setPen(m_shColor); - p.drawText(1, 1, pm->width(), pm->height(), Qt::AlignCenter, displayName); + p.drawText(1, 1, pm->width(), pm->height(), TQt::AlignCenter, displayName); } p.setPen(m_fgColor); - p.drawText(0, 0, pm->width(), pm->height(), Qt::AlignCenter, displayName); + p.drawText(0, 0, pm->width(), pm->height(), TQt::AlignCenter, displayName); if( m_bgTransparent && !m_showFlag ) { @@ -156,10 +156,10 @@ LayoutIcon::findPixmap(const TQString& code_, int pixmapStyle, const TQString& d maskp.setPen(TQt::black); maskp.setFont(m_labelFont); - maskp.drawText(0, 0, maskpix.width(), maskpix.height(), Qt::AlignCenter, displayName); + maskp.drawText(0, 0, maskpix.width(), maskpix.height(), TQt::AlignCenter, displayName); if( m_labelShadow ) { - maskp.drawText(1, 1, maskpix.width(), maskpix.height(), Qt::AlignCenter, displayName); + maskp.drawText(1, 1, maskpix.width(), maskpix.height(), TQt::AlignCenter, displayName); } TQBitmap mask; @@ -305,15 +305,15 @@ static const char* ERROR_LABEL = "err"; TQPixmap* LayoutIcon::createErrorPixmap() { TQPixmap* pm = new TQPixmap(21, 14); - pm->fill(Qt::white); + pm->fill(TQt::white); TQPainter p(pm); p.setFont(m_labelFont); - p.setPen(Qt::red); - p.drawText(1, 1, pm->width(), pm->height()-2, Qt::AlignCenter, ERROR_LABEL); - p.setPen(Qt::blue); - p.drawText(0, 0, pm->width(), pm->height()-2, Qt::AlignCenter, ERROR_LABEL); + p.setPen(TQt::red); + p.drawText(1, 1, pm->width(), pm->height()-2, TQt::AlignCenter, ERROR_LABEL); + p.setPen(TQt::blue); + p.drawText(0, 0, pm->width(), pm->height()-2, TQt::AlignCenter, ERROR_LABEL); m_pixmapCache.insert(ERROR_CODE, pm); return pm; |