diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeprint/management/cjanuswidget.cpp | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/management/cjanuswidget.cpp')
-rw-r--r-- | kdeprint/management/cjanuswidget.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeprint/management/cjanuswidget.cpp b/kdeprint/management/cjanuswidget.cpp index 7bad07264..1cb6693e8 100644 --- a/kdeprint/management/cjanuswidget.cpp +++ b/kdeprint/management/cjanuswidget.cpp @@ -118,7 +118,7 @@ void CJanusWidget::CListBox::computeWidth() item = item->next(); } if (verticalScrollBar()->isVisible()) - w += verticalScrollBar()->sizeHint().width(); + w += verticalScrollBar()->tqsizeHint().width(); w += (frameWidth()*2); setFixedWidth(w); } @@ -169,7 +169,7 @@ void CJanusWidget::addPage(TQWidget *w, const TQString& text, const TQString& he page->m_text = text; page->m_header = header; page->m_pixmap = pix; - page->m_item = new CListBoxItem(m_iconlist,findPrevItem(page),pix,text); + page->m_item = new CListBoxItem(m_iconlist,tqfindPrevItem(page),pix,text); m_iconlist->computeWidth(); m_stack->addWidget(w,m_pages.count()); @@ -179,10 +179,10 @@ void CJanusWidget::addPage(TQWidget *w, const TQString& text, const TQString& he void CJanusWidget::enablePage(TQWidget *w) { - CPage *page = findPage(w); + CPage *page = tqfindPage(w); if (page && !page->m_item) { - page->m_item = new CListBoxItem(m_iconlist,findPrevItem(page),page->m_pixmap,page->m_text); + page->m_item = new CListBoxItem(m_iconlist,tqfindPrevItem(page),page->m_pixmap,page->m_text); m_iconlist->computeWidth(); if (m_iconlist->count() == 1) m_iconlist->setSelected(page->m_item,true); @@ -191,7 +191,7 @@ void CJanusWidget::enablePage(TQWidget *w) void CJanusWidget::disablePage(TQWidget *w) { - CPage *page = findPage(w); + CPage *page = tqfindPage(w); if (page && page->m_item) { bool needReselect(m_iconlist->isSelected(page->m_item)); @@ -208,7 +208,7 @@ void CJanusWidget::disablePage(TQWidget *w) void CJanusWidget::slotSelected(TQListBoxItem *item) { - CPage *page = findPage(item); + CPage *page = tqfindPage(item); if (page) { m_stack->raiseWidget(page->m_widget); @@ -221,7 +221,7 @@ void CJanusWidget::slotSelected(TQListBoxItem *item) } } -CJanusWidget::CPage* CJanusWidget::findPage(TQWidget *w) +CJanusWidget::CPage* CJanusWidget::tqfindPage(TQWidget *w) { TQPtrListIterator<CPage> it(m_pages); for (;it.current();++it) @@ -230,7 +230,7 @@ CJanusWidget::CPage* CJanusWidget::findPage(TQWidget *w) return 0; } -CJanusWidget::CPage* CJanusWidget::findPage(TQListBoxItem *i) +CJanusWidget::CPage* CJanusWidget::tqfindPage(TQListBoxItem *i) { TQPtrListIterator<CPage> it(m_pages); for (;it.current();++it) @@ -239,9 +239,9 @@ CJanusWidget::CPage* CJanusWidget::findPage(TQListBoxItem *i) return 0; } -TQListBoxItem* CJanusWidget::findPrevItem(CPage *p) +TQListBoxItem* CJanusWidget::tqfindPrevItem(CPage *p) { - if (m_pages.findRef(p) == -1) + if (m_pages.tqfindRef(p) == -1) m_pages.last(); else m_pages.prev(); |