summaryrefslogtreecommitdiffstats
path: root/src/kvirc/ui/kvi_themedlabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/ui/kvi_themedlabel.cpp')
-rw-r--r--src/kvirc/ui/kvi_themedlabel.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/kvirc/ui/kvi_themedlabel.cpp b/src/kvirc/ui/kvi_themedlabel.cpp
index ef54460..5cb6254 100644
--- a/src/kvirc/ui/kvi_themedlabel.cpp
+++ b/src/kvirc/ui/kvi_themedlabel.cpp
@@ -82,39 +82,6 @@ void KviThemedLabel::applyOptions()
update();
}
-#ifdef COMPILE_USE_QT4
-void KviThemedLabel::paintEvent ( TQPaintEvent * event )
-{
- TQFrame::paintEvent(event);
- TQPainter p(this);
- SET_ANTI_ALIASING(p);
-#ifdef COMPILE_PSEUDO_TRANSPARENCY
- if(g_pShadedChildGlobalDesktopBackground)
- {
- TQPoint pnt = mapToGlobal(contentsRect().topLeft());
- p.drawTiledPixmap(contentsRect(),*g_pShadedChildGlobalDesktopBackground,pnt);
- } else {
-#endif
-
- if(KVI_OPTION_PIXMAP(KviOption_pixmapLabelBackground).pixmap())
- {
- p.drawTiledPixmap(contentsRect(),*(KVI_OPTION_PIXMAP(KviOption_pixmapLabelBackground).pixmap()));
- } else {
- p.fillRect(contentsRect(),KVI_OPTION_COLOR(KviOption_colorLabelBackground));
- }
-
-#ifdef COMPILE_PSEUDO_TRANSPARENCY
- }
-#endif
-
- TQRect r = contentsRect();
- r.setLeft(r.left() + 2); // some margin
-
- p.setPen(KVI_OPTION_COLOR(KviOption_colorLabelForeground));
-
- p.drawText(r,TQt::AlignLeft | TQt::AlignVCenter,m_szText);
-}
-#else
void KviThemedLabel::drawContents(TQPainter *p)
{
#ifdef COMPILE_PSEUDO_TRANSPARENCY
@@ -143,7 +110,6 @@ void KviThemedLabel::drawContents(TQPainter *p)
p->drawText(r,TQt::AlignLeft | TQt::AlignVCenter,m_szText);
}
-#endif
void KviThemedLabel::mouseDoubleClickEvent(TQMouseEvent *)
{