diff options
Diffstat (limited to 'bibletime/frontend/displaywindow/cplainwritewindow.cpp')
-rw-r--r-- | bibletime/frontend/displaywindow/cplainwritewindow.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/bibletime/frontend/displaywindow/cplainwritewindow.cpp b/bibletime/frontend/displaywindow/cplainwritewindow.cpp index ba95bec..b855ee8 100644 --- a/bibletime/frontend/displaywindow/cplainwritewindow.cpp +++ b/bibletime/frontend/displaywindow/cplainwritewindow.cpp @@ -18,7 +18,7 @@ #include "util/cresmgr.h" //Qt includes -#include <qregexp.h> +#include <tqregexp.h> //KDE includes #include <kaction.h> @@ -65,7 +65,7 @@ void CPlainWriteWindow::initToolbars() { m_actions.saveText = new KAction(i18n("Save text"), CResMgr::displaywindows::writeWindow::saveText::icon, CResMgr::displaywindows::writeWindow::saveText::accel, - this, SLOT(saveCurrentText()), + this, TQT_SLOT(saveCurrentText()), actionCollection(), CResMgr::displaywindows::writeWindow::saveText::actionName ); @@ -76,7 +76,7 @@ void CPlainWriteWindow::initToolbars() { m_actions.deleteEntry = new KAction(i18n("Delete current entry"), CResMgr::displaywindows::writeWindow::deleteEntry::icon, CResMgr::displaywindows::writeWindow::deleteEntry::accel, - this, SLOT(deleteEntry()), + this, TQT_SLOT(deleteEntry()), actionCollection(), CResMgr::displaywindows::writeWindow::deleteEntry::actionName ); @@ -87,7 +87,7 @@ void CPlainWriteWindow::initToolbars() { m_actions.restoreText = new KAction(i18n("Restore original text"), CResMgr::displaywindows::writeWindow::restoreText::icon, CResMgr::displaywindows::writeWindow::restoreText::accel, - this, SLOT(restoreText()), + this, TQT_SLOT(restoreText()), actionCollection(), CResMgr::displaywindows::writeWindow::restoreText::actionName ); @@ -97,11 +97,11 @@ void CPlainWriteWindow::initToolbars() { void CPlainWriteWindow::initConnections() { CWriteWindow::initConnections(); - connect(keyChooser(), SIGNAL(keyChanged(CSwordKey*)), - this, SLOT(lookup(CSwordKey*))); + connect(keyChooser(), TQT_SIGNAL(keyChanged(CSwordKey*)), + this, TQT_SLOT(lookup(CSwordKey*))); - connect(displayWidget()->connectionsProxy(), SIGNAL(textChanged()), - this, SLOT(textChanged()) ); + connect(displayWidget()->connectionsProxy(), TQT_SIGNAL(textChanged()), + this, TQT_SLOT(textChanged()) ); } void CPlainWriteWindow::storeProfileSettings( CProfileWindow* profileWindow ) { @@ -117,15 +117,15 @@ void CPlainWriteWindow::applyProfileSettings( CProfileWindow* profileWindow ) { }; /** Saves the text for the current key. Directly writes the changed text into the module. */ -void CPlainWriteWindow::saveCurrentText( const QString& /*key*/ ) { - QString t = displayWidget()->plainText(); +void CPlainWriteWindow::saveCurrentText( const TQString& /*key*/ ) { + TQString t = displayWidget()->plainText(); //since t is a complete HTML page at the moment, strip away headers and footers of a HTML page - QRegExp re("(?:<html.*>.+<body.*>)", false); //remove headers, case insensitive + TQRegExp re("(?:<html.*>.+<body.*>)", false); //remove headers, case insensitive re.setMinimal(true); t.replace(re, ""); - t.replace(QRegExp("</body></html>", false), "");//remove footer + t.replace(TQRegExp("</body></html>", false), "");//remove footer - const QString& oldKey = this->key()->key(); + const TQString& oldKey = this->key()->key(); if( modules().first()->isWritable() ) { modules().first()->write(this->key(), t ); this->key()->key( oldKey ); @@ -134,7 +134,7 @@ void CPlainWriteWindow::saveCurrentText( const QString& /*key*/ ) { textChanged(); } else { KMessageBox::error( this, - QString::fromLatin1("<qt><B>%1</B><BR>%2</qt>") + TQString::fromLatin1("<qt><B>%1</B><BR>%2</qt>") .arg( i18n("Module is not writable.") ) .arg( i18n("Either the module may not be edited, or " "you do not have write permission.") ), |