summaryrefslogtreecommitdiffstats
path: root/src/arkollon/headerlistitem.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-13 19:30:17 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-13 19:30:17 +0200
commit357ddeb8afd82d69ef871c146f4fc8f2c67fb17e (patch)
treedc3ef0e6fedd64f5fb177c114f72e1515a07cd1b /src/arkollon/headerlistitem.cpp
parentc6cbd71bc169ac0e927e52325dbbbcb506abbc73 (diff)
downloadklamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.tar.gz
klamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.zip
Conversion Qt3->TQt
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/arkollon/headerlistitem.cpp')
-rw-r--r--src/arkollon/headerlistitem.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/arkollon/headerlistitem.cpp b/src/arkollon/headerlistitem.cpp
index b7d0631..0c30b39 100644
--- a/src/arkollon/headerlistitem.cpp
+++ b/src/arkollon/headerlistitem.cpp
@@ -19,19 +19,19 @@
***************************************************************************/
#include "headerlistitem.h"
-#include <qfontmetrics.h>
-#include <qpainter.h>
-#include <qapplication.h>
+#include <tqfontmetrics.h>
+#include <tqpainter.h>
+#include <tqapplication.h>
#include "uninstallwizard.h"
#include "wizard.h"
-HeaderListItem::HeaderListItem(QListView* parent)
- : QListViewItem(parent)
+HeaderListItem::HeaderListItem(TQListView* parent)
+ : TQListViewItem(parent)
{
}
-int HeaderListItem::compare(QListViewItem* i, int col, bool ascending) const
+int HeaderListItem::compare(TQListViewItem* i, int col, bool ascending) const
{
switch (i->rtti())
{
@@ -64,20 +64,20 @@ int HeaderListItem::compare(QListViewItem* i, int col, bool ascending) const
return 0;
}
-void HeaderListItem::paintCell(QPainter* p, const QColorGroup& cg, int column, int width, int align)
+void HeaderListItem::paintCell(TQPainter* p, const TQColorGroup& cg, int column, int width, int align)
{
p->fillRect(0, 0, width, height(), cg.base());
- QFont boldFont = p->font();
+ TQFont boldFont = p->font();
boldFont.setBold(true);
p->setFont(boldFont);
- p->drawText(listView()->itemMargin(), listView()->itemMargin(), width, QFontMetrics(boldFont).height(), Qt::AlignLeft, text(0));
+ p->drawText(listView()->itemMargin(), listView()->itemMargin(), width, TQFontMetrics(boldFont).height(), TQt::AlignLeft, text(0));
- int textWidth = QFontMetrics(boldFont).width(text(0));
+ int textWidth = TQFontMetrics(boldFont).width(text(0));
p->fillRect(0, height() - 4 - listView()->itemMargin(), textWidth-10, 4, cg.highlight());
- QColor ca = cg.highlight();
- QColor cb = cg.base();
+ TQColor ca = cg.highlight();
+ TQColor cb = cg.base();
// Taken from KPixmapEffect::gradient
int rDiff, gDiff, bDiff;
int rca, gca, bca /*, rcb, gcb, bcb*/;
@@ -101,26 +101,26 @@ void HeaderListItem::paintCell(QPainter* p, const QColorGroup& cg, int column, i
gl += gcdelta;
bl += bcdelta;
- p->setPen(QColor(rl>>16, gl>>16, bl>>16));
+ p->setPen(TQColor(rl>>16, gl>>16, bl>>16));
p->drawLine(x, height() - 4 - listView()->itemMargin(), x, height() - listView()->itemMargin() - 1);
}
}
-void HeaderListItem::paintFocus(QPainter* p, const QColorGroup& cg, const QRect& r)
+void HeaderListItem::paintFocus(TQPainter* p, const TQColorGroup& cg, const TQRect& r)
{
}
-int HeaderListItem::width(const QFontMetrics& fm, const QListView* lv, int c) const
+int HeaderListItem::width(const TQFontMetrics& fm, const TQListView* lv, int c) const
{
- QFont boldFont = qApp->font();
+ TQFont boldFont = tqApp->font();
boldFont.setBold(true);
- QFontMetrics metrics(boldFont);
+ TQFontMetrics metrics(boldFont);
return metrics.width(text(0)) + lv->itemMargin() + 10;
}
void HeaderListItem::setup()
{
- setHeight(qApp->fontMetrics().height() + listView()->itemMargin()*3 + 4);
+ setHeight(tqApp->fontMetrics().height() + listView()->itemMargin()*3 + 4);
}