summaryrefslogtreecommitdiffstats
path: root/kdeprint/management/cjanuswidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
commitbab40890696ec68c337dc290880423a0602b83c7 (patch)
tree6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/management/cjanuswidget.cpp
parentf7e71d47719ab6094cf4a9fafffa5ea351973522 (diff)
downloadtdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz
tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/management/cjanuswidget.cpp')
-rw-r--r--kdeprint/management/cjanuswidget.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kdeprint/management/cjanuswidget.cpp b/kdeprint/management/cjanuswidget.cpp
index d9d3ea126..856ab8a62 100644
--- a/kdeprint/management/cjanuswidget.cpp
+++ b/kdeprint/management/cjanuswidget.cpp
@@ -29,16 +29,16 @@
class CJanusWidget::CPage
{
public:
- QWidget *m_widget;
- QString m_text;
- QString m_header;
- QPixmap m_pixmap;
+ TQWidget *m_widget;
+ TQString m_text;
+ TQString m_header;
+ TQPixmap m_pixmap;
CListBoxItem *m_item;
};
//***********************************************************************************
-class CJanusWidget::CListBoxItem : public QListBoxItem
+class CJanusWidget::CListBoxItem : public TQListBoxItem
{
public:
CListBoxItem(TQListBox *lb, TQListBoxItem *after, const TQPixmap& pix, const TQString& text);
@@ -49,7 +49,7 @@ protected:
void paint(TQPainter*);
private:
- QPixmap m_pix;
+ TQPixmap m_pix;
};
CJanusWidget::CListBoxItem::CListBoxItem(TQListBox *lb, TQListBoxItem *after, const TQPixmap& pix, const TQString& text)
@@ -65,7 +65,7 @@ int CJanusWidget::CListBoxItem::height(const TQListBox *lb) const
int CJanusWidget::CListBoxItem::width(const TQListBox *lb) const
{
- int w = QMAX(lb->fontMetrics().width(text()),m_pix.width());
+ int w = TQMAX(lb->fontMetrics().width(text()),m_pix.width());
return (w + 10);
}
@@ -110,11 +110,11 @@ bool CJanusWidget::CListBox::eventFilter(TQObject *o, TQEvent *e)
void CJanusWidget::CListBox::computeWidth()
{
- QListBoxItem *item = firstItem();
+ TQListBoxItem *item = firstItem();
int w(40);
while (item)
{
- w = QMAX(w,item->width(this));
+ w = TQMAX(w,item->width(this));
item = item->next();
}
if (verticalScrollBar()->isVisible())
@@ -132,7 +132,7 @@ CJanusWidget::CJanusWidget(TQWidget *parent, const char *name)
m_stack = new TQWidgetStack(this);
m_header = new TQLabel(this);
- QFont f(m_header->font());
+ TQFont f(m_header->font());
f.setBold(true);
m_header->setFont(f);
@@ -148,8 +148,8 @@ CJanusWidget::CJanusWidget(TQWidget *parent, const char *name)
m_empty = new TQWidget(this, "Empty");
m_stack->addWidget(m_empty,0);
- QHBoxLayout *main_ = new TQHBoxLayout(this, 0, 10);
- QVBoxLayout *sub_ = new TQVBoxLayout(0, 0, 5);
+ TQHBoxLayout *main_ = new TQHBoxLayout(this, 0, 10);
+ TQVBoxLayout *sub_ = new TQVBoxLayout(0, 0, 5);
main_->addWidget(m_iconlist,0);
main_->addLayout(sub_,1);
sub_->addWidget(m_header,0);
@@ -241,7 +241,7 @@ CJanusWidget::CPage* CJanusWidget::findPage(TQListBoxItem *i)
TQListBoxItem* CJanusWidget::findPrevItem(CPage *p)
{
- if (m_pages.findRef(p) == -1)
+ if (m_pages.tqfindRef(p) == -1)
m_pages.last();
else
m_pages.prev();