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 /kspell2/ui | |
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 'kspell2/ui')
-rw-r--r-- | kspell2/ui/configui.ui | 4 | ||||
-rw-r--r-- | kspell2/ui/configwidget.cpp | 4 | ||||
-rw-r--r-- | kspell2/ui/dialog.cpp | 32 | ||||
-rw-r--r-- | kspell2/ui/dialog.h | 4 | ||||
-rw-r--r-- | kspell2/ui/highlighter.cpp | 2 | ||||
-rw-r--r-- | kspell2/ui/kspell2ui.ui | 40 |
6 files changed, 43 insertions, 43 deletions
diff --git a/kspell2/ui/configui.ui b/kspell2/ui/configui.ui index bf645b9c9..9ab8f8e62 100644 --- a/kspell2/ui/configui.ui +++ b/kspell2/ui/configui.ui @@ -6,7 +6,7 @@ <property name="name"> <cstring>KSpell2ConfigUI</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -105,7 +105,7 @@ <include location="global" impldecl="in implementation">keditlistbox.h</include> <include location="global" impldecl="in implementation">kcombobox.h</include> </includes> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kcombobox.h</includehint> <includehint>keditlistbox.h</includehint> diff --git a/kspell2/ui/configwidget.cpp b/kspell2/ui/configwidget.cpp index 6d98955ae..65db6dd9d 100644 --- a/kspell2/ui/configwidget.cpp +++ b/kspell2/ui/configwidget.cpp @@ -56,7 +56,7 @@ void ConfigWidget::init( Broker *broker ) d = new Private; d->broker = broker; - TQVBoxLayout *layout = new TQVBoxLayout( this, 0, 0, "KSpell2ConfigUILayout"); + TQVBoxLayout *tqlayout = new TQVBoxLayout( this, 0, 0, "KSpell2ConfigUILayout"); d->ui = new KSpell2ConfigUI( this ); TQStringList langs = d->broker->languages(); @@ -73,7 +73,7 @@ void ConfigWidget::init( Broker *broker ) d->ui->m_bgSpellCB->hide();//hidden by default connect( d->ui->m_ignoreListBox, TQT_SIGNAL(changed()), TQT_SLOT(slotChanged()) ); - layout->addWidget( d->ui ); + tqlayout->addWidget( d->ui ); } void KSpell2::ConfigWidget::save() diff --git a/kspell2/ui/dialog.cpp b/kspell2/ui/dialog.cpp index 93b81fd94..18641a986 100644 --- a/kspell2/ui/dialog.cpp +++ b/kspell2/ui/dialog.cpp @@ -53,7 +53,7 @@ public: BackgroundChecker *checker; Word currentWord; - TQMap<TQString, TQString> replaceAllMap; + TQMap<TQString, TQString> tqreplaceAllMap; }; Dialog::Dialog( BackgroundChecker *checker, @@ -81,9 +81,9 @@ void Dialog::initConnections() { connect( d->ui->m_addBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddWord()) ); - connect( d->ui->m_replaceBtn, TQT_SIGNAL(clicked()), + connect( d->ui->m_tqreplaceBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotReplaceWord()) ); - connect( d->ui->m_replaceAllBtn, TQT_SIGNAL(clicked()), + connect( d->ui->m_tqreplaceAllBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotReplaceAll()) ); connect( d->ui->m_skipBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotSkip()) ); @@ -105,7 +105,7 @@ void Dialog::initConnections() TQT_SLOT( slotReplaceWord() ) ); connect( this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(slotFinished()) ); connect( this, TQT_SIGNAL(cancelClicked()),this, TQT_SLOT(slotCancel()) ); - connect( d->ui->m_replacement, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotReplaceWord()) ); + connect( d->ui->m_tqreplacement, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotReplaceWord()) ); connect( d->ui->m_autoCorrect, TQT_SIGNAL(clicked()), TQT_SLOT(slotAutocorrect()) ); // button use by kword/kpresenter @@ -139,7 +139,7 @@ void Dialog::activeAutoCorrect( bool _active ) void Dialog::slotAutocorrect() { kdDebug()<<"void Dialog::slotAutocorrect()\n"; - emit autoCorrect(d->currentWord.word, d->ui->m_replacement->text() ); + emit autoCorrect(d->currentWord.word, d->ui->m_tqreplacement->text() ); slotReplaceWord(); } @@ -185,7 +185,7 @@ void Dialog::updateDialog( const TQString& word ) d->ui->m_unknownWord->setText( word ); d->ui->m_contextLabel->setText( d->checker->filter()->context() ); TQStringList suggs = d->checker->suggest( word ); - d->ui->m_replacement->setText( suggs.first() ); + d->ui->m_tqreplacement->setText( suggs.first() ); fillSuggestions( suggs ); } @@ -206,16 +206,16 @@ void Dialog::slotAddWord() void Dialog::slotReplaceWord() { - emit replace( d->currentWord.word, d->currentWord.start, - d->ui->m_replacement->text() ); - d->checker->filter()->replace( d->currentWord, d->ui->m_replacement->text() ); + emit tqreplace( d->currentWord.word, d->currentWord.start, + d->ui->m_tqreplacement->text() ); + d->checker->filter()->tqreplace( d->currentWord, d->ui->m_tqreplacement->text() ); d->checker->continueChecking(); } void Dialog::slotReplaceAll() { - d->replaceAllMap.insert( d->currentWord.word, - d->ui->m_replacement->text() ); + d->tqreplaceAllMap.insert( d->currentWord.word, + d->ui->m_tqreplacement->text() ); slotReplaceWord(); } @@ -227,13 +227,13 @@ void Dialog::slotSkip() void Dialog::slotSkipAll() { //### do we want that or should we have a d->ignoreAll list? - d->checker->broker()->settings()->addWordToIgnore( d->ui->m_replacement->text() ); + d->checker->broker()->settings()->addWordToIgnore( d->ui->m_tqreplacement->text() ); d->checker->continueChecking(); } void Dialog::slotSuggest() { - TQStringList suggs = d->checker->suggest( d->ui->m_replacement->text() ); + TQStringList suggs = d->checker->suggest( d->ui->m_tqreplacement->text() ); fillSuggestions( suggs ); } @@ -245,7 +245,7 @@ void Dialog::slotChangeLanguage( const TQString& lang ) void Dialog::slotSelectionChanged( TQListViewItem *item ) { - d->ui->m_replacement->setText( item->text( 0 ) ); + d->ui->m_tqreplacement->setText( item->text( 0 ) ); } void Dialog::fillSuggestions( const TQStringList& suggs ) @@ -261,8 +261,8 @@ void Dialog::slotMisspelling(const TQString& word, int start ) { kdDebug()<<"Dialog misspelling!!"<<endl; d->currentWord = Word( word, start ); - if ( d->replaceAllMap.contains( word ) ) { - d->ui->m_replacement->setText( d->replaceAllMap[ word ] ); + if ( d->tqreplaceAllMap.tqcontains( word ) ) { + d->ui->m_tqreplacement->setText( d->tqreplaceAllMap[ word ] ); slotReplaceWord(); } else { updateDialog( word ); diff --git a/kspell2/ui/dialog.h b/kspell2/ui/dialog.h index 1da714c7c..cee715b48 100644 --- a/kspell2/ui/dialog.h +++ b/kspell2/ui/dialog.h @@ -49,12 +49,12 @@ namespace KSpell2 signals: void done( const TQString& newBuffer ); void misspelling( const TQString& word, int start ); - void replace( const TQString& oldWord, int start, + void tqreplace( const TQString& oldWord, int start, const TQString& newWord ); void stop(); void cancel(); - void autoCorrect( const TQString & currentWord, const TQString & replaceWord ); + void autoCorrect( const TQString & currentWord, const TQString & tqreplaceWord ); private slots: void slotMisspelling(const TQString& word, int start ); void slotDone(); diff --git a/kspell2/ui/highlighter.cpp b/kspell2/ui/highlighter.cpp index 2d185462d..a3c33d7ae 100644 --- a/kspell2/ui/highlighter.cpp +++ b/kspell2/ui/highlighter.cpp @@ -110,7 +110,7 @@ TQString Highlighter::currentLanguage() const void Highlighter::setCurrentLanguage( const TQString& lang ) { - if ( !d->dictCache.find( lang ) ) { + if ( !d->dictCache.tqfind( lang ) ) { Dictionary *dict = d->broker->dictionary( lang ); if ( dict ) { d->dictCache.insert( lang, dict ); diff --git a/kspell2/ui/kspell2ui.ui b/kspell2/ui/kspell2ui.ui index b8870f2f5..1822ef4b9 100644 --- a/kspell2/ui/kspell2ui.ui +++ b/kspell2/ui/kspell2ui.ui @@ -4,7 +4,7 @@ <property name="name"> <cstring>KSpell2UI</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -20,7 +20,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>430</width> <height>300</height> @@ -40,7 +40,7 @@ <property name="whatsThis" stdset="0"> <string><qt><p>This word was considered to be an "unknown word" because it does not match any entry in the dictionary currently in use. It may also be a word in a foreign language.</p> <p>If the word is not misspelled, you may add it to the dictionary by clicking <b>Add to Dictionary</b>. If you don't want to add the unknown word to the dictionary, but you want to leave it unchanged, click <b>Ignore</b> or <b>Ignore All</b>.</p> -<p>However, if the word is misspelled, you can try to find the correct replacement in the list below. If you cannot find a replacement there, you may type it in the text box below, and click <b>Replace</b> or <b>Replace All</b>.</p> +<p>However, if the word is misspelled, you can try to tqfind the correct tqreplacement in the list below. If you cannot tqfind a tqreplacement there, you may type it in the text box below, and click <b>Replace</b> or <b>Replace All</b>.</p> </qt></string> </property> </widget> @@ -57,7 +57,7 @@ <property name="whatsThis" stdset="0"> <string><qt><p>This word was considered to be an "unknown word" because it does not match any entry in the dictionary currently in use. It may also be a word in a foreign language.</p> <p>If the word is not misspelled, you may add it to the dictionary by clicking <b>Add to Dictionary</b>. If you don't want to add the unknown word to the dictionary, but you want to leave it unchanged, click <b>Ignore</b> or <b>Ignore All</b>.</p> -<p>However, if the word is misspelled, you can try to find the correct replacement in the list below. If you cannot find a replacement there, you may type it in the text box below, and click <b>Replace</b> or <b>Replace All</b>.</p> +<p>However, if the word is misspelled, you can try to tqfind the correct tqreplacement in the list below. If you cannot tqfind a tqreplacement there, you may type it in the text box below, and click <b>Replace</b> or <b>Replace All</b>.</p> </qt></string> </property> </widget> @@ -87,7 +87,7 @@ <property name="text"> <string>... the <b>misspelled</b> word shown in context ...</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>WordBreak|AlignCenter</set> </property> <property name="toolTip" stdset="0"> @@ -95,7 +95,7 @@ </property> <property name="whatsThis" stdset="0"> <string><qt> -<p>Here you can see a text excerpt showing the unknown word in its context. If this information is not sufficient to choose the best replacement for the unknown word, you can click on the document you are proofing, read a larger part of the text and then return here to continue proofing.</p> +<p>Here you can see a text excerpt showing the unknown word in its context. If this information is not sufficient to choose the best tqreplacement for the unknown word, you can click on the document you are proofing, read a larger part of the text and then return here to continue proofing.</p> </qt></string> </property> </widget> @@ -123,7 +123,7 @@ Click here if you consider that the unknown word is not misspelled and you want <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>74</width> <height>20</height> @@ -153,7 +153,7 @@ Click here if you consider that the unknown word is not misspelled and you want </property> <property name="whatsThis" stdset="0"> <string><qt> -<p>If the unknown word is misspelled, you should check if the correction for it is available and if it is, click on it. If none of the words in this list is a good replacement you may type the correct word in the edit box above.</p> +<p>If the unknown word is misspelled, you should check if the correction for it is available and if it is, click on it. If none of the words in this list is a good tqreplacement you may type the correct word in the edit box above.</p> <p>To correct this word click <b>Replace</b> if you want to correct only this occurrence or <b>Replace All</b> if you want to correct all occurrences.</p> </qt></string> </property> @@ -166,7 +166,7 @@ Click here if you consider that the unknown word is not misspelled and you want <string>Replace &with:</string> </property> <property name="buddy" stdset="0"> - <cstring>m_replacement</cstring> + <cstring>m_tqreplacement</cstring> </property> <property name="whatsThis" stdset="0"> <string><qt> @@ -177,7 +177,7 @@ Click here if you consider that the unknown word is not misspelled and you want </widget> <widget class="QLineEdit" row="2" column="2" rowspan="1" colspan="3"> <property name="name"> - <cstring>m_replacement</cstring> + <cstring>m_tqreplacement</cstring> </property> <property name="whatsThis" stdset="0"> <string><qt> @@ -206,7 +206,7 @@ Click here if you consider that the unknown word is not misspelled and you want </widget> <widget class="QLayoutWidget" row="2" column="5" rowspan="3" colspan="1"> <property name="name"> - <cstring>layout1</cstring> + <cstring>tqlayout1</cstring> </property> <vbox> <property name="name"> @@ -222,27 +222,27 @@ Click here if you consider that the unknown word is not misspelled and you want </widget> <widget class="QPushButton"> <property name="name"> - <cstring>m_replaceBtn</cstring> + <cstring>m_tqreplaceBtn</cstring> </property> <property name="text"> <string>&Replace</string> </property> <property name="whatsThis" stdset="0"> <string><qt> -<p>Click here to replace this occurrence of the unknown text with the text in the edit box above (to the left).</p> +<p>Click here to tqreplace this occurrence of the unknown text with the text in the edit box above (to the left).</p> </qt></string> </property> </widget> <widget class="QPushButton"> <property name="name"> - <cstring>m_replaceAllBtn</cstring> + <cstring>m_tqreplaceAllBtn</cstring> </property> <property name="text"> <string>R&eplace All</string> </property> <property name="whatsThis" stdset="0"> <string><qt> -<p>Click here to replace all occurrences of the unknown text with the text in the edit box above (to the left).</p> +<p>Click here to tqreplace all occurrences of the unknown text with the text in the edit box above (to the left).</p> </qt></string> </property> </widget> @@ -298,7 +298,7 @@ Click here if you consider that the unknown word is not misspelled and you want <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> @@ -311,14 +311,14 @@ Click here if you consider that the unknown word is not misspelled and you want </widget> <tabstops> <tabstop>m_addBtn</tabstop> - <tabstop>m_replacement</tabstop> + <tabstop>m_tqreplacement</tabstop> <tabstop>m_suggestBtn</tabstop> - <tabstop>m_replaceBtn</tabstop> - <tabstop>m_replaceAllBtn</tabstop> + <tabstop>m_tqreplaceBtn</tabstop> + <tabstop>m_tqreplaceAllBtn</tabstop> <tabstop>m_skipBtn</tabstop> <tabstop>m_skipAllBtn</tabstop> <tabstop>m_suggestions</tabstop> <tabstop>m_language</tabstop> </tabstops> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> |