diff options
Diffstat (limited to 'lib/kofficeui/KoPartSelectDia.cpp')
-rw-r--r-- | lib/kofficeui/KoPartSelectDia.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/kofficeui/KoPartSelectDia.cpp b/lib/kofficeui/KoPartSelectDia.cpp index 773d1b88..4c3e376e 100644 --- a/lib/kofficeui/KoPartSelectDia.cpp +++ b/lib/kofficeui/KoPartSelectDia.cpp @@ -21,7 +21,7 @@ #include <kiconloader.h> #include <klocale.h> -#include <qlistview.h> +#include <tqlistview.h> /**************************************************** * @@ -29,37 +29,37 @@ * ****************************************************/ -KoPartSelectDia::KoPartSelectDia( QWidget* parent, const char* name ) : - KDialogBase( parent, name, TRUE, i18n("Insert Object"), KDialogBase::Ok | KDialogBase::Cancel ) +KoPartSelectDia::KoPartSelectDia( TQWidget* tqparent, const char* name ) : + KDialogBase( tqparent, name, TRUE, i18n("Insert Object"), KDialogBase::Ok | KDialogBase::Cancel ) { - listview = new QListView( this ); + listview = new TQListView( this ); listview->addColumn( i18n( "Object" ) ); listview->addColumn( i18n( "Comment" ) ); listview->setAllColumnsShowFocus( TRUE ); listview->setShowSortIndicator( TRUE ); setMainWidget( listview ); - connect( listview, SIGNAL( doubleClicked( QListViewItem * ) ), - this, SLOT( slotOk() ) ); - connect( listview, SIGNAL( selectionChanged( QListViewItem * ) ), - this, SLOT( selectionChanged( QListViewItem * ) ) ); + connect( listview, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ), + this, TQT_SLOT( slotOk() ) ); + connect( listview, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), + this, TQT_SLOT( selectionChanged( TQListViewItem * ) ) ); // Query for documents m_lstEntries = KoDocumentEntry::query(); - QValueList<KoDocumentEntry>::Iterator it = m_lstEntries.begin(); + TQValueList<KoDocumentEntry>::Iterator it = m_lstEntries.begin(); for( ; it != m_lstEntries.end(); ++it ) { KService::Ptr serv = (*it).service(); if (!serv->genericName().isEmpty()) { - QListViewItem *item = new QListViewItem( listview, serv->name(), serv->genericName() ); + TQListViewItem *item = new TQListViewItem( listview, serv->name(), serv->genericName() ); item->setPixmap( 0, SmallIcon( serv->icon() ) ); } } selectionChanged( 0 ); setFocus(); - resize( listview->sizeHint().width() + 20, 300 ); + resize( listview->tqsizeHint().width() + 20, 300 ); } -void KoPartSelectDia::selectionChanged( QListViewItem *item ) +void KoPartSelectDia::selectionChanged( TQListViewItem *item ) { enableButtonOK( item != 0 ); } @@ -67,7 +67,7 @@ void KoPartSelectDia::selectionChanged( QListViewItem *item ) KoDocumentEntry KoPartSelectDia::entry() { if ( listview->currentItem() ) { - QValueList<KoDocumentEntry>::Iterator it = m_lstEntries.begin(); + TQValueList<KoDocumentEntry>::Iterator it = m_lstEntries.begin(); for ( ; it != m_lstEntries.end(); ++it ) { if ( ( *it ).service()->name() == listview->currentItem()->text( 0 ) ) return *it; @@ -76,13 +76,13 @@ KoDocumentEntry KoPartSelectDia::entry() return KoDocumentEntry(); } -KoDocumentEntry KoPartSelectDia::selectPart( QWidget *parent ) +KoDocumentEntry KoPartSelectDia::selectPart( TQWidget *tqparent ) { KoDocumentEntry e; - KoPartSelectDia *dlg = new KoPartSelectDia( parent, "PartSelect" ); + KoPartSelectDia *dlg = new KoPartSelectDia( tqparent, "PartSelect" ); dlg->setFocus(); - if (dlg->exec() == QDialog::Accepted) + if (dlg->exec() == TQDialog::Accepted) e = dlg->entry(); delete dlg; |