diff options
| author | Mavridis Philippe <mavridisf@gmail.com> | 2024-08-09 14:49:43 +0300 |
|---|---|---|
| committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-08-09 14:49:43 +0300 |
| commit | 2fbdf2c0982e3e2147774c2034c21aebb67f732d (patch) | |
| tree | 9a40eed04425f26d1b3e2adea3f4b091299b84d3 /src/treeitemelement.cpp | |
| parent | 47becbedc6788937ab25df5220f0bf25291b62e8 (diff) | |
| download | tdealternatives-2fbdf2c0982e3e2147774c2034c21aebb67f732d.tar.gz tdealternatives-2fbdf2c0982e3e2147774c2034c21aebb67f732d.zip | |
Qt3->TQt port
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/treeitemelement.cpp')
| -rw-r--r-- | src/treeitemelement.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/treeitemelement.cpp b/src/treeitemelement.cpp index b6732d9..0ef3ca6 100644 --- a/src/treeitemelement.cpp +++ b/src/treeitemelement.cpp @@ -21,14 +21,14 @@ #include "treeitemelement.h" #include "altparser.h" #include "altcontroller.h" -#include <qfont.h> -#include <qpainter.h> +#include <tqfont.h> +#include <tqpainter.h> #include <iostream> using namespace std; TreeItemElement::TreeItemElement(KListView *parent, Item *itemarg, AltController *altControl ) -: QListViewItem(parent, itemarg->getName()), +: TQListViewItem(parent, itemarg->getName()), m_item(itemarg), m_name(itemarg->getName()), m_changed(FALSE), @@ -42,29 +42,29 @@ TreeItemElement::~TreeItemElement() { } -void TreeItemElement::paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int align ) +void TreeItemElement::paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ) { - QColor color; + TQColor color; if (m_changed || m_nbrAltChanged) { - color=QColor("red"); - QFont f = p->font(); + color=TQColor("red"); + TQFont f = p->font(); f.setBold(true); p->setFont(f); } // the pallet of colors is saved - QColorGroup _cg( cg ); - QColor oldText=_cg.text(); + TQColorGroup _cg( cg ); + TQColor oldText=_cg.text(); // modification of the pallet of colors by defining //our new color as color of text - _cg.setColor( QColorGroup::Text, color ); + _cg.setColor( TQColorGroup::Text, color ); - QListViewItem::paintCell( p, _cg, column, width, align ); + TQListViewItem::paintCell( p, _cg, column, width, align ); // restoration of the pallet of "standard" colors - _cg.setColor( QColorGroup::Text, oldText ); + _cg.setColor( TQColorGroup::Text, oldText ); } |
