summaryrefslogtreecommitdiffstats
path: root/tools/designer
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
commit520c05ef06ce203ad32470730f68402bc7719157 (patch)
tree8d0bb18bbbecb4c837e232848905e5819db84b81 /tools/designer
parentb82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff)
downloadtqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz
tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip
Automated update from qt3
Diffstat (limited to 'tools/designer')
-rw-r--r--tools/designer/designer/customwidgeteditorimpl.cpp2
-rw-r--r--tools/designer/designer/formfile.cpp2
-rw-r--r--tools/designer/designer/formwindow.cpp12
-rw-r--r--tools/designer/designer/hierarchyview.cpp2
-rw-r--r--tools/designer/designer/listeditor.ui.h2
-rw-r--r--tools/designer/designer/mainwindow.cpp20
-rw-r--r--tools/designer/designer/mainwindowactions.cpp10
-rw-r--r--tools/designer/designer/menubareditor.cpp2
-rw-r--r--tools/designer/designer/multilineeditorimpl.cpp4
-rw-r--r--tools/designer/designer/outputwindow.cpp2
-rw-r--r--tools/designer/designer/pixmapchooser.cpp12
-rw-r--r--tools/designer/designer/popupmenueditor.cpp2
-rw-r--r--tools/designer/designer/project.cpp2
-rw-r--r--tools/designer/designer/propertyeditor.cpp14
-rw-r--r--tools/designer/designer/resource.cpp4
-rw-r--r--tools/designer/designer/syntaxhighlighter_html.cpp10
-rw-r--r--tools/designer/editor/conf.cpp6
-rw-r--r--tools/designer/examples/addressbook/addressbook.ui.h2
-rw-r--r--tools/designer/examples/multiclip/multiclip.ui.h2
-rw-r--r--tools/designer/examples/richedit/richedit.ui.h2
-rw-r--r--tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp2
-rw-r--r--tools/designer/plugins/glade/glade2ui.cpp2
-rw-r--r--tools/designer/plugins/wizards/main.cpp4
-rw-r--r--tools/designer/shared/globaldefs.h2
-rw-r--r--tools/designer/uilib/qwidgetfactory.cpp8
25 files changed, 66 insertions, 66 deletions
diff --git a/tools/designer/designer/customwidgeteditorimpl.cpp b/tools/designer/designer/customwidgeteditorimpl.cpp
index ac517f1df..515715200 100644
--- a/tools/designer/designer/customwidgeteditorimpl.cpp
+++ b/tools/designer/designer/customwidgeteditorimpl.cpp
@@ -403,7 +403,7 @@ void CustomWidgetEditor::checkWidgetName()
"to rename this widget with this name." ).arg( s ) );
if ( i != boxWidgets->item( boxWidgets->currentItem() ) ) {
boxWidgets->setCurrentItem( i );
- qApp->processEvents();
+ tqApp->processEvents();
}
editClass->setText( w->className );
classNameChanged( w->className );
diff --git a/tools/designer/designer/formfile.cpp b/tools/designer/designer/formfile.cpp
index 2afe8423d..4f88b29e5 100644
--- a/tools/designer/designer/formfile.cpp
+++ b/tools/designer/designer/formfile.cpp
@@ -218,7 +218,7 @@ bool FormFile::save( bool withMsgBox, bool ignoreModified )
TQCString data( f.size() );
f.readBlock( data.data(), f.size() );
f2.writeBlock( data );
- } else if ( qApp->type() != TQApplication::Tty ) {
+ } else if ( tqApp->type() != TQApplication::Tty ) {
TQMessageBox::warning( MainWindow::self, "Save", "The file " +
codeFile() + " could not be saved" );
}
diff --git a/tools/designer/designer/formwindow.cpp b/tools/designer/designer/formwindow.cpp
index b352b11d1..50dd96207 100644
--- a/tools/designer/designer/formwindow.cpp
+++ b/tools/designer/designer/formwindow.cpp
@@ -606,7 +606,7 @@ void FormWindow::handleMousePress( TQMouseEvent *e, TQWidget *w )
delete l;
}
}
- qApp->processEvents();
+ tqApp->processEvents();
}
if ( ( ( e->state() & ControlButton ) || ( e->state() & ShiftButton ) ) &&
sel && e->button() == LeftButton ) { // control pressed and selected, unselect widget
@@ -860,7 +860,7 @@ void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
break;
case CONNECT_TOOL:
restoreConnectionLine();
- wid = qApp->widgetAt( e->globalPos(), TRUE );
+ wid = tqApp->widgetAt( e->globalPos(), TRUE );
if ( wid )
wid = designerWidget( wid );
if ( wid && ( isMainContainer( wid ) || insertedWidgets.find( wid ) ) && wid->isVisibleTo( this ) )
@@ -874,7 +874,7 @@ void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
mainWindow()->statusBar()->message( tr( "Connect '%1' to '%2'" ).arg( startWidget->name() ).
arg( endWidget->name() ) );
currentPos = mapFromGlobal( e->globalPos() );
- qApp->processEvents();
+ tqApp->processEvents();
if ( drawRecRect )
restoreRect( TQRect( mapToForm( ( (TQWidget*)oldendWidget )->parentWidget(), ( (TQWidget*)oldendWidget )->pos() ),
( (TQWidget*)oldendWidget )->size() ) );
@@ -884,7 +884,7 @@ void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
if ( !validForBuddy )
break;
restoreConnectionLine();
- wid = qApp->widgetAt( e->globalPos(), TRUE );
+ wid = tqApp->widgetAt( e->globalPos(), TRUE );
if ( wid )
wid = designerWidget( wid );
if ( wid && canBeBuddy( wid ) && wid->isVisibleTo( this ) )
@@ -904,7 +904,7 @@ void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
else
mainWindow()->statusBar()->message( tr( "Set buddy '%1' to ..." ).arg( startWidget->name() ) );
currentPos = mapFromGlobal( e->globalPos() );
- qApp->processEvents();
+ tqApp->processEvents();
if ( drawRecRect && oldendWidget )
restoreRect( TQRect( mapToForm( ( (TQWidget*)oldendWidget )->parentWidget(), ( (TQWidget*)oldendWidget )->pos() ),
( (TQWidget*)oldendWidget )->size() ) );
@@ -1035,7 +1035,7 @@ void FormWindow::handleMouseRelease( TQMouseEvent *e, TQWidget *w )
( (TQWidget*)endWidget )->pos() ),
( (TQWidget*)endWidget )->size() ) );
endUnclippedPainter();
- qApp->processEvents();
+ tqApp->processEvents();
if ( startWidget && endWidget ) {
if ( currTool == CONNECT_TOOL )
diff --git a/tools/designer/designer/hierarchyview.cpp b/tools/designer/designer/hierarchyview.cpp
index 77c84d0b9..25d0f3340 100644
--- a/tools/designer/designer/hierarchyview.cpp
+++ b/tools/designer/designer/hierarchyview.cpp
@@ -953,7 +953,7 @@ void HierarchyList::insertEntry( TQListViewItem *i, const TQPixmap &pix, const T
item->setRenameEnabled( 0, TRUE );
setCurrentItem( item );
ensureItemVisible( item );
- qApp->processEvents();
+ tqApp->processEvents();
newItem = item;
item->startRename( 0 );
}
diff --git a/tools/designer/designer/listeditor.ui.h b/tools/designer/designer/listeditor.ui.h
index 5468f796a..3092706d5 100644
--- a/tools/designer/designer/listeditor.ui.h
+++ b/tools/designer/designer/listeditor.ui.h
@@ -30,7 +30,7 @@ void ListEditor::addItem()
{
TQListViewItem *i = new TQListViewItem( listview, listview->lastItem() );
i->setRenameEnabled( 0, TRUE );
- qApp->processEvents();
+ tqApp->processEvents();
i->startRename( 0 );
}
diff --git a/tools/designer/designer/mainwindow.cpp b/tools/designer/designer/mainwindow.cpp
index 4f22fb8b5..1d97ffe44 100644
--- a/tools/designer/designer/mainwindow.cpp
+++ b/tools/designer/designer/mainwindow.cpp
@@ -185,7 +185,7 @@ MainWindow::MainWindow( bool asClient, bool single, const TQString &plgDir )
setupPluginManagers();
if ( !single )
- qApp->setMainWidget( this );
+ tqApp->setMainWidget( this );
TQWidgetFactory::addWidgetFactory( new CustomWidgetFactory );
#ifndef Q_WS_MACX
setIcon( TQPixmap::fromMimeSource( "designer_appicon.png" ) );
@@ -247,13 +247,13 @@ MainWindow::MainWindow( bool asClient, bool single, const TQString &plgDir )
emit hasActiveWindow( FALSE );
lastPressWidget = 0;
- qApp->installEventFilter( this );
+ tqApp->installEventFilter( this );
- TQSize as( qApp->desktop()->size() );
+ TQSize as( tqApp->desktop()->size() );
as -= TQSize( 30, 30 );
resize( TQSize( 1200, 1000 ).boundedTo( as ) );
- connect( qApp->clipboard(), SIGNAL( dataChanged() ),
+ connect( tqApp->clipboard(), SIGNAL( dataChanged() ),
this, SLOT( clipboardChanged() ) );
clipboardChanged();
layoutChilds = FALSE;
@@ -734,7 +734,7 @@ void MainWindow::previewForm( const TQString & style )
void MainWindow::helpContents()
{
- TQWidget *focusWidget = qApp->focusWidget();
+ TQWidget *focusWidget = tqApp->focusWidget();
bool showClassDocu = TRUE;
while ( focusWidget ) {
if ( focusWidget->isA( "PropertyList" ) ) {
@@ -1525,7 +1525,7 @@ void MainWindow::popupFormWindowMenu( const TQPoint & gp, FormWindow *fw )
setupRMBSpecialCommands( ids, commands, fw );
setupRMBProperties( ids, commands, fw );
- qApp->processEvents();
+ tqApp->processEvents();
int r = rmbFormWindow->exec( gp );
handleRMBProperties( r, commands, fw );
@@ -1543,7 +1543,7 @@ void MainWindow::popupWidgetMenu( const TQPoint &gp, FormWindow * /*fw*/, TQWidg
setupRMBSpecialCommands( ids, commands, w );
setupRMBProperties( ids, commands, w );
- qApp->processEvents();
+ tqApp->processEvents();
int r = rmbWidgets->exec( gp );
handleRMBProperties( r, commands, w );
@@ -1997,7 +1997,7 @@ void MainWindow::handleRMBSpecialCommands( int id, TQMap<TQString, int> &command
void MainWindow::clipboardChanged()
{
- TQString text( qApp->clipboard()->text() );
+ TQString text( tqApp->clipboard()->text() );
if (qWorkspace()->activeWindow() && ::qt_cast<SourceEditor*>(qWorkspace()->activeWindow())) {
actionEditPaste->setEnabled(!text.isEmpty());
} else {
@@ -3355,7 +3355,7 @@ void MainWindow::showSourceLine( TQObject *o, int line, LineMode lm )
fw->showNormal();
fw->setFocus();
lastActiveFormWindow = fw;
- qApp->processEvents();
+ tqApp->processEvents();
se = editSource();
if ( se ) {
switch ( lm ) {
@@ -3430,7 +3430,7 @@ void MainWindow::showSourceLine( TQObject *o, int line, LineMode lm )
openFormWindow( currentProject->makeAbsolute( *qwf_forms->find( (TQWidget*)o ) ) );
else
fw->formFile()->showEditor( FALSE );
- qApp->processEvents(); // give all views the chance to get the formwindow
+ tqApp->processEvents(); // give all views the chance to get the formwindow
SourceEditor *se = editSource();
if ( se ) {
switch ( lm ) {
diff --git a/tools/designer/designer/mainwindowactions.cpp b/tools/designer/designer/mainwindowactions.cpp
index 86da0e524..dbff60da0 100644
--- a/tools/designer/designer/mainwindowactions.cpp
+++ b/tools/designer/designer/mainwindowactions.cpp
@@ -1082,7 +1082,7 @@ void MainWindow::fileQuit()
{
close();
if ( !singleProjectMode() )
- qApp->closeAllWindows();
+ tqApp->closeAllWindows();
}
void MainWindow::fileClose()
@@ -1531,7 +1531,7 @@ void MainWindow::editCopy()
return;
}
if ( formWindow() )
- qApp->clipboard()->setText( formWindow()->copy() );
+ tqApp->clipboard()->setText( formWindow()->copy() );
}
void MainWindow::editPaste()
@@ -1555,7 +1555,7 @@ void MainWindow::editPaste()
}
if ( w && WidgetFactory::layoutType( w ) == WidgetFactory::NoLayout ) {
- formWindow()->paste( qApp->clipboard()->text(), WidgetFactory::containerOfWidget( w ) );
+ formWindow()->paste( tqApp->clipboard()->text(), WidgetFactory::containerOfWidget( w ) );
hierarchyView->widgetInserted( 0 );
formWindow()->commandHistory()->setModified( TRUE );
} else {
@@ -2048,8 +2048,8 @@ void MainWindow::showStartDialog()
{
if ( singleProjectMode() )
return;
- for ( int i = 1; i < qApp->argc(); ++i ) {
- TQString arg = qApp->argv()[i];
+ for ( int i = 1; i < tqApp->argc(); ++i ) {
+ TQString arg = tqApp->argv()[i];
if ( arg[0] != '-' )
return;
}
diff --git a/tools/designer/designer/menubareditor.cpp b/tools/designer/designer/menubareditor.cpp
index 6687eddb2..2667519ff 100644
--- a/tools/designer/designer/menubareditor.cpp
+++ b/tools/designer/designer/menubareditor.cpp
@@ -822,7 +822,7 @@ void MenuBarEditor::keyPressEvent( TQKeyEvent * e )
void MenuBarEditor::focusOutEvent( TQFocusEvent * e )
{
- TQWidget * fw = qApp->focusWidget();
+ TQWidget * fw = tqApp->focusWidget();
if ( e->lostFocus() && !::qt_cast<PopupMenuEditor*>(fw) )
hideItem();
update();
diff --git a/tools/designer/designer/multilineeditorimpl.cpp b/tools/designer/designer/multilineeditorimpl.cpp
index d257d1636..b7ccc67ac 100644
--- a/tools/designer/designer/multilineeditorimpl.cpp
+++ b/tools/designer/designer/multilineeditorimpl.cpp
@@ -265,7 +265,7 @@ int MultiLineEditor::exec()
{
res = 1;
show();
- qApp->enter_loop();
+ tqApp->enter_loop();
return res;
}
@@ -315,7 +315,7 @@ void MultiLineEditor::cancelClicked()
void MultiLineEditor::closeEvent( TQCloseEvent *e )
{
- qApp->exit_loop();
+ tqApp->exit_loop();
MultiLineEditorBase::closeEvent( e );
}
diff --git a/tools/designer/designer/outputwindow.cpp b/tools/designer/designer/outputwindow.cpp
index 5a4479b9d..e54dc9de1 100644
--- a/tools/designer/designer/outputwindow.cpp
+++ b/tools/designer/designer/outputwindow.cpp
@@ -114,7 +114,7 @@ static void debugMessageOutput( TQtMsgType type, const char *msg )
abort();
}
- qApp->flush();
+ tqApp->flush();
}
void OutputWindow::setupDebug()
diff --git a/tools/designer/designer/pixmapchooser.cpp b/tools/designer/designer/pixmapchooser.cpp
index 4693013bb..de90f369f 100644
--- a/tools/designer/designer/pixmapchooser.cpp
+++ b/tools/designer/designer/pixmapchooser.cpp
@@ -89,7 +89,7 @@ void PixmapView::previewUrl( const TQUrl &u )
static void buildImageFormatList( TQString &filter, TQString &all )
{
- all = qApp->translate( "qChoosePixmap", "All Pixmaps (" );
+ all = tqApp->translate( "qChoosePixmap", "All Pixmaps (" );
for ( uint i = 0; i < TQImageIO::outputFormats().count(); i++ ) {
TQString outputFormat = TQImageIO::outputFormats().at( i );
TQString outputExtension;
@@ -97,12 +97,12 @@ static void buildImageFormatList( TQString &filter, TQString &all )
outputExtension = outputFormat.lower();
else
outputExtension = "jpg;*.jpeg";
- filter += qApp->translate( "qChoosePixmap", "%1-Pixmaps (%2)\n" ).
+ filter += tqApp->translate( "qChoosePixmap", "%1-Pixmaps (%2)\n" ).
arg( outputFormat ).arg( "*." + outputExtension);
all += "*." + outputExtension + ";";
}
- filter.prepend( all + qApp->translate( "qChoosePixmap", ")\n" ) );
- filter += qApp->translate( "qChoosePixmap", "All Files (*)" );
+ filter.prepend( all + tqApp->translate( "qChoosePixmap", ")\n" ) );
+ filter += tqApp->translate( "qChoosePixmap", "All Files (*)" );
}
TQStringList qChoosePixmaps( TQWidget *parent )
@@ -121,7 +121,7 @@ TQStringList qChoosePixmaps( TQWidget *parent )
fd.setContentsPreview( pw, pw );
fd.setViewMode( TQFileDialog::List );
fd.setPreviewMode( TQFileDialog::Contents );
- fd.setCaption( qApp->translate( "qChoosePixmap", "Choose Images..." ) );
+ fd.setCaption( tqApp->translate( "qChoosePixmap", "Choose Images..." ) );
if ( fd.exec() == TQDialog::Accepted )
return fd.selectedFiles();
return TQStringList();
@@ -144,7 +144,7 @@ TQPixmap qChoosePixmap( TQWidget *parent, FormWindow *fw, const TQPixmap &old, T
fd.setContentsPreview( pw, pw );
fd.setViewMode( TQFileDialog::List );
fd.setPreviewMode( TQFileDialog::Contents );
- fd.setCaption( qApp->translate( "qChoosePixmap", "Choose a Pixmap..." ) );
+ fd.setCaption( tqApp->translate( "qChoosePixmap", "Choose a Pixmap..." ) );
if ( fd.exec() == TQDialog::Accepted ) {
TQPixmap pix( fd.selectedFile() );
if ( fn )
diff --git a/tools/designer/designer/popupmenueditor.cpp b/tools/designer/designer/popupmenueditor.cpp
index af5a59594..355a65491 100644
--- a/tools/designer/designer/popupmenueditor.cpp
+++ b/tools/designer/designer/popupmenueditor.cpp
@@ -1011,7 +1011,7 @@ void PopupMenuEditor::focusInEvent( TQFocusEvent * )
void PopupMenuEditor::focusOutEvent( TQFocusEvent * )
{
- TQWidget * fw = qApp->focusWidget();
+ TQWidget * fw = tqApp->focusWidget();
if ( !fw || ( !::qt_cast<PopupMenuEditor*>(fw) && fw != lineEdit ) ) {
hideSubMenu();
if ( fw && ::qt_cast<MenuBarEditor*>(fw) )
diff --git a/tools/designer/designer/project.cpp b/tools/designer/designer/project.cpp
index 862dd1742..2d5dc2dd2 100644
--- a/tools/designer/designer/project.cpp
+++ b/tools/designer/designer/project.cpp
@@ -1594,5 +1594,5 @@ TQString Project::locationOfObject( TQObject *o )
bool Project::hasGUI() const
{
- return qApp->type() != TQApplication::Tty;
+ return tqApp->type() != TQApplication::Tty;
}
diff --git a/tools/designer/designer/propertyeditor.cpp b/tools/designer/designer/propertyeditor.cpp
index efbe42b9d..af0db8e31 100644
--- a/tools/designer/designer/propertyeditor.cpp
+++ b/tools/designer/designer/propertyeditor.cpp
@@ -333,14 +333,14 @@ void PropertyItem::setOpen( bool b )
children.setAutoDelete( TRUE );
children.clear();
children.setAutoDelete( FALSE );
- qApp->processEvents();
+ tqApp->processEvents();
listview->updateEditorSize();
return;
}
createChildren();
initChildren();
- qApp->processEvents();
+ tqApp->processEvents();
listview->updateEditorSize();
}
@@ -552,10 +552,10 @@ TQString PropertyItem::currentItemFromObject() const
void PropertyItem::setFocus( TQWidget *w )
{
- if ( !qApp->focusWidget() ||
+ if ( !tqApp->focusWidget() ||
listview->propertyEditor()->formWindow() &&
- ( !MainWindow::self->isAFormWindowChild( qApp->focusWidget() ) &&
- !qApp->focusWidget()->inherits( "Editor" ) ) )
+ ( !MainWindow::self->isAFormWindowChild( tqApp->focusWidget() ) &&
+ !tqApp->focusWidget()->inherits( "Editor" ) ) )
w->setFocus();
}
@@ -2560,7 +2560,7 @@ void PropertyKeysequenceItem::setValue()
PropertyItem::setValue( v );
if (sequence->hasFocus()
// if the user wants to use F1 as accelerator, Designer will pop up a TQWhatsThat widget
- || (qApp->focusWidget() && qApp->focusWidget()->inherits("TQWhatsThat")))
+ || (tqApp->focusWidget() && tqApp->focusWidget()->inherits("TQWhatsThat")))
notifyValueChange();
setChanged( TRUE );
}
@@ -3314,7 +3314,7 @@ void PropertyList::setupProperties()
sort();
setSorting( -1 );
setCurrentItem( firstChild() );
- qApp->processEvents();
+ tqApp->processEvents();
}
updateEditorSize();
diff --git a/tools/designer/designer/resource.cpp b/tools/designer/designer/resource.cpp
index 4f6c997dc..96720dc4e 100644
--- a/tools/designer/designer/resource.cpp
+++ b/tools/designer/designer/resource.cpp
@@ -1637,7 +1637,7 @@ void Resource::saveProperty( TQObject *w, const TQString &name, const TQVariant
case TQVariant::Font: {
TQVariant v( value );
ts << makeIndent( indent ) << "<font>" << endl;
- TQFont f( qApp->font() );
+ TQFont f( tqApp->font() );
if ( w && w->isWidgetType() && ((TQWidget*)w)->parentWidget() )
f = ((TQWidget*)w)->parentWidget()->font();
TQFont f2( v.toFont() );
@@ -2188,7 +2188,7 @@ void Resource::setObjectProperty( TQObject* obj, const TQString &prop, const TQD
TQVariant defVarient;
if ( e.tagName() == "font" ) {
- TQFont f( qApp->font() );
+ TQFont f( tqApp->font() );
if ( obj->isWidgetType() && ( (TQWidget*)obj )->parentWidget() )
f = ( (TQWidget*)obj )->parentWidget()->font();
defVarient = TQVariant( f );
diff --git a/tools/designer/designer/syntaxhighlighter_html.cpp b/tools/designer/designer/syntaxhighlighter_html.cpp
index 629941d7a..c41c8bac3 100644
--- a/tools/designer/designer/syntaxhighlighter_html.cpp
+++ b/tools/designer/designer/syntaxhighlighter_html.cpp
@@ -41,12 +41,12 @@
SyntaxHighlighter_HTML::SyntaxHighlighter_HTML()
: TQTextPreProcessor(), lastFormat( 0 ), lastFormatId( -1 )
{
- TQFont f( qApp->font() );
+ TQFont f( tqApp->font() );
- addFormat(Standard, new TQTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::Text)));
- addFormat(Keyword, new TQTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::Dark)));
- addFormat(Attribute, new TQTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::Link)));
- addFormat(AttribValue, new TQTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::LinkVisited)));
+ addFormat(Standard, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::Text)));
+ addFormat(Keyword, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::Dark)));
+ addFormat(Attribute, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::Link)));
+ addFormat(AttribValue, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::LinkVisited)));
}
SyntaxHighlighter_HTML::~SyntaxHighlighter_HTML()
diff --git a/tools/designer/editor/conf.cpp b/tools/designer/editor/conf.cpp
index 336f44712..bff128679 100644
--- a/tools/designer/editor/conf.cpp
+++ b/tools/designer/editor/conf.cpp
@@ -41,10 +41,10 @@ TQMap<TQString, ConfigStyle> Config::defaultStyles()
{
ConfigStyle s;
TQMap<TQString, ConfigStyle> styles;
- int normalSize = qApp->font().pointSize();
- TQString normalFamily = qApp->font().family();
+ int normalSize = tqApp->font().pointSize();
+ TQString normalFamily = tqApp->font().family();
TQString commentFamily = "times";
- int normalWeight = qApp->font().weight();
+ int normalWeight = tqApp->font().weight();
s.font = TQFont( normalFamily, normalSize, normalWeight );
s.color = TQt::black;
diff --git a/tools/designer/examples/addressbook/addressbook.ui.h b/tools/designer/examples/addressbook/addressbook.ui.h
index 9b1d5460d..a86d28448 100644
--- a/tools/designer/examples/addressbook/addressbook.ui.h
+++ b/tools/designer/examples/addressbook/addressbook.ui.h
@@ -112,7 +112,7 @@ void AddressBook::fileSaveAs()
void AddressBook::fileExit()
{
- qApp->exit();
+ tqApp->exit();
}
void AddressBook::editFind()
diff --git a/tools/designer/examples/multiclip/multiclip.ui.h b/tools/designer/examples/multiclip/multiclip.ui.h
index a2b0b0cf7..a4287fa44 100644
--- a/tools/designer/examples/multiclip/multiclip.ui.h
+++ b/tools/designer/examples/multiclip/multiclip.ui.h
@@ -35,7 +35,7 @@ void MulticlipForm::init()
lengthLCDNumber->setBackgroundColor( darkBlue );
currentLineEdit->setFocus();
- cb = qApp->clipboard();
+ cb = tqApp->clipboard();
connect( cb, SIGNAL( dataChanged() ), SLOT( dataChanged() ) );
if ( cb->supportsSelection() )
connect( cb, SIGNAL( selectionChanged() ), SLOT( selectionChanged() ) );
diff --git a/tools/designer/examples/richedit/richedit.ui.h b/tools/designer/examples/richedit/richedit.ui.h
index e6acad87b..02f7b1ef4 100644
--- a/tools/designer/examples/richedit/richedit.ui.h
+++ b/tools/designer/examples/richedit/richedit.ui.h
@@ -17,7 +17,7 @@ void EditorForm::init()
void EditorForm::fileExit()
{
if ( saveAndContinue( "Exit" ) )
- qApp->exit();
+ tqApp->exit();
}
void EditorForm::fileNew()
diff --git a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
index ce30936c0..7607cf730 100644
--- a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
+++ b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
@@ -134,7 +134,7 @@ static TQMap<int, TQMap<TQString, int > > *wordMap = 0;
SyntaxHighlighter_CPP::SyntaxHighlighter_CPP()
: TQTextPreProcessor(), lastFormat( 0 ), lastFormatId( -1 )
{
- TQFont f( qApp->font() );
+ TQFont f( tqApp->font() );
addFormat( Standard, new TQTextFormat( f, TQt::black ) );
addFormat( Number, new TQTextFormat( f, TQt::darkBlue ) );
diff --git a/tools/designer/plugins/glade/glade2ui.cpp b/tools/designer/plugins/glade/glade2ui.cpp
index 626b30934..f886a2595 100644
--- a/tools/designer/plugins/glade/glade2ui.cpp
+++ b/tools/designer/plugins/glade/glade2ui.cpp
@@ -2192,7 +2192,7 @@ TQStringList Glade2Ui::convertGladeFile( const TQString& fileName )
yyOut = TQString::null;
widgetNo++;
- qApp->processEvents();
+ tqApp->processEvents();
if ( fremskritt.wasCancelled() )
break;
fremskritt.setProgress( widgetNo );
diff --git a/tools/designer/plugins/wizards/main.cpp b/tools/designer/plugins/wizards/main.cpp
index b3400acc4..5060ec7ee 100644
--- a/tools/designer/plugins/wizards/main.cpp
+++ b/tools/designer/plugins/wizards/main.cpp
@@ -106,12 +106,12 @@ void StandardTemplateWizardInterface::setup( const TQString &templ, TQWidget *wi
templ == "TQDataView" ||
templ == "TQDataBrowser" ||
templ == "TQDataTable" ) {
- SqlFormWizard wizard( aIface, widget, qApp->mainWidget(), fw, 0, TRUE );
+ SqlFormWizard wizard( aIface, widget, tqApp->mainWidget(), fw, 0, TRUE );
wizard.exec();
}
#endif
if ( templ == "TQMainWindow" ) {
- MainWindowWizardBase wizard( qApp->mainWidget(), 0, TRUE );
+ MainWindowWizardBase wizard( tqApp->mainWidget(), 0, TRUE );
wizard.setAppInterface( aIface, fw, widget );
wizard.exec();
}
diff --git a/tools/designer/shared/globaldefs.h b/tools/designer/shared/globaldefs.h
index 4f4c2cb21..f093e0a36 100644
--- a/tools/designer/shared/globaldefs.h
+++ b/tools/designer/shared/globaldefs.h
@@ -51,7 +51,7 @@ static void init_colors()
return;
#if 0 // a calculated alternative for backColor1
- TQColorGroup myCg = qApp->palette().active();
+ TQColorGroup myCg = tqApp->palette().active();
int h1, s1, v1;
int h2, s2, v2;
myCg.color( TQColorGroup::Base ).hsv( &h1, &s1, &v1 );
diff --git a/tools/designer/uilib/qwidgetfactory.cpp b/tools/designer/uilib/qwidgetfactory.cpp
index cbf49cc47..9cd0ad75d 100644
--- a/tools/designer/uilib/qwidgetfactory.cpp
+++ b/tools/designer/uilib/qwidgetfactory.cpp
@@ -296,7 +296,7 @@ TQWidget *TQWidgetFactory::create( const TQString &uiFile, TQObject *connector,
bool failed = FALSE;
if ( !f.open( IO_ReadOnly ) )
failed = TRUE;
- if ( failed && qApp->type() == TQApplication::Tty ) {
+ if ( failed && tqApp->type() == TQApplication::Tty ) {
// for TQSA: If we have no GUI, we have no form definition
// files, but just the code. So try if only the code exists.
f.setName( uiFile + ".qs" );
@@ -331,7 +331,7 @@ TQWidget *TQWidgetFactory::create( TQIODevice *dev, TQObject *connector, TQWidge
widgetFactory->toplevel = 0;
// If we have no GUI, we only want to load the code
- if ( qApp->type() != TQApplication::Tty ) {
+ if ( tqApp->type() != TQApplication::Tty ) {
TQIODevice::Offset start = dev->at();
Q_UINT32 magic;
TQDataStream in( dev );
@@ -2612,12 +2612,12 @@ void TQWidgetFactory::loadExtraSource()
TQString TQWidgetFactory::translate( const TQString& sourceText, const TQString& comment )
{
- return qApp->translate( d->translationContext, sourceText.utf8(), comment.utf8(),
+ return tqApp->translate( d->translationContext, sourceText.utf8(), comment.utf8(),
TQApplication::UnicodeUTF8 );
}
TQString TQWidgetFactory::translate( const char *sourceText, const char *comment )
{
- return qApp->translate( d->translationContext, sourceText, comment,
+ return tqApp->translate( d->translationContext, sourceText, comment,
TQApplication::UnicodeUTF8 );
}