summaryrefslogtreecommitdiffstats
path: root/quanta/messages/messageoutput.cpp
diff options
context:
space:
mode:
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;
}