diff options
Diffstat (limited to 'kstars/kstars/finddialog.cpp')
-rw-r--r-- | kstars/kstars/finddialog.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kstars/kstars/finddialog.cpp b/kstars/kstars/finddialog.cpp index 29dfa6cb..c7719cc4 100644 --- a/kstars/kstars/finddialog.cpp +++ b/kstars/kstars/finddialog.cpp @@ -33,8 +33,8 @@ #include "objectnamelist.h" -FindDialog::FindDialog( TQWidget* parent ) : - KDialogBase( KDialogBase::Plain, i18n( "Find Object" ), Ok|Cancel, Ok, parent ), +FindDialog::FindDialog( TQWidget* tqparent ) : + KDialogBase( KDialogBase::Plain, i18n( "Find Object" ), Ok|Cancel, Ok, tqparent ), vlay(0), hlay(0), SearchList(0), SearchBox(0), filterTypeLabel(0), filterType(0), currentitem(0) { @@ -48,7 +48,7 @@ FindDialog::FindDialog( TQWidget* parent ) : SearchBox = new TQLineEdit( page, "SearchBox" ); filterTypeLabel = new TQLabel( page, "filterTypeLabel" ); - filterTypeLabel->setAlignment( AlignRight ); + filterTypeLabel->tqsetAlignment( AlignRight ); filterTypeLabel->setText( i18n( "Filter by type: " ) ); filterType = new TQComboBox( page, "filterType" ); @@ -73,7 +73,7 @@ FindDialog::FindDialog( TQWidget* parent ) : SearchList->setVScrollBarMode( TQListBox::AlwaysOn ); SearchList->setHScrollBarMode( TQListBox::AlwaysOff ); -//Pack Widgets into layout manager +//Pack Widgets into tqlayout manager hlay->addWidget( filterTypeLabel, 0, 0 ); hlay->addWidget( filterType, 0, 0 ); @@ -108,13 +108,13 @@ FindDialog::~FindDialog() { } void FindDialog::init() { - SearchBox->clear(); // QLineEdit + SearchBox->clear(); // TQLineEdit filterType->setCurrentItem(0); // show all types of objects filter(); } void FindDialog::filter() { //Filter the list of names with the string in the SearchBox - KStars *p = (KStars *)parent(); + KStars *p = (KStars *)tqparent(); SearchList->clear(); ObjectNameList &ObjNames = p->data()->ObjNames; @@ -132,13 +132,13 @@ void FindDialog::filter() { //Filter the list of names with the string in the S } } setListItemEnabled(); // Automatically highlight first item - SearchBox->setFocus(); // set cursor to QLineEdit + SearchBox->setFocus(); // set cursor to TQLineEdit } void FindDialog::filterByType() { - KStars *p = (KStars *)parent(); + KStars *p = (KStars *)tqparent(); - SearchList->clear(); // QListBox + SearchList->clear(); // TQListBox TQString searchFor = SearchBox->text().lower(); // search string ObjectNameList &ObjNames = p->data()->ObjNames; @@ -158,7 +158,7 @@ void FindDialog::filterByType() { } setListItemEnabled(); // Automatically highlight first item - SearchBox->setFocus(); // set cursor to QLineEdit + SearchBox->setFocus(); // set cursor to TQLineEdit } void FindDialog::setListItemEnabled() { @@ -169,7 +169,7 @@ void FindDialog::setListItemEnabled() { void FindDialog::updateSelection (TQListBoxItem *it) { currentitem = (SkyObjectNameListItem *) it; - SearchBox->setFocus(); // set cursor to QLineEdit + SearchBox->setFocus(); // set cursor to TQLineEdit } void FindDialog::setFilter( int f ) { @@ -198,7 +198,7 @@ void FindDialog::setFilter( int f ) { void FindDialog::slotOk() { //If no valid object selected, show a sorry-box. Otherwise, emit accept() if ( currentItem() == 0 ) { - TQString message = i18n( "No object named %1 found." ).arg( SearchBox->text() ); + TQString message = i18n( "No object named %1 found." ).tqarg( SearchBox->text() ); KMessageBox::sorry( 0, message, i18n( "Bad object name" ) ); } else { accept(); |