summaryrefslogtreecommitdiffstats
path: root/quanta/src/quantaview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/src/quantaview.cpp')
-rw-r--r--quanta/src/quantaview.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/quanta/src/quantaview.cpp b/quanta/src/quantaview.cpp
index 6d3ef86f..8e867d9a 100644
--- a/quanta/src/quantaview.cpp
+++ b/quanta/src/quantaview.cpp
@@ -86,8 +86,8 @@ QuantaView::QuantaView(TQWidget *parent, const char *name, const TQString &capti
{
setMDICaption(caption);
//Connect the VPL update timers
- connect(&m_sourceUpdateTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(sourceUpdateTimerTimeout()));
- connect(&m_VPLUpdateTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(VPLUpdateTimerTimeout()));
+ connect(&m_sourceUpdateTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(sourceUpdateTimerTimeout()));
+ connect(&m_VPLUpdateTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(VPLUpdateTimerTimeout()));
//create the source and VPL holding widgets
m_documentArea = new TQWidget(this);
@@ -95,10 +95,10 @@ QuantaView::QuantaView(TQWidget *parent, const char *name, const TQString &capti
//get the reference to the user toolbar holding widget
ToolbarTabWidget *m_toolbarTab = ToolbarTabWidget::ref();
m_toolbarTab->reparent(this, 0, TQPoint(), true);
- m_toolbarTab ->setFocusPolicy( TQ_NoFocus );
+ m_toolbarTab ->setFocusPolicy( TQWidget::NoFocus );
//create a splitter to separate the VPL and document area
- m_splitter = new TQSplitter(Qt::Vertical, this);
+ m_splitter = new TQSplitter(TQt::Vertical, this);
//place the widgets in a grid
m_viewLayout = new TQGridLayout(this, 2, 0);
m_viewLayout->setRowStretch(0, 0);
@@ -186,18 +186,18 @@ void QuantaView::addDocument(Document *document)
if (!document)
return;
m_document = document;
- connect(m_document, TQT_SIGNAL(editorGotFocus()), this, TQT_SLOT(slotSourceGetFocus()));
- connect(m_document->view(), TQT_SIGNAL(cursorPositionChanged()), this, TQT_SIGNAL(cursorPositionChanged()));
+ connect(m_document, TQ_SIGNAL(editorGotFocus()), this, TQ_SLOT(slotSourceGetFocus()));
+ connect(m_document->view(), TQ_SIGNAL(cursorPositionChanged()), this, TQ_SIGNAL(cursorPositionChanged()));
m_kafkaDocument = KafkaDocument::ref();
- connect(m_kafkaDocument->getKafkaWidget(), TQT_SIGNAL(hasFocus(bool)),
- this, TQT_SLOT(slotVPLGetFocus(bool)));
- connect(m_kafkaDocument, TQT_SIGNAL(newCursorPosition(int,int)),
- this, TQT_SLOT(slotSetCursorPositionInSource(int, int)));
- connect(m_kafkaDocument, TQT_SIGNAL(loadingError(Node *)),
- this, TQT_SLOT(slotVPLLoadingError(Node *)));
+ connect(m_kafkaDocument->getKafkaWidget(), TQ_SIGNAL(hasFocus(bool)),
+ this, TQ_SLOT(slotVPLGetFocus(bool)));
+ connect(m_kafkaDocument, TQ_SIGNAL(newCursorPosition(int,int)),
+ this, TQ_SLOT(slotSetCursorPositionInSource(int, int)));
+ connect(m_kafkaDocument, TQ_SIGNAL(loadingError(Node *)),
+ this, TQ_SLOT(slotVPLLoadingError(Node *)));
m_kafkaReloadingEnabled = true;
m_quantaReloadingEnabled = true;
@@ -1134,8 +1134,8 @@ bool QuantaView::saveDocument(const KURL& url)
{
KTextEditor::Document *doc = m_document->doc();
m_eventLoopStarted = false;
- connect(doc, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(slotSavingFailed(const TQString &)));
- connect(doc, TQT_SIGNAL(completed()), this, TQT_SLOT(slotSavingCompleted()));
+ connect(doc, TQ_SIGNAL(canceled(const TQString &)), this, TQ_SLOT(slotSavingFailed(const TQString &)));
+ connect(doc, TQ_SIGNAL(completed()), this, TQ_SLOT(slotSavingCompleted()));
m_saveResult = m_document->saveAs(url);
if (m_saveResult)
{
@@ -1144,8 +1144,8 @@ bool QuantaView::saveDocument(const KURL& url)
m_eventLoopStarted = true;
internalFileInfo.enter_loop();
}
- disconnect(doc, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(slotSavingFailed(const TQString &)));
- disconnect(doc, TQT_SIGNAL(completed()), this, TQT_SLOT(slotSavingCompleted()));
+ disconnect(doc, TQ_SIGNAL(canceled(const TQString &)), this, TQ_SLOT(slotSavingFailed(const TQString &)));
+ disconnect(doc, TQ_SIGNAL(completed()), this, TQ_SLOT(slotSavingCompleted()));
if (!m_saveResult) //there was an error while saving
{
if (oldURL.isLocalFile())