summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-02-27 02:13:42 -0600
committerTimothy Pearson <[email protected]>2012-02-27 02:13:42 -0600
commit520c05ef06ce203ad32470730f68402bc7719157 (patch)
tree8d0bb18bbbecb4c837e232848905e5819db84b81 /tools/linguist
parentb82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff)
downloadtqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz
tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip
Automated update from qt3
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/book/linguist-programmer.leaf6
-rw-r--r--tools/linguist/linguist/msgedit.cpp4
-rw-r--r--tools/linguist/linguist/phrase.cpp2
-rw-r--r--tools/linguist/linguist/trwindow.cpp26
-rw-r--r--tools/linguist/shared/metatranslator.cpp4
-rw-r--r--tools/linguist/tutorial/tt2/mainwindow.cpp2
-rw-r--r--tools/linguist/tutorial/tt3/mainwindow.cpp2
7 files changed, 23 insertions, 23 deletions
diff --git a/tools/linguist/book/linguist-programmer.leaf b/tools/linguist/book/linguist-programmer.leaf
index 771fff592..7074d59ff 100644
--- a/tools/linguist/book/linguist-programmer.leaf
+++ b/tools/linguist/book/linguist-programmer.leaf
@@ -253,7 +253,7 @@ QApplication::translate() function directly:
void same_global_function( LoginWidget *logwid )
{
QLabel *label = new QLabel(
- qApp->translate("LoginWidget", "Password:"),
+ tqApp->translate("LoginWidget", "Password:"),
logwid );
}
\endcode
@@ -291,7 +291,7 @@ Example of QT_TRANSLATE_NOOP():
QString global_greeting( int greet_type )
{
- return qApp->translate( "FriendlyConversation",
+ return tqApp->translate( "FriendlyConversation",
greeting_strings[greet_type] );
}
\endcode
@@ -597,7 +597,7 @@ The \c TQ_OBJECT macro defines \c tr(x) in \c ArrowPad like this
\index translate()!QApplication
\code
- qApp->translate( "ArrowPad", x )
+ tqApp->translate( "ArrowPad", x )
\endcode
Knowing which class each source text appears in enables \e {Qt
diff --git a/tools/linguist/linguist/msgedit.cpp b/tools/linguist/linguist/msgedit.cpp
index 21d54af8f..86c3b55d4 100644
--- a/tools/linguist/linguist/msgedit.cpp
+++ b/tools/linguist/linguist/msgedit.cpp
@@ -515,7 +515,7 @@ MessageEditor::MessageEditor( MetaTranslator * t, TQWidget * parent,
this, SIGNAL(cutAvailable(bool)) );
connect( editorPage->translationMed, SIGNAL(copyAvailable(bool)),
this, SIGNAL(copyAvailable(bool)) );
- connect( qApp->clipboard(), SIGNAL(dataChanged()),
+ connect( tqApp->clipboard(), SIGNAL(dataChanged()),
this, SLOT(updateCanPaste()) );
connect( phraseLv, SIGNAL(doubleClicked(TQListViewItem *)),
this, SLOT(insertPhraseInTranslation(TQListViewItem *)) );
@@ -814,7 +814,7 @@ void MessageEditor::updateCanPaste()
{
bool oldCanPaste = canPaste;
canPaste = ( !editorPage->translationMed->isReadOnly() &&
- !qApp->clipboard()->text().isNull() );
+ !tqApp->clipboard()->text().isNull() );
if ( canPaste != oldCanPaste )
emit pasteAvailable( canPaste );
}
diff --git a/tools/linguist/linguist/phrase.cpp b/tools/linguist/linguist/phrase.cpp
index 945d41507..0a93e89b8 100644
--- a/tools/linguist/linguist/phrase.cpp
+++ b/tools/linguist/linguist/phrase.cpp
@@ -130,7 +130,7 @@ bool QphHandler::fatalError( const TQXmlParseException& exception )
msg.sprintf( "Parse error at line %d, column %d (%s).",
exception.lineNumber(), exception.columnNumber(),
exception.message().latin1() );
- TQMessageBox::information( qApp->mainWidget(),
+ TQMessageBox::information( tqApp->mainWidget(),
TQObject::tr("TQt Linguist"), msg );
}
return FALSE;
diff --git a/tools/linguist/linguist/trwindow.cpp b/tools/linguist/linguist/trwindow.cpp
index d044ca699..eaa339d6f 100644
--- a/tools/linguist/linguist/trwindow.cpp
+++ b/tools/linguist/linguist/trwindow.cpp
@@ -329,7 +329,7 @@ TrWindow::TrWindow()
"are marked with a warning.") );
showNewCurrent( 0 );
- TQSize as( qApp->desktop()->size() );
+ TQSize as( tqApp->desktop()->size() );
as -= TQSize( 30, 30 );
resize( TQSize( 1000, 800 ).boundedTo( as ) );
readConfig();
@@ -349,7 +349,7 @@ void TrWindow::openFile( const TQString& name )
{
if ( !name.isEmpty() ) {
statusBar()->message( tr("Loading...") );
- qApp->processEvents();
+ tqApp->processEvents();
tor.clear();
if ( tor.load(name) ) {
slv->clear();
@@ -376,7 +376,7 @@ void TrWindow::openFile( const TQString& name )
srcChars = 0;
srcCharsSpc = 0;
for ( it = all.begin(); it != all.end(); ++it ) {
- qApp->processEvents();
+ tqApp->processEvents();
ContextLVI *c = contexts.find( TQString((*it).context()) );
if ( c == 0 ) {
c = new ContextLVI( lv, tor.toUnicode((*it).context(),
@@ -682,7 +682,7 @@ void TrWindow::findAgain()
slv->setUpdatesEnabled( TRUE );
slv->triggerUpdate();
- qApp->beep();
+ tqApp->beep();
TQMessageBox::warning( this, tr("TQt Linguist"),
TQString( tr("Cannot find the string '%1'.") ).arg(findText) );
foundItem = 0;
@@ -1038,7 +1038,7 @@ void TrWindow::updateFinished( bool finished )
danger(m->sourceText(), m->translation(),
!oldDanger) );
if ( !oldDanger && m->danger() )
- qApp->beep();
+ tqApp->beep();
tor.insert( m->message() );
if ( !dirty ) {
dirty = TRUE;
@@ -1066,7 +1066,7 @@ void TrWindow::doneAndNext()
dirty = TRUE;
updateCaption();
}
- qApp->beep();
+ tqApp->beep();
}
updateStatistics();
}
@@ -1090,7 +1090,7 @@ void TrWindow::toggleFinished( TQListViewItem *item, const TQPoint& /* p */,
m->setDanger( danger(m->sourceText(), m->translation(),
!oldDanger) );
if ( !oldDanger && m->danger() )
- qApp->beep();
+ tqApp->beep();
tor.insert( m->message() );
if ( !dirty ) {
dirty = TRUE;
@@ -1115,7 +1115,7 @@ void TrWindow::nextUnfinished()
if( (cItem == 0) && !(cItem = lv->firstChild()) ) {
statusBar()->message( tr("No phrase to translate."),
MessageMS );
- qApp->beep();
+ tqApp->beep();
return;
} else {
showNewScope( cItem );
@@ -1130,7 +1130,7 @@ void TrWindow::nextUnfinished()
} else {
statusBar()->message( tr("No phrase to translate."),
MessageMS );
- qApp->beep();
+ tqApp->beep();
return;
}
}
@@ -1182,7 +1182,7 @@ void TrWindow::nextUnfinished()
// If no Unfinished message is left, the user has finished the job. We
// congratulate on a job well done with this ringing bell.
statusBar()->message( tr("No untranslated phrases left."), MessageMS );
- qApp->beep();
+ tqApp->beep();
}
static TQListViewItem * lastChild( TQListView * view )
@@ -1214,7 +1214,7 @@ void TrWindow::prevUnfinished()
if( (cItem == 0) && !(cItem = lv->firstChild()) ) {
statusBar()->message( tr("No phrase to translate."),
MessageMS );
- qApp->beep();
+ tqApp->beep();
return;
} else {
showNewScope( cItem );
@@ -1229,7 +1229,7 @@ void TrWindow::prevUnfinished()
} else {
statusBar()->message( tr("No phrase to translate."),
MessageMS );
- qApp->beep();
+ tqApp->beep();
return;
}
}
@@ -1275,7 +1275,7 @@ void TrWindow::prevUnfinished()
} while ( q != 0 );
}
statusBar()->message( tr("No untranslated phrases left."), MessageMS );
- qApp->beep();
+ tqApp->beep();
}
void TrWindow::prev()
diff --git a/tools/linguist/shared/metatranslator.cpp b/tools/linguist/shared/metatranslator.cpp
index 5da969d8b..3ea91f2cb 100644
--- a/tools/linguist/shared/metatranslator.cpp
+++ b/tools/linguist/shared/metatranslator.cpp
@@ -192,10 +192,10 @@ bool TsHandler::fatalError( const TQXmlParseException& exception )
msg.sprintf( "Parse error at line %d, column %d (%s).",
exception.lineNumber(), exception.columnNumber(),
exception.message().latin1() );
- if ( qApp == 0 )
+ if ( tqApp == 0 )
fprintf( stderr, "XML error: %s\n", msg.latin1() );
else
- TQMessageBox::information( qApp->mainWidget(),
+ TQMessageBox::information( tqApp->mainWidget(),
TQObject::tr("TQt Linguist"), msg );
}
return FALSE;
diff --git a/tools/linguist/tutorial/tt2/mainwindow.cpp b/tools/linguist/tutorial/tt2/mainwindow.cpp
index 6a9808de1..b2951f6e9 100644
--- a/tools/linguist/tutorial/tt2/mainwindow.cpp
+++ b/tools/linguist/tutorial/tt2/mainwindow.cpp
@@ -19,7 +19,7 @@ MainWindow::MainWindow( TQWidget *parent, const char *name )
setCentralWidget( ap );
TQPopupMenu *file = new TQPopupMenu( this );
- file->insertItem( tr("E&xit"), qApp, SLOT(quit()),
+ file->insertItem( tr("E&xit"), tqApp, SLOT(quit()),
tr("Ctrl+Q", "Quit") );
menuBar()->insertItem( tr("&File"), file );
menuBar()->setSeparator( TQMenuBar::InWindowsStyle );
diff --git a/tools/linguist/tutorial/tt3/mainwindow.cpp b/tools/linguist/tutorial/tt3/mainwindow.cpp
index 86d2e0073..efaaac932 100644
--- a/tools/linguist/tutorial/tt3/mainwindow.cpp
+++ b/tools/linguist/tutorial/tt3/mainwindow.cpp
@@ -22,7 +22,7 @@ MainWindow::MainWindow( TQWidget *parent, const char *name )
setCentralWidget( pp );
TQPopupMenu *file = new TQPopupMenu( this );
- file->insertItem( tr("E&xit"), qApp, SLOT(quit()),
+ file->insertItem( tr("E&xit"), tqApp, SLOT(quit()),
tr("Ctrl+Q", "Quit") );
TQPopupMenu *help = new TQPopupMenu( this );
help->insertItem( tr("&About"), this, SLOT(about()), Key_F1 );