summaryrefslogtreecommitdiffstats
path: root/quanta/messages/messageoutput.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/messages/messageoutput.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-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 'quanta/messages/messageoutput.cpp')
-rw-r--r--quanta/messages/messageoutput.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/quanta/messages/messageoutput.cpp b/quanta/messages/messageoutput.cpp
index de4627ca..666d98d3 100644
--- a/quanta/messages/messageoutput.cpp
+++ b/quanta/messages/messageoutput.cpp
@@ -24,7 +24,7 @@
#include <kpopupmenu.h>
#include <kiconloader.h>
-// Qt includes
+// TQt includes
#include <tqclipboard.h>
#include <tqfile.h>
#include <tqtextstream.h>
@@ -32,8 +32,8 @@
#include "messageoutput.h"
#include "messageitem.h"
-MessageOutput::MessageOutput(TQWidget *parent, const char *name )
- : TQListBox(parent,name)
+MessageOutput::MessageOutput(TQWidget *tqparent, const char *name )
+ : TQListBox(tqparent,name)
{
m_maxItems = 2000;
@@ -41,7 +41,7 @@ MessageOutput::MessageOutput(TQWidget *parent, const char *name )
pal.setColor(TQColorGroup::HighlightedText, pal.color(TQPalette::Normal, TQColorGroup::Text));
pal.setColor(TQColorGroup::Highlight, pal.color(TQPalette::Normal, TQColorGroup::Mid));
setPalette(pal);
- setFocusPolicy( NoFocus );
+ setFocusPolicy( TQ_NoFocus );
m_popupMenu = new KPopupMenu(this);
connect(this, TQT_SIGNAL(contextMenuRequested(TQListBoxItem*, const TQPoint&)),
@@ -85,7 +85,7 @@ void MessageOutput::showMessage(int line, int col, const TQString &fileName, con
int endPos;
if ( !count() || (!append && !text(count()-1).stripWhiteSpace().isEmpty()) )
it = insertItem("");
- while ( ( endPos = message.find('\n') ) != -1 ) {
+ while ( ( endPos = message.tqfind('\n') ) != -1 ) {
if (it)
{
it->setLine(line);
@@ -146,7 +146,7 @@ TQString MessageOutput::content()
void MessageOutput::copyContent()
{
- kapp->clipboard()->setText(content(), QClipboard::Clipboard);
+ kapp->tqclipboard()->setText(content(), TQClipboard::Clipboard);
}
void MessageOutput::saveContent()
@@ -159,13 +159,13 @@ void MessageOutput::saveContent()
TQFileInfo fileinfo(url.path());
if (fileinfo.exists() && KMessageBox::warningContinueCancel(0,
i18n("<qt>File<br><b>%1</b><br>already exists. Overwrite it?</qt>")
- .arg(url.path()), TQString::null, i18n("Overwrite")) == KMessageBox::Cancel)
+ .tqarg(url.path()), TQString(), i18n("Overwrite")) == KMessageBox::Cancel)
return;
TQFile file(url.path());
if (!file.open(IO_WriteOnly)) {
KMessageBox::error(0, i18n("<qt>Cannot save log file<br><b>%1</b></qt>")
- .arg(url.url()));
+ .tqarg(url.url()));
return;
}