diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
commit | e985f7e545f4739493965aad69bbecb136dc9346 (patch) | |
tree | 54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /kommander/editor/multilineeditorimpl.cpp | |
parent | f7670c198945adc3b95ad69a959fe5f8ae55b493 (diff) | |
download | tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip |
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/editor/multilineeditorimpl.cpp')
-rw-r--r-- | kommander/editor/multilineeditorimpl.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kommander/editor/multilineeditorimpl.cpp b/kommander/editor/multilineeditorimpl.cpp index 2a0ec9b7..98ad65d6 100644 --- a/kommander/editor/multilineeditorimpl.cpp +++ b/kommander/editor/multilineeditorimpl.cpp @@ -1,7 +1,7 @@ /********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** -** This file is part of Qt Designer. +** This file is part of TQt Designer. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software @@ -28,13 +28,13 @@ #include <klocale.h> -MultiLineEditor::MultiLineEditor( TQWidget *parent, TQWidget *editWidget, FormWindow *fw ) - : MultiLineEditorBase( parent, 0, true ), formwindow( fw ) +MultiLineEditor::MultiLineEditor( TQWidget *tqparent, TQWidget *editWidget, FormWindow *fw ) + : MultiLineEditorBase( tqparent, 0, true ), formwindow( fw ) { connect( buttonHelp, TQT_SIGNAL( clicked() ), MainWindow::self, TQT_SLOT( showDialogHelp() ) ); mlined = (TQMultiLineEdit*)editWidget; // #### complete list of properties here - preview->setAlignment( mlined->alignment() ); + preview->tqsetAlignment( mlined->tqalignment() ); preview->setMaxLines( mlined->maxLines() ); preview->setWordWrap( mlined->wordWrap() ); preview->setWrapColumnOrWidth( mlined->wrapColumnOrWidth() ); @@ -53,7 +53,7 @@ void MultiLineEditor::okClicked() void MultiLineEditor::applyClicked() { - PopulateMultiLineEditCommand *cmd = new PopulateMultiLineEditCommand( i18n("Set Text of '%1'" ).arg( mlined->name() ), + PopulateMultiLineEditCommand *cmd = new PopulateMultiLineEditCommand( i18n("Set Text of '%1'" ).tqarg( mlined->name() ), formwindow, mlined, preview->text() ); cmd->execute(); formwindow->commandHistory()->addCommand( cmd ); @@ -61,8 +61,8 @@ void MultiLineEditor::applyClicked() } -TextEditor::TextEditor( TQWidget *parent, const TQString &text ) - : MultiLineEditorBase( parent, 0, true ) +TextEditor::TextEditor( TQWidget *tqparent, const TQString &text ) + : MultiLineEditorBase( tqparent, 0, true ) { buttonApply->hide(); setCaption( i18n("Text" ) ); @@ -71,9 +71,9 @@ TextEditor::TextEditor( TQWidget *parent, const TQString &text ) preview->selectAll(); } -TQString TextEditor::getText( TQWidget *parent, const TQString &text ) +TQString TextEditor::getText( TQWidget *tqparent, const TQString &text ) { - TextEditor dlg( parent, text ); + TextEditor dlg( tqparent, text ); if ( dlg.exec() == TQDialog::Accepted ) { TQString txt = dlg.preview->text(); int i = txt.length() - 1; @@ -84,7 +84,7 @@ TQString TextEditor::getText( TQWidget *parent, const TQString &text ) } return txt; } - return TQString::null; + return TQString(); } void TextEditor::okClicked() |