diff options
Diffstat (limited to 'src/loanview.cpp')
-rw-r--r-- | src/loanview.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/loanview.cpp b/src/loanview.cpp index 875f267..f18c6ab 100644 --- a/src/loanview.cpp +++ b/src/loanview.cpp @@ -25,27 +25,27 @@ #include <kpopupmenu.h> #include <kiconloader.h> -#include <qheader.h> +#include <tqheader.h> using Tellico::LoanView; -LoanView::LoanView(QWidget* parent_, const char* name_) : GUI::ListView(parent_, name_), m_notSortedYet(true) { +LoanView::LoanView(TQWidget* tqparent_, const char* name_) : GUI::ListView(tqparent_, name_), m_notSortedYet(true) { addColumn(i18n("Borrower")); header()->setStretchEnabled(true, 0); - setResizeMode(QListView::NoColumn); + setResizeMode(TQListView::NoColumn); setRootIsDecorated(true); setShowSortIndicator(true); setTreeStepSize(15); setFullWidth(true); - connect(this, SIGNAL(contextMenuRequested(QListViewItem*, const QPoint&, int)), - SLOT(contextMenuRequested(QListViewItem*, const QPoint&, int))); + connect(this, TQT_SIGNAL(contextMenuRequested(TQListViewItem*, const TQPoint&, int)), + TQT_SLOT(contextMenuRequested(TQListViewItem*, const TQPoint&, int))); - connect(this, SIGNAL(expanded(QListViewItem*)), - SLOT(slotExpanded(QListViewItem*))); + connect(this, TQT_SIGNAL(expanded(TQListViewItem*)), + TQT_SLOT(slotExpanded(TQListViewItem*))); - connect(this, SIGNAL(collapsed(QListViewItem*)), - SLOT(slotCollapsed(QListViewItem*))); + connect(this, TQT_SIGNAL(collapsed(TQListViewItem*)), + TQT_SLOT(slotCollapsed(TQListViewItem*))); } bool LoanView::isSelectable(GUI::ListViewItem* item_) const { @@ -62,7 +62,7 @@ bool LoanView::isSelectable(GUI::ListViewItem* item_) const { return true; } -void LoanView::contextMenuRequested(QListViewItem* item_, const QPoint& point_, int) { +void LoanView::contextMenuRequested(TQListViewItem* item_, const TQPoint& point_, int) { if(!item_) { return; } @@ -70,10 +70,10 @@ void LoanView::contextMenuRequested(QListViewItem* item_, const QPoint& point_, GUI::ListViewItem* item = static_cast<GUI::ListViewItem*>(item_); if(item->isLoanItem()) { KPopupMenu menu(this); - menu.insertItem(SmallIconSet(QString::fromLatin1("2downarrow")), - i18n("Check-in"), this, SLOT(slotCheckIn())); - menu.insertItem(SmallIconSet(QString::fromLatin1("2downarrow")), - i18n("Modify Loan..."), this, SLOT(slotModifyLoan())); + menu.insertItem(SmallIconSet(TQString::tqfromLatin1("2downarrow")), + i18n("Check-in"), this, TQT_SLOT(slotCheckIn())); + menu.insertItem(SmallIconSet(TQString::tqfromLatin1("2downarrow")), + i18n("Modify Loan..."), this, TQT_SLOT(slotModifyLoan())); menu.exec(point_); } } @@ -101,7 +101,7 @@ void LoanView::addCollection(Data::CollPtr coll_) { for(Data::BorrowerVec::Iterator it = borrowers.begin(); it != borrowers.end(); ++it) { addBorrower(it); } - Data::FieldPtr f = coll_->fieldByName(QString::fromLatin1("title")); + Data::FieldPtr f = coll_->fieldByName(TQString::tqfromLatin1("title")); if(f) { setComparison(0, ListViewComparison::create(f)); } @@ -151,14 +151,14 @@ void LoanView::modifyBorrower(Data::BorrowerPtr borrower_) { borrowerItem->setOpen(open); } -void LoanView::slotCollapsed(QListViewItem* item_) { +void LoanView::slotCollapsed(TQListViewItem* item_) { // only change icon for group items if(static_cast<GUI::ListViewItem*>(item_)->isBorrowerItem()) { static_cast<GUI::ListViewItem*>(item_)->clear(); } } -void LoanView::slotExpanded(QListViewItem* item_) { +void LoanView::slotExpanded(TQListViewItem* item_) { // only change icon for group items if(!static_cast<GUI::ListViewItem*>(item_)->isBorrowerItem()) { kdWarning() << "GroupView::slotExpanded() - non entry group item - " << item_->text(0) << endl; @@ -225,7 +225,7 @@ void LoanView::resetComparisons() { if(!coll) { return; } - Data::FieldPtr f = coll->fieldByName(QString::fromLatin1("title")); + Data::FieldPtr f = coll->fieldByName(TQString::tqfromLatin1("title")); if(f) { setComparison(0, ListViewComparison::create(f)); } |