diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:20:30 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:20:30 +0000 |
commit | 28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c (patch) | |
tree | a2f011f22aa31d0839c6e2118501b7a6d2f2ae96 /kmouth/phraselistitem.cpp | |
parent | 0285229d858c8f03cde7354c679a752598cf4515 (diff) | |
download | tdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.tar.gz tdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1157633 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmouth/phraselistitem.cpp')
-rw-r--r-- | kmouth/phraselistitem.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kmouth/phraselistitem.cpp b/kmouth/phraselistitem.cpp index 6156054..721e893 100644 --- a/kmouth/phraselistitem.cpp +++ b/kmouth/phraselistitem.cpp @@ -16,21 +16,21 @@ ***************************************************************************/ #include "phraselistitem.h" -#include <qstyle.h> -#include <qpainter.h> +#include <tqstyle.h> +#include <tqpainter.h> -PhraseListItem::PhraseListItem (const QString & text) - : QListBoxText::QListBoxText(text) { +PhraseListItem::PhraseListItem (const TQString & text) + : TQListBoxText::TQListBoxText(text) { } PhraseListItem::~PhraseListItem() { } bool PhraseListItem::drawCursor() const { - if ((QListBoxItem *)this != listBox()->item (listBox()->currentItem())) + if ((TQListBoxItem *)this != listBox()->item (listBox()->currentItem())) return false; - for (QListBoxItem *item = listBox()->firstItem(); item != 0; item = item->next() ) { + for (TQListBoxItem *item = listBox()->firstItem(); item != 0; item = item->next() ) { if (item->isSelected()) return true; } @@ -41,12 +41,12 @@ int PhraseListItem::rtti() const { return RTTI; } -void PhraseListItem::paint (QPainter *p) { - QListBoxText::paint (p); +void PhraseListItem::paint (TQPainter *p) { + TQListBoxText::paint (p); if (drawCursor()) { - QRect r (0, 0, listBox()->maxItemWidth(), height (listBox())); - listBox()->style().drawPrimitive (QStyle::PE_FocusRect, p, r, + TQRect r (0, 0, listBox()->maxItemWidth(), height (listBox())); + listBox()->style().drawPrimitive (TQStyle::PE_FocusRect, p, r, listBox()->colorGroup()); } } |