").arg(printItem->getAlternativeContent());
+ TQString ret = TQString::tqfromLatin1("
%1
").tqarg(printItem->getAlternativeContent());
if (i.hasChildItems()) {
KeyTree const * tree = i.childList();
diff --git a/bibletime/frontend/cprofile.cpp b/bibletime/frontend/cprofile.cpp
index dbca236..bacdda9 100644
--- a/bibletime/frontend/cprofile.cpp
+++ b/bibletime/frontend/cprofile.cpp
@@ -15,7 +15,7 @@
#include
#include
#include
-#include
+#include
#include
//KDE includes
@@ -30,7 +30,7 @@ CProfile::CProfile( const TQString& file, const TQString& name ):
m_name(name.isEmpty() ? i18n("unknown") : name),
m_filename(file),
m_fullscreen(false),
-m_geometry(10,20,640,480) {
+m_tqgeometry(10,20,640,480) {
m_profileWindows.setAutoDelete(true);
if (!m_filename.isEmpty() && name.isEmpty()) {
@@ -216,14 +216,14 @@ const bool CProfile::save(TQPtrList windows) {
TQDomElement mainWindow = doc.createElement("MAINWINDOW");
mainWindow.setAttribute("fullscreen", fullscreen());
- TQDomElement geometry = doc.createElement("GEOMETRY");
- mainWindow.appendChild(geometry);
- const TQRect r = this->geometry();
- geometry.setAttribute("x",r.x());
- geometry.setAttribute("y",r.y());
- geometry.setAttribute("width",r.width());
- geometry.setAttribute("height",r.height());
- geometry.setAttribute("isMaximized",static_cast(this->maximized()));
+ TQDomElement tqgeometry = doc.createElement("GEOMETRY");
+ mainWindow.appendChild(tqgeometry);
+ const TQRect r = this->tqgeometry();
+ tqgeometry.setAttribute("x",r.x());
+ tqgeometry.setAttribute("y",r.y());
+ tqgeometry.setAttribute("width",r.width());
+ tqgeometry.setAttribute("height",r.height());
+ tqgeometry.setAttribute("isMaximized",static_cast(this->maximized()));
content.appendChild(mainWindow);
}
@@ -253,14 +253,14 @@ const bool CProfile::save(TQPtrList windows) {
window.setAttribute("hasFocus", p->hasFocus());
//save geomtery
- const TQRect r = p->geometry();
- TQDomElement geometry = doc.createElement("GEOMETRY");
- geometry.setAttribute("x",r.x());
- geometry.setAttribute("y",r.y());
- geometry.setAttribute("width",r.width());
- geometry.setAttribute("height",r.height());
- geometry.setAttribute("isMaximized",static_cast(p->maximized()));
- window.appendChild( geometry );
+ const TQRect r = p->tqgeometry();
+ TQDomElement tqgeometry = doc.createElement("GEOMETRY");
+ tqgeometry.setAttribute("x",r.x());
+ tqgeometry.setAttribute("y",r.y());
+ tqgeometry.setAttribute("width",r.width());
+ tqgeometry.setAttribute("height",r.height());
+ tqgeometry.setAttribute("isMaximized",static_cast(p->maximized()));
+ window.appendChild( tqgeometry );
TQDomElement modules = doc.createElement("MODULES");
modules.setAttribute("separator", "|");
@@ -384,14 +384,14 @@ void CProfile::setMaximized( const bool maximized ) {
m_maximized = maximized;
}
-/** Returns the geometry of the main window */
-const TQRect CProfile::geometry() {
- return m_geometry;
+/** Returns the tqgeometry of the main window */
+const TQRect CProfile::tqgeometry() {
+ return m_tqgeometry;
}
/** Stes the geoemtry of the main window */
void CProfile::setGeometry( const TQRect rect ) {
- m_geometry = rect;
+ m_tqgeometry = rect;
}
} //end of namespace Profile
diff --git a/bibletime/frontend/cprofile.h b/bibletime/frontend/cprofile.h
index ffded07..9ef59fd 100644
--- a/bibletime/frontend/cprofile.h
+++ b/bibletime/frontend/cprofile.h
@@ -78,9 +78,9 @@ public:
*/
void setGeometry( const TQRect rect );
/**
- * Returns the geometry of the main window
+ * Returns the tqgeometry of the main window
*/
- const TQRect geometry();
+ const TQRect tqgeometry();
private:
/**
@@ -94,7 +94,7 @@ private:
TQString m_filename;
bool m_fullscreen;
bool m_maximized;
- TQRect m_geometry;
+ TQRect m_tqgeometry;
};
} //end of namespace Profile
diff --git a/bibletime/frontend/cprofilewindow.cpp b/bibletime/frontend/cprofilewindow.cpp
index 051ff08..3d0ae6b 100644
--- a/bibletime/frontend/cprofilewindow.cpp
+++ b/bibletime/frontend/cprofilewindow.cpp
@@ -29,7 +29,7 @@ m_writeWindowType(0) {
CProfileWindow::~CProfileWindow() {}
/** Returns the size of the window including the x,y coordinates. */
-const TQRect& CProfileWindow::geometry() const {
+const TQRect& CProfileWindow::tqgeometry() const {
return m_windowGeometry;
}
diff --git a/bibletime/frontend/cprofilewindow.h b/bibletime/frontend/cprofilewindow.h
index bdc245b..928f9f9 100644
--- a/bibletime/frontend/cprofilewindow.h
+++ b/bibletime/frontend/cprofilewindow.h
@@ -54,7 +54,7 @@ public:
/**
* Returns the size of the window including the x,y coordinates.
*/
- const TQRect& geometry() const;
+ const TQRect& tqgeometry() const;
/**
* Returns a list of module names which are chosen in the managed window profile.
*/
diff --git a/bibletime/frontend/crossrefrendering.cpp b/bibletime/frontend/crossrefrendering.cpp
index e7bfb5c..6c83686 100644
--- a/bibletime/frontend/crossrefrendering.cpp
+++ b/bibletime/frontend/crossrefrendering.cpp
@@ -72,14 +72,14 @@ namespace InfoDisplay {
if (!linkText.isEmpty()) { //if we have a valid link text
// qWarning("rendering");
return TQString("%2")
- .arg(
+ .tqarg(
CReferenceManager::encodeHyperlink(
module->name(),
item.key(),
CReferenceManager::typeFromModule(module->type())
)
)
- .arg(linkText);
+ .tqarg(linkText);
}
return TQString();
diff --git a/bibletime/frontend/cswordsetupdialog.cpp b/bibletime/frontend/cswordsetupdialog.cpp
index 11e838f..c527325 100644
--- a/bibletime/frontend/cswordsetupdialog.cpp
+++ b/bibletime/frontend/cswordsetupdialog.cpp
@@ -25,7 +25,7 @@
//QT includes
#include
-#include
+#include
#include
#include
#include
@@ -75,44 +75,44 @@ namespace BookshelfManager {
TQFrame* page = m_swordConfigPage = addPage(i18n("Bookshelf path(s)"), TQString(), SmallIcon("bt_swordconfig",32));
page->setMinimumSize(500,400);
- TQGridLayout* layout = new TQGridLayout(page, 6, 4);
- layout->setMargin(5);
+ TQGridLayout* tqlayout = new TQGridLayout(page, 6, 4);
+ tqlayout->setMargin(5);
- layout->setSpacing(10);
- layout->setColStretch(0,1);
- layout->setRowStretch(5,1);
+ tqlayout->setSpacing(10);
+ tqlayout->setColStretch(0,1);
+ tqlayout->setRowStretch(5,1);
TQLabel* mainLabel = CToolClass::explanationLabel(page,
i18n("Configure bookshelf path(s)"),
i18n("You can store your bookshelfs in one or more directories, which you can specify here.")
);
- layout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
+ tqlayout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
TQString swordConfPath = BTInstallMgr::Tool::LocalConfig::swordConfigFilename();
- TQLabel* confPathLabel = new TQLabel(i18n("Your bookshelf configuration file is %1").arg(swordConfPath), page);
- layout->addMultiCellWidget(confPathLabel, 1,1,0,3);
+ TQLabel* confPathLabel = new TQLabel(i18n("Your bookshelf configuration file is %1").tqarg(swordConfPath), page);
+ tqlayout->addMultiCellWidget(confPathLabel, 1,1,0,3);
m_swordPathListBox = new TQListView(page);
// m_swordPathListBox->setFullWidth(true);
m_swordPathListBox->addColumn(i18n("Path to bookshelf"));
connect(m_swordPathListBox, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slot_swordPathSelected()));
- layout->addMultiCellWidget(m_swordPathListBox, 2,5,0,1);
+ tqlayout->addMultiCellWidget(m_swordPathListBox, 2,5,0,1);
m_swordEditPathButton = new TQPushButton(i18n("Edit Entry"), page);
m_swordEditPathButton->setIconSet(SmallIcon("edit", 16));
connect(m_swordEditPathButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_swordEditClicked()));
- layout->addWidget(m_swordEditPathButton, 2, 3);
+ tqlayout->addWidget(m_swordEditPathButton, 2, 3);
m_swordAddPathButton = new TQPushButton(i18n("Add Entry"), page);
m_swordAddPathButton->setIconSet(SmallIcon("edit_add", 16));
connect(m_swordAddPathButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_swordAddClicked()));
- layout->addWidget(m_swordAddPathButton, 3,3);
+ tqlayout->addWidget(m_swordAddPathButton, 3,3);
m_swordRemovePathButton = new TQPushButton(i18n("Remove Entry"), page);
m_swordRemovePathButton->setIconSet(SmallIcon("editdelete", 16));
connect(m_swordRemovePathButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_swordRemoveClicked()));
- layout->addWidget(m_swordRemovePathButton, 4,3);
+ tqlayout->addWidget(m_swordRemovePathButton, 4,3);
setupSwordPathListBox();
}
@@ -120,25 +120,25 @@ namespace BookshelfManager {
void CSwordSetupDialog::initInstall() {
m_installPage = addPage(i18n("Install/Update works"), TQString(), SmallIcon("bt_bible",32));
- TQVBoxLayout* vboxlayout = new TQVBoxLayout(m_installPage);
- TQHBoxLayout* hboxlayout = new TQHBoxLayout();
- hboxlayout->setAutoAdd( true );
+ TQVBoxLayout* vboxtqlayout = new TQVBoxLayout(m_installPage);
+ TQHBoxLayout* hboxtqlayout = new TQHBoxLayout();
+ hboxtqlayout->setAutoAdd( true );
- vboxlayout->addLayout(hboxlayout);
+ vboxtqlayout->addLayout(hboxtqlayout);
m_installWidgetStack = new TQWidgetStack(m_installPage);
- hboxlayout->addWidget(m_installWidgetStack);
+ hboxtqlayout->addWidget(m_installWidgetStack);
m_installSourcePage = new TQWidget(0);
m_installWidgetStack->addWidget(m_installSourcePage);
// m_installSourcePage->setMinimumSize(500,400);
- TQGridLayout* layout = new TQGridLayout(m_installSourcePage, 7, 3);
- layout->setMargin(5);
- layout->setSpacing(10);
- layout->setRowStretch(6,5);
- layout->setColStretch(0,5);
+ TQGridLayout* tqlayout = new TQGridLayout(m_installSourcePage, 7, 3);
+ tqlayout->setMargin(5);
+ tqlayout->setSpacing(10);
+ tqlayout->setRowStretch(6,5);
+ tqlayout->setColStretch(0,5);
TQLabel* installLabel = CToolClass::explanationLabel(m_installSourcePage,
i18n("Install/update works - Step 1"),
@@ -147,39 +147,39 @@ After that step click on the connect button.
\
WARNING: If you live in a persecuted country and do not wish to risk detection you should NOT use \
the module remote installation feature!")
);
- layout->addMultiCellWidget(installLabel, 0,0,0,2);
+ tqlayout->addMultiCellWidget(installLabel, 0,0,0,2);
- TQLabel* sourceHeadingLabel = new TQLabel(TQString("%1").arg(i18n("Select library")), m_installSourcePage);
- layout->addMultiCellWidget(sourceHeadingLabel, 1,1,0,1);
+ TQLabel* sourceHeadingLabel = new TQLabel(TQString("%1").tqarg(i18n("Select library")), m_installSourcePage);
+ tqlayout->addMultiCellWidget(sourceHeadingLabel, 1,1,0,1);
m_sourceCombo = new TQComboBox(m_installSourcePage);
- layout->addWidget(m_sourceCombo, 2, 0);
+ tqlayout->addWidget(m_sourceCombo, 2, 0);
TQPushButton* deleteSourceButton = new TQPushButton(i18n("Delete library"), m_installSourcePage);
deleteSourceButton->setIconSet(SmallIcon("remove", 16));
connect(deleteSourceButton, TQT_SIGNAL(clicked()), TQT_SLOT(slot_installDeleteSource()));
- layout->addWidget(deleteSourceButton, 2, 1, TQt::AlignLeft);
+ tqlayout->addWidget(deleteSourceButton, 2, 1, TQt::AlignLeft);
TQPushButton* addSourceButton = new TQPushButton(i18n("Add library"), m_installSourcePage);
addSourceButton->setIconSet(SmallIcon("folder_new", 16));
connect(addSourceButton, TQT_SIGNAL(clicked()), TQT_SLOT(slot_installAddSource()));
- layout->addWidget(addSourceButton, 2, 2, TQt::AlignLeft);
+ tqlayout->addWidget(addSourceButton, 2, 2, TQt::AlignLeft);
m_sourceLabel = new TQLabel(m_installSourcePage);
- layout->addMultiCellWidget(m_sourceLabel, 3,3,0,1);
+ tqlayout->addMultiCellWidget(m_sourceLabel, 3,3,0,1);
- TQLabel* targetHeadingLabel = new TQLabel(TQString("%1").arg(i18n("Select bookshelf path")), m_installSourcePage);
- layout->addMultiCellWidget(targetHeadingLabel, 4,4,0,1);
+ TQLabel* targetHeadingLabel = new TQLabel(TQString("%1").tqarg(i18n("Select bookshelf path")), m_installSourcePage);
+ tqlayout->addMultiCellWidget(targetHeadingLabel, 4,4,0,1);
m_targetCombo = new TQComboBox(m_installSourcePage);
- layout->addWidget(m_targetCombo, 5, 0);
+ tqlayout->addWidget(m_targetCombo, 5, 0);
m_targetLabel = new TQLabel(m_installSourcePage);
- layout->addMultiCellWidget(m_targetLabel, 6,6,0,0,TQt::AlignTop);
+ tqlayout->addMultiCellWidget(m_targetLabel, 6,6,0,0,TQt::AlignTop);
- //part beloew main layout with the back/next buttons
+ //part beloew main tqlayout with the back/next buttons
TQHBoxLayout* myHBox = new TQHBoxLayout();
- vboxlayout->addLayout(myHBox);
+ vboxtqlayout->addLayout(myHBox);
m_installBackButton = new TQPushButton(i18n("Back"), m_installPage);
m_installBackButton->setIconSet(SmallIcon("back",16));
@@ -207,28 +207,28 @@ the module remote installation feature!")
page->setMinimumSize(500,400);
- TQGridLayout* layout = new TQGridLayout(page, 4, 4);
- layout->setMargin(5);
+ TQGridLayout* tqlayout = new TQGridLayout(page, 4, 4);
+ tqlayout->setMargin(5);
- layout->setSpacing(10);
- layout->setColStretch(1,1);
- layout->setRowStretch(2,1);
+ tqlayout->setSpacing(10);
+ tqlayout->setColStretch(1,1);
+ tqlayout->setRowStretch(2,1);
TQLabel* mainLabel= CToolClass::explanationLabel(page,
i18n("Remove installed work(s)"),
i18n("This dialog lets you remove installed works from your system. Choose the modules and then click on the remove button.")
);
- layout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
+ tqlayout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
- TQLabel* headingLabel = new TQLabel(TQString("%1").arg(i18n("Select works to be uninstalled")), page);
- layout->addMultiCellWidget(headingLabel, 1, 1, 0, 3);
+ TQLabel* headingLabel = new TQLabel(TQString("%1").tqarg(i18n("Select works to be uninstalled")), page);
+ tqlayout->addMultiCellWidget(headingLabel, 1, 1, 0, 3);
m_removeModuleListView = new CSwordSetupModuleListView(page, false);
- layout->addMultiCellWidget( m_removeModuleListView, 2,2,0,3);
+ tqlayout->addMultiCellWidget( m_removeModuleListView, 2,2,0,3);
m_removeRemoveButton = new TQPushButton(i18n("Remove selected work(s)"), page);
m_removeRemoveButton->setIconSet( SmallIcon("edittrash", 16) );
- layout->addWidget(m_removeRemoveButton, 3, 3, TQt::AlignRight);
+ tqlayout->addWidget(m_removeRemoveButton, 3, 3, TQt::AlignRight);
connect(m_removeRemoveButton, TQT_SIGNAL(clicked()),
this, TQT_SLOT(slot_doRemoveModules()));
@@ -379,10 +379,10 @@ the module remote installation feature!")
sword::InstallSource is = BTInstallMgr::Tool::RemoteConfig::source(&mgr, source) ;
if (BTInstallMgr::Tool::RemoteConfig::isRemoteSource(&is)) {
- url = TQString("ftp://%1%2").arg(is.source.c_str()).arg(is.directory.c_str());
+ url = TQString("ftp://%1%2").tqarg(is.source.c_str()).tqarg(is.directory.c_str());
}
else {
- url = TQString("%1").arg(is.directory.c_str());
+ url = TQString("%1").tqarg(is.directory.c_str());
}
m_sourceLabel->setText( url );
@@ -405,7 +405,7 @@ the module remote installation feature!")
}
const TQString message = i18n("You selected the following work(s): %1.\n\n"
- "Do you really want to remove them from your system?").arg(moduleList.join(", "));
+ "Do you really want to remove them from your system?").tqarg(moduleList.join(", "));
if ((KMessageBox::warningYesNo(0, message, i18n("Warning")) == KMessageBox::Yes)) { //Yes was pressed.
sword::InstallMgr installMgr;
@@ -424,7 +424,7 @@ the module remote installation feature!")
prefixPath = prefixPath.remove( prefixPath.find(dataPath), dataPath.length() );
}
else { //fall back to default Sword config path
- prefixPath = TQString::fromLatin1(backend()->prefixPath);
+ prefixPath = TQString::tqfromLatin1(backend()->prefixPath);
}
sword::SWMgr* mgr = mgrDict[ prefixPath ];
@@ -612,16 +612,16 @@ the module remote installation feature!")
if (!m_installModuleListPage) { //the widgets are not yet created
m_installModuleListPage = new TQWidget(0);
- TQGridLayout* layout = new TQGridLayout(m_installModuleListPage, 7, 2);
- layout->setMargin(5);
- layout->setSpacing(10);
+ TQGridLayout* tqlayout = new TQGridLayout(m_installModuleListPage, 7, 2);
+ tqlayout->setMargin(5);
+ tqlayout->setSpacing(10);
TQLabel* installLabel = CToolClass::explanationLabel(m_installModuleListPage,
i18n("Install/update works - Step 2"),
i18n("Please choose the works which should be installed and/or updated and click the install button.")
);
- layout->addMultiCellWidget(installLabel, 0,0,0,1);
- layout->setRowStretch(0,0);
+ tqlayout->addMultiCellWidget(installLabel, 0,0,0,1);
+ tqlayout->setRowStretch(0,0);
m_installWidgetStack->addWidget(m_installModuleListPage);
m_installModuleListPage->setMinimumSize(500,400);
@@ -631,9 +631,9 @@ the module remote installation feature!")
sword::InstallSource is = BTInstallMgr::Tool::RemoteConfig::source(&iMgr, currentInstallSource());
m_installModuleListView = new CSwordSetupModuleListView(m_installModuleListPage, true, &is);
- layout->addMultiCellWidget( m_installModuleListView, 1,6,0,1);
- layout->setColStretch(0,5);
- layout->setRowStretch(1,5);
+ tqlayout->addMultiCellWidget( m_installModuleListView, 1,6,0,1);
+ tqlayout->setColStretch(0,5);
+ tqlayout->setRowStretch(1,5);
connect(m_installModuleListView, TQT_SIGNAL(selectedModulesChanged()), TQT_SLOT(slot_installModulesChanged()));
}
@@ -696,7 +696,7 @@ the module remote installation feature!")
}
const TQString message = i18n("You selected the following works: %1.\n\n\
- Do you really want to install them on your system?").arg(moduleList.join(", "));
+ Do you really want to install them on your system?").tqarg(moduleList.join(", "));
if ((KMessageBox::warningYesNo(0, message, i18n("Warning")) == KMessageBox::Yes)) { //Yes was pressed.
BTInstallMgr iMgr;
@@ -758,7 +758,7 @@ the module remote installation feature!")
//prefixPath = prefixPath.replace(dataPath, ""); //old code working with TQt 3.2
}
else {
- prefixPath = TQString::fromLatin1(backend()->prefixPath);
+ prefixPath = TQString::tqfromLatin1(backend()->prefixPath);
}
sword::SWMgr mgr(prefixPath.latin1());
@@ -795,7 +795,7 @@ the module remote installation feature!")
void CSwordSetupDialog::installCompleted( const int total, const int /* file */) {
if (m_progressDialog) {
m_progressDialog->progressBar()->setProgress(total+100*m_installedModuleCount);
- m_progressDialog->setLabel( i18n("[%1]: %2% complete").arg(m_installingModule).arg(total) );
+ m_progressDialog->setLabel( i18n("[%1]: %2% complete").tqarg(m_installingModule).tqarg(total) );
}
KApplication::kApplication()->processEvents();
}
diff --git a/bibletime/frontend/cswordsetupinstallsourcesdialog.cpp b/bibletime/frontend/cswordsetupinstallsourcesdialog.cpp
index 10308a9..8778e8b 100644
--- a/bibletime/frontend/cswordsetupinstallsourcesdialog.cpp
+++ b/bibletime/frontend/cswordsetupinstallsourcesdialog.cpp
@@ -14,7 +14,7 @@
#include "util/scoped_resource.h"
//TQt includes
-#include
+#include
#include
#include
#include
@@ -49,29 +49,29 @@ namespace BookshelfManager {
mainLayout->addSpacing( 10 );
- TQGridLayout* layout = new TQGridLayout( mainLayout, 3, 3 );
- layout->setSpacing( 5 );
+ TQGridLayout* tqlayout = new TQGridLayout( mainLayout, 3, 3 );
+ tqlayout->setSpacing( 5 );
label = new TQLabel(i18n("Type"), this);
- layout->addWidget( label, 0, 0);
+ tqlayout->addWidget( label, 0, 0);
m_serverLabel = new TQLabel(i18n("Server"), this);
- layout->addWidget( m_serverLabel, 0, 1);
+ tqlayout->addWidget( m_serverLabel, 0, 1);
label = new TQLabel(i18n("Path"), this);
- layout->addWidget( label, 0, 2 );
+ tqlayout->addWidget( label, 0, 2 );
m_protocolCombo = new TQComboBox( this );
- layout->addWidget(m_protocolCombo, 1, 0);
+ tqlayout->addWidget(m_protocolCombo, 1, 0);
m_protocolCombo->insertItem( PROTO_FTP );
m_protocolCombo->insertItem( PROTO_FILE );
m_serverEdit = new TQLineEdit( this );
- layout->addWidget( m_serverEdit, 1, 1 );
+ tqlayout->addWidget( m_serverEdit, 1, 1 );
m_serverEdit->setText("ftp.crosswire.org");
m_pathEdit = new TQLineEdit( this );
- layout->addWidget( m_pathEdit, 1, 2 );
+ tqlayout->addWidget( m_pathEdit, 1, 2 );
m_pathEdit->setText("/pub/sword/raw");
mainLayout->addSpacing( 10 );
diff --git a/bibletime/frontend/cswordsetupmodulelistview.cpp b/bibletime/frontend/cswordsetupmodulelistview.cpp
index 9b80cb0..14cffe5 100644
--- a/bibletime/frontend/cswordsetupmodulelistview.cpp
+++ b/bibletime/frontend/cswordsetupmodulelistview.cpp
@@ -50,7 +50,7 @@ namespace BookshelfManager {
TQListViewItem* i = m_parent->itemAt(pos);
Q_ASSERT(i);
- const TQRect rect = m_parent->itemRect(i);
+ const TQRect rect = m_parent->tqitemRect(i);
if (m_parent->showTooltip(i, pos, 0)) {
const TQString tipText = m_parent->tooltip(i, 0);
tip(rect, tipText);
diff --git a/bibletime/frontend/display/cdisplay.cpp b/bibletime/frontend/display/cdisplay.cpp
index 485a6c4..bc3aad9 100644
--- a/bibletime/frontend/display/cdisplay.cpp
+++ b/bibletime/frontend/display/cdisplay.cpp
@@ -20,7 +20,7 @@
//TQt includes
-#include
+#include
#include
#include
@@ -139,7 +139,7 @@ CDisplay::~CDisplay() {
const bool CDisplay::copy( const CDisplay::TextType format, const CDisplay::TextPart part ) {
const TQString content = text(format, part);
- TQClipboard* cb = KApplication::clipboard();
+ TQClipboard* cb = KApplication::tqclipboard();
cb->setText(content);
return true;
}
diff --git a/bibletime/frontend/display/chtmlreaddisplay.cpp b/bibletime/frontend/display/chtmlreaddisplay.cpp
index 06cd21d..2e8b126 100644
--- a/bibletime/frontend/display/chtmlreaddisplay.cpp
+++ b/bibletime/frontend/display/chtmlreaddisplay.cpp
@@ -33,7 +33,7 @@
#include
#include
#include
-#include
+#include
#include
#if TDE_VERSION < 0x030300
//We will need to show the error message.
@@ -168,9 +168,9 @@ const TQString CHTMLReadDisplay::text( const CDisplay::TextType format, const CD
.append(key->module()->name())
.append(")");
/* ("%1\n(%2, %3)")
- .arg()
- .arg(key->key())
- .arg(key->module()->name());*/
+ .tqarg()
+ .tqarg(key->key())
+ .tqarg(key->module()->name());*/
}
return TQString();
}
diff --git a/bibletime/frontend/display/chtmlwritedisplay.cpp b/bibletime/frontend/display/chtmlwritedisplay.cpp
index b1a74c8..73997db 100644
--- a/bibletime/frontend/display/chtmlwritedisplay.cpp
+++ b/bibletime/frontend/display/chtmlwritedisplay.cpp
@@ -66,19 +66,19 @@ void CHTMLWriteDisplay::toggleUnderline() {
void CHTMLWriteDisplay::alignLeft() {
- setAlignment(TQt::AlignLeft);
+ tqsetAlignment(TQt::AlignLeft);
};
void CHTMLWriteDisplay::alignCenter() {
- setAlignment(TQt::AlignHCenter);
+ tqsetAlignment(TQt::AlignHCenter);
};
void CHTMLWriteDisplay::alignRight() {
- setAlignment(TQt::AlignRight);
+ tqsetAlignment(TQt::AlignRight);
};
-/** The text's alignment changed. Enable the right buttons. */
+/** The text's tqalignment changed. Enable the right buttons. */
void CHTMLWriteDisplay::slotAlignmentChanged( int a ) {
bool alignLeft = false;
bool alignCenter = false;
@@ -99,7 +99,7 @@ void CHTMLWriteDisplay::slotAlignmentChanged( int a ) {
// }
else {
alignLeft = true;
- qWarning("unknown alignment %i", a);
+ qWarning("unknown tqalignment %i", a);
}
m_actions.alignLeft->setChecked( alignLeft );
@@ -153,7 +153,7 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions
m_colorButton = new KColorButton(bar);
connect(m_colorButton, TQT_SIGNAL(changed(const TQColor&)), TQT_TQOBJECT(this), TQT_SLOT(slotColorSelected(const TQColor&)));
- bar->insertWidget(50, m_colorButton->sizeHint().width(), m_colorButton);
+ bar->insertWidget(50, m_colorButton->tqsizeHint().width(), m_colorButton);
TQToolTip::add
(m_colorButton, CResMgr::displaywindows::writeWindow::fontColor::tooltip );
@@ -195,7 +195,7 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions
m_actions.underline->plug(bar);
- (new KActionSeparator())->plug(bar); //seperate formatting from alignment buttons
+ (new KActionSeparator())->plug(bar); //seperate formatting from tqalignment buttons
m_actions.alignLeft = new KToggleAction( i18n("Left"),
CResMgr::displaywindows::writeWindow::alignLeft::icon,
@@ -248,7 +248,7 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions
//set initial values for toolbar items
slotFontChanged( font() );
- slotAlignmentChanged( alignment() );
+ slotAlignmentChanged( tqalignment() );
slotColorChanged( color() );
}
diff --git a/bibletime/frontend/display/chtmlwritedisplay.h b/bibletime/frontend/display/chtmlwritedisplay.h
index c95ce4c..9058e4b 100644
--- a/bibletime/frontend/display/chtmlwritedisplay.h
+++ b/bibletime/frontend/display/chtmlwritedisplay.h
@@ -17,7 +17,7 @@
//TQt includes
#include
-#include
+#include
class CWriteWindow;
@@ -70,7 +70,7 @@ protected slots:
void slotFontChanged( const TQFont& );
/**
- * The text's alignment changed. Enable the right buttons.
+ * The text's tqalignment changed. Enable the right buttons.
*/
void slotAlignmentChanged( int );
/**
diff --git a/bibletime/frontend/display/cplainwritedisplay.cpp b/bibletime/frontend/display/cplainwritedisplay.cpp
index ec4dd2e..012591a 100644
--- a/bibletime/frontend/display/cplainwritedisplay.cpp
+++ b/bibletime/frontend/display/cplainwritedisplay.cpp
@@ -138,7 +138,7 @@ void CPlainWriteDisplay::contentsDropEvent( TQDropEvent* e ) {
TQString moduleText = key->strippedText();
- const TQString text = TQString::fromLatin1("%1\n(%2, %3)\n").arg(moduleText).arg((*it).bookmarkKey()).arg((*it).bookmarkModule());
+ const TQString text = TQString::tqfromLatin1("%1\n(%2, %3)\n").tqarg(moduleText).tqarg((*it).bookmarkKey()).tqarg((*it).bookmarkModule());
placeCursor( e->pos() );
insert( text );
diff --git a/bibletime/frontend/display/cplainwritedisplay.h b/bibletime/frontend/display/cplainwritedisplay.h
index 4b82fa3..897eb85 100644
--- a/bibletime/frontend/display/cplainwritedisplay.h
+++ b/bibletime/frontend/display/cplainwritedisplay.h
@@ -17,7 +17,7 @@
//TQt includes
#include
-#include
+#include
class CHTMLWriteDisplay;
class KAction;
diff --git a/bibletime/frontend/displaywindow/cbiblereadwindow.cpp b/bibletime/frontend/displaywindow/cbiblereadwindow.cpp
index b4b32fa..e78c1d2 100644
--- a/bibletime/frontend/displaywindow/cbiblereadwindow.cpp
+++ b/bibletime/frontend/displaywindow/cbiblereadwindow.cpp
@@ -53,10 +53,10 @@ void CBibleReadWindow::applyProfileSettings( CProfileWindow* const settings ) {
for (int i = count-1; i>=1; i--) {
if (result-(int)pow((double)2,i-1)>= 0) { //2^i was added before, so item with index i is set
result -= (int)pow((double)2,i-1);
- displaySettingsButton()->setItemStatus(i,true);
+ displaySettingsButton()->setItemtqStatus(i,true);
}
else {
- displaySettingsButton()->setItemStatus(i,false);
+ displaySettingsButton()->setItemtqStatus(i,false);
}
}
displaySettingsButton()->setChanged();
@@ -69,7 +69,7 @@ void CBibleReadWindow::storeProfileSettings( CProfileWindow* const settings ) {
int result = 0;
//now check every item
for (int i = 1; i < count; i++) { //first item is a title
- if (displaySettingsButton()->itemStatus(i)) //item is checked
+ if (displaySettingsButton()->itemtqStatus(i)) //item is checked
result += (int)pow((double)2,i-1);//add 2^i (the i. digit in binary)
}
settings->setWindowSettings(result);
diff --git a/bibletime/frontend/displaywindow/cbookreadwindow.cpp b/bibletime/frontend/displaywindow/cbookreadwindow.cpp
index d7879fc..8033ea1 100644
--- a/bibletime/frontend/displaywindow/cbookreadwindow.cpp
+++ b/bibletime/frontend/displaywindow/cbookreadwindow.cpp
@@ -134,7 +134,7 @@ void CBookReadWindow::initToolbars() {
m_actions.backInHistory->plug( mainToolBar(), 0 );
m_actions.forwardInHistory->plug( mainToolBar(), 1 );
- mainToolBar()->insertWidget(0,keyChooser()->sizeHint().width(),keyChooser());
+ mainToolBar()->insertWidget(0,keyChooser()->tqsizeHint().width(),keyChooser());
m_treeAction->plug(buttonsToolBar());
m_treeAction->setChecked(false);
diff --git a/bibletime/frontend/displaywindow/cbuttons.cpp b/bibletime/frontend/displaywindow/cbuttons.cpp
index 3c706f3..f626e25 100644
--- a/bibletime/frontend/displaywindow/cbuttons.cpp
+++ b/bibletime/frontend/displaywindow/cbuttons.cpp
@@ -65,7 +65,7 @@
// sword::StringList::iterator it;
//
// for (it = options.begin(); it != options.end(); ++it) {
-// int id = m_popup->insertItem(TQString::fromLatin1((*it).c_str()));
+// int id = m_popup->insertItem(TQString::tqfromLatin1((*it).c_str()));
// if (m_filterOptions->transliteration == m_popup->indexOf(id)-1 ) { //workaround
// m_popup->setItemChecked(id, true);
// }
@@ -198,7 +198,7 @@ const int CDisplaySettingsButton::menuItemCount() {
}
/** Sets the item at position pos to the satet given as 2nd paramter. */
-void CDisplaySettingsButton::setItemStatus( const int index, const bool checked ) {
+void CDisplaySettingsButton::setItemtqStatus( const int index, const bool checked ) {
const int ID = m_popup->idAt(index);
m_popup->setItemChecked(ID, checked);
const TQString text = m_popup->text(ID).remove('&');
@@ -208,7 +208,7 @@ void CDisplaySettingsButton::setItemStatus( const int index, const bool checked
}
/** Returns the status of the item at position "index" */
-const bool CDisplaySettingsButton::itemStatus( const int index ) {
+const bool CDisplaySettingsButton::itemtqStatus( const int index ) {
return m_popup->isItemChecked( m_popup->idAt(index) );
}
diff --git a/bibletime/frontend/displaywindow/cbuttons.h b/bibletime/frontend/displaywindow/cbuttons.h
index 5d9dcd7..fb13f18 100644
--- a/bibletime/frontend/displaywindow/cbuttons.h
+++ b/bibletime/frontend/displaywindow/cbuttons.h
@@ -65,7 +65,7 @@ public:
/**
* Sets the item at position pos to the satet given as 2nd paramter.
*/
- void setItemStatus( const int pos, const bool checked );
+ void setItemtqStatus( const int pos, const bool checked );
/**
* Returns the number of usable menu items in the setttings menu.
*/
@@ -73,7 +73,7 @@ public:
/**
* Returns the status of the item at position "index"
*/
- const bool itemStatus( const int index );
+ const bool itemtqStatus( const int index );
/**
* Sets the status to changed. The signal changed will be emitted.
*/
diff --git a/bibletime/frontend/displaywindow/chtmlwritewindow.cpp b/bibletime/frontend/displaywindow/chtmlwritewindow.cpp
index bed8058..e7f778d 100644
--- a/bibletime/frontend/displaywindow/chtmlwritewindow.cpp
+++ b/bibletime/frontend/displaywindow/chtmlwritewindow.cpp
@@ -41,7 +41,7 @@ void CHTMLWriteWindow::initView() {
addDockWindow(mainToolBar());
setKeyChooser( CKeyChooser::createInstance(modules(), key(), mainToolBar()) );
- mainToolBar()->insertWidget(0,keyChooser()->sizeHint().width(),keyChooser());
+ mainToolBar()->insertWidget(0,keyChooser()->tqsizeHint().width(),keyChooser());
mainToolBar()->setFullSize(false);
};
diff --git a/bibletime/frontend/displaywindow/clexiconreadwindow.cpp b/bibletime/frontend/displaywindow/clexiconreadwindow.cpp
index 37103a9..01927ff 100644
--- a/bibletime/frontend/displaywindow/clexiconreadwindow.cpp
+++ b/bibletime/frontend/displaywindow/clexiconreadwindow.cpp
@@ -162,7 +162,7 @@ void CLexiconReadWindow::initView() {
setKeyChooser( CKeyChooser::createInstance(modules(), key(), mainToolBar()) );
- mainToolBar()->insertWidget(0, keyChooser()->sizeHint().width(), keyChooser());
+ mainToolBar()->insertWidget(0, keyChooser()->tqsizeHint().width(), keyChooser());
mainToolBar()->setFullSize(false);
setModuleChooserBar( new CModuleChooserBar(modules(), modules().first()->type(), this) );
diff --git a/bibletime/frontend/displaywindow/cmodulechooserbutton.cpp b/bibletime/frontend/displaywindow/cmodulechooserbutton.cpp
index 59d4052..c982fb6 100644
--- a/bibletime/frontend/displaywindow/cmodulechooserbutton.cpp
+++ b/bibletime/frontend/displaywindow/cmodulechooserbutton.cpp
@@ -190,7 +190,7 @@ void CModuleChooserButton::populateMenu() {
TQString lang = (*it)->language()->translatedName();
if (lang.isEmpty()) {
- //lang = TQString::fromLatin1("xx"); //unknown language -- do not use English as default!!
+ //lang = TQString::tqfromLatin1("xx"); //unknown language -- do not use English as default!!
lang = (*it)->language()->abbrev();
if (lang.isEmpty()) {
lang = "xx";
diff --git a/bibletime/frontend/displaywindow/cplainwritewindow.cpp b/bibletime/frontend/displaywindow/cplainwritewindow.cpp
index 376d917..14cd981 100644
--- a/bibletime/frontend/displaywindow/cplainwritewindow.cpp
+++ b/bibletime/frontend/displaywindow/cplainwritewindow.cpp
@@ -46,7 +46,7 @@ void CPlainWriteWindow::initView() {
addDockWindow(mainToolBar());
setKeyChooser( CKeyChooser::createInstance(modules(), key(), mainToolBar()) );
- mainToolBar()->insertWidget(0,keyChooser()->sizeHint().width(),keyChooser());
+ mainToolBar()->insertWidget(0,keyChooser()->tqsizeHint().width(),keyChooser());
mainToolBar()->setFullSize(false);
}
@@ -134,9 +134,9 @@ void CPlainWriteWindow::saveCurrentText( const TQString& /*key*/ ) {
textChanged();
} else {
KMessageBox::error( this,
- TQString::fromLatin1("%1
%2")
- .arg( i18n("Module is not writable.") )
- .arg( i18n("Either the module may not be edited, or "
+ TQString::tqfromLatin1("%1
%2")
+ .tqarg( i18n("Module is not writable.") )
+ .tqarg( i18n("Either the module may not be edited, or "
"you do not have write permission.") ),
i18n("Module not writable") );
}
diff --git a/bibletime/frontend/displaywindow/creadwindow.cpp b/bibletime/frontend/displaywindow/creadwindow.cpp
index 6a3e803..35aeec7 100644
--- a/bibletime/frontend/displaywindow/creadwindow.cpp
+++ b/bibletime/frontend/displaywindow/creadwindow.cpp
@@ -157,7 +157,7 @@ void CReadWindow::applyProfileSettings(CProfileWindow * const settings) {
parentWidget()->showMaximized();
}
else {
- const TQRect rect = settings->geometry();
+ const TQRect rect = settings->tqgeometry();
resize(rect.width(), rect.height());
parentWidget()->move(rect.x(), rect.y());
}
diff --git a/bibletime/frontend/displaywindow/cwritewindow.cpp b/bibletime/frontend/displaywindow/cwritewindow.cpp
index 760a767..6f2262f 100644
--- a/bibletime/frontend/displaywindow/cwritewindow.cpp
+++ b/bibletime/frontend/displaywindow/cwritewindow.cpp
@@ -69,7 +69,7 @@ void CWriteWindow::storeProfileSettings(CProfileWindow * const settings) {
sword::VerseKey* vk = dynamic_cast(key());
TQString oldLang;
if (vk) {
- oldLang = TQString::fromLatin1(vk->getLocale());
+ oldLang = TQString::tqfromLatin1(vk->getLocale());
vk->setLocale("en"); //save english locale names as default!
}
settings->setKey( key()->key() );
@@ -95,10 +95,10 @@ void CWriteWindow::applyProfileSettings(CProfileWindow * const settings) {
parentWidget()->showMaximized();
}
else {
- const TQRect rect = settings->geometry();
+ const TQRect rect = settings->tqgeometry();
resize(rect.width(), rect.height());
parentWidget()->move(rect.x(), rect.y());
- //setGeometry( settings->geometry() );
+ //setGeometry( settings->tqgeometry() );
}
// displayWidget()->view()->horizontalScrollBar()->setValue( settings->scrollbarPositions().horizontal );
// m_htmlWidget->view()->verticalScrollBar()->setValue( settings->scrollbarPositions().vertical );
diff --git a/bibletime/frontend/keychooser/cbiblekeychooser.cpp b/bibletime/frontend/keychooser/cbiblekeychooser.cpp
index 3d1a50e..a728f67 100644
--- a/bibletime/frontend/keychooser/cbiblekeychooser.cpp
+++ b/bibletime/frontend/keychooser/cbiblekeychooser.cpp
@@ -38,11 +38,11 @@ m_key(dynamic_cast(key)) {
m_key = 0;
return;
}
- TQHBoxLayout* layout = new TQHBoxLayout(this);
- layout->setDirection( TQBoxLayout::LeftToRight );
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(this);
+ tqlayout->setDirection( TQBoxLayout::LeftToRight );
w_ref = new CKeyReferenceWidget(dynamic_cast(m_modules.first()), m_key, this);
- layout->addWidget(w_ref);
+ tqlayout->addWidget(w_ref);
connect(w_ref,TQT_SIGNAL(changed(CSwordVerseKey *)),TQT_SLOT(refChanged(CSwordVerseKey *)));
diff --git a/bibletime/frontend/keychooser/cbookkeychooser.cpp b/bibletime/frontend/keychooser/cbookkeychooser.cpp
index 34723ee..04a3a39 100644
--- a/bibletime/frontend/keychooser/cbookkeychooser.cpp
+++ b/bibletime/frontend/keychooser/cbookkeychooser.cpp
@@ -15,7 +15,7 @@
#include "frontend/cbtconfig.h"
//TQt includes
-#include
+#include
#include
TQMap boxes;
diff --git a/bibletime/frontend/keychooser/cbooktreechooser.cpp b/bibletime/frontend/keychooser/cbooktreechooser.cpp
index 3f972eb..5ac18ae 100644
--- a/bibletime/frontend/keychooser/cbooktreechooser.cpp
+++ b/bibletime/frontend/keychooser/cbooktreechooser.cpp
@@ -15,7 +15,7 @@
#include "frontend/cbtconfig.h"
//TQt includes
-#include
+#include
#include
#include
#include
@@ -135,10 +135,10 @@ m_key( dynamic_cast(key) ) {
}
//now setup the keychooser widgets
- TQHBoxLayout* layout = new TQHBoxLayout(this);
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(this);
m_treeView = new KListView(this);
- layout->addWidget(m_treeView);
+ tqlayout->addWidget(m_treeView);
m_treeView->addColumn("Tree");
m_treeView->header()->hide();
m_treeView->setSorting(-1);
@@ -291,7 +291,7 @@ void CBookTreeChooser::show() {
if (!m_treeView->childCount()) {
KApplication::setOverrideCursor(WaitCursor);
setupTree(); //create the first level of the tree structure
- m_treeView->resize(m_treeView->sizeHint());
+ m_treeView->resize(m_treeView->tqsizeHint());
KApplication::restoreOverrideCursor();
}
}
diff --git a/bibletime/frontend/keychooser/ckeychooserwidget.cpp b/bibletime/frontend/keychooser/ckeychooserwidget.cpp
index 7caaf6f..01a7b37 100644
--- a/bibletime/frontend/keychooser/ckeychooserwidget.cpp
+++ b/bibletime/frontend/keychooser/ckeychooserwidget.cpp
@@ -22,7 +22,7 @@
#include
#include
#include
-#include
+#include
#include
#include
#include
@@ -147,7 +147,7 @@ void CKeyChooserWidget::reset(TQStringList *list, int index, bool do_emit) {
oldKey = TQString();
// m_comboBox->setUpdatesEnabled(false);
- //DON'T REMOVE THE HIDE: Otherwise TQComboBox's sizeHint() function won't work properly
+ //DON'T REMOVE THE HIDE: Otherwise TQComboBox's tqsizeHint() function won't work properly
m_comboBox->hide();
m_comboBox->clear();
if (list) {
@@ -168,8 +168,8 @@ void CKeyChooserWidget::reset(TQStringList *list, int index, bool do_emit) {
emit changed(m_comboBox->currentItem());
}
- const TQSize dummySize = m_comboBox->sizeHint(); //without this function call the combo box won't be properly sized!
- //DON'T REMOVE OR MOVE THE show()! Otherwise TQComboBox's sizeHint() function won't work properly!
+ const TQSize dummySize = m_comboBox->tqsizeHint(); //without this function call the combo box won't be properly sized!
+ //DON'T REMOVE OR MOVE THE show()! Otherwise TQComboBox's tqsizeHint() function won't work properly!
m_comboBox->show();
// m_comboBox->setFont( m_comboBox->font() );
diff --git a/bibletime/frontend/keychooser/ckeychooserwidget.h b/bibletime/frontend/keychooser/ckeychooserwidget.h
index d774f66..4c14381 100644
--- a/bibletime/frontend/keychooser/ckeychooserwidget.h
+++ b/bibletime/frontend/keychooser/ckeychooserwidget.h
@@ -44,7 +44,7 @@ public:
/**
* Returns the size this widget would like to have.
*/
- // virtual TQSize sizeHint() const;
+ // virtual TQSize tqsizeHint() const;
protected:
/**
diff --git a/bibletime/frontend/keychooser/ckeyreferencewidget.h b/bibletime/frontend/keychooser/ckeyreferencewidget.h
index ff7b675..84eed2e 100644
--- a/bibletime/frontend/keychooser/ckeyreferencewidget.h
+++ b/bibletime/frontend/keychooser/ckeyreferencewidget.h
@@ -16,7 +16,7 @@
#include "backend/cswordbiblemoduleinfo.h"
#include
-#include
+#include
#include
#include
diff --git a/bibletime/frontend/keychooser/clexiconkeychooser.cpp b/bibletime/frontend/keychooser/clexiconkeychooser.cpp
index f744ebe..4b2f306 100644
--- a/bibletime/frontend/keychooser/clexiconkeychooser.cpp
+++ b/bibletime/frontend/keychooser/clexiconkeychooser.cpp
@@ -25,7 +25,7 @@
//TQt includes
#include
-#include
+#include
#include
//KDE includes
@@ -37,7 +37,7 @@ m_key(dynamic_cast(key)) {
setModules(modules, false);
- //we use a layout because the key chooser should be resized to full size
+ //we use a tqlayout because the key chooser should be resized to full size
m_layout = new TQHBoxLayout(this, TQBoxLayout::LeftToRight);
m_layout->setResizeMode(TQLayout::FreeResize);
diff --git a/bibletime/frontend/keychooser/crefselectdialog.cpp b/bibletime/frontend/keychooser/crefselectdialog.cpp
index 513975e..56c26d7 100644
--- a/bibletime/frontend/keychooser/crefselectdialog.cpp
+++ b/bibletime/frontend/keychooser/crefselectdialog.cpp
@@ -12,7 +12,7 @@
#include "crefselectdialog.h"
// QT
-#include "layout.h"
+#include "tqlayout.h"
#include "tqlineedit.h"
#include "tqlabel.h"
@@ -33,15 +33,15 @@
//{
// m_page = new TQWidget( this );
// m_placeholder = new TQWidget( m_page);
-// TQVBoxLayout* layout = new TQVBoxLayout( m_page, 0, spacingHint());
+// TQVBoxLayout* tqlayout = new TQVBoxLayout( m_page, 0, spacingHint());
// m_lineedit = new TQLineEdit( TQString(), m_page, "select" );
// m_lineedit->setMinimumWidth(fontMetrics().maxWidth()*8);
//
-// TQHBoxLayout* hlayout = new TQHBoxLayout(m_page, 0, spacingHint());
-// hlayout->addWidget(new TQLabel(i18n("Verse key:"), m_page));
-// hlayout->addWidget(m_lineedit);
-// layout->addItem(hlayout);
-// layout->addWidget(m_placeholder);
+// TQHBoxLayout* htqlayout = new TQHBoxLayout(m_page, 0, spacingHint());
+// htqlayout->addWidget(new TQLabel(i18n("Verse key:"), m_page));
+// htqlayout->addWidget(m_lineedit);
+// tqlayout->addItem(htqlayout);
+// tqlayout->addWidget(m_placeholder);
//
// m_chooser = NULL;
// m_oldParent = NULL;
diff --git a/bibletime/frontend/keychooser/cscrollerwidgetset.cpp b/bibletime/frontend/keychooser/cscrollerwidgetset.cpp
index 2a01d98..5054a6b 100644
--- a/bibletime/frontend/keychooser/cscrollerwidgetset.cpp
+++ b/bibletime/frontend/keychooser/cscrollerwidgetset.cpp
@@ -22,14 +22,14 @@
#include
#include
#include
-#include
+#include
#include
#include
#include
#include
#include
#include
-#include
+#include
const unsigned int WIDTH = 16;
const unsigned int ARROW_HEIGHT = 12;
@@ -37,9 +37,9 @@ const unsigned int MOVER_HEIGHT = 6;
CScrollerWidgetSet::CScrollerWidgetSet(TQWidget *parent, const char *name) : TQWidget(parent,name) {
m_layout = new TQVBoxLayout(this);
- m_layout->setAlignment(TQt::AlignHCenter | TQt::AlignCenter);
+ m_layout->tqsetAlignment(TQt::AlignHCenter | TQt::AlignCenter);
- //setAlignment(TQt::AlignHCenter | TQt::AlignCenter);
+ //tqsetAlignment(TQt::AlignHCenter | TQt::AlignCenter);
btn_up = new TQToolButton( UpArrow, this, "btn_up" );
btn_up->setFixedSize(WIDTH, ARROW_HEIGHT);
diff --git a/bibletime/frontend/keychooser/cscrollerwidgetset.h b/bibletime/frontend/keychooser/cscrollerwidgetset.h
index b95b264..75d710a 100644
--- a/bibletime/frontend/keychooser/cscrollerwidgetset.h
+++ b/bibletime/frontend/keychooser/cscrollerwidgetset.h
@@ -15,8 +15,8 @@
#include
#include
#include
-#include
-#include
+#include
+#include
#include
#include "cscrollbutton.h"
diff --git a/bibletime/frontend/kstartuplogo.cpp b/bibletime/frontend/kstartuplogo.cpp
index 847639a..4337d1c 100644
--- a/bibletime/frontend/kstartuplogo.cpp
+++ b/bibletime/frontend/kstartuplogo.cpp
@@ -15,7 +15,7 @@
//TQt includes
#include
#include
-#include
+#include
#include
//KDE includes
@@ -67,7 +67,7 @@ KStartupLogo::KStartupLogo()
//Please not change the margin
textLabel = new TQLabel(this);
- textLabel->setGeometry(0,pm.height(),pm.width(),textLabel->sizeHint().height()+10);
+ textLabel->setGeometry(0,pm.height(),pm.width(),textLabel->tqsizeHint().height()+10);
textLabel->setBackgroundColor( TQColor("#0d6de9") );
textLabel->setFrameStyle(TQFrame::Panel | TQFrame::Plain);
textLabel->setLineWidth(1);
@@ -94,7 +94,7 @@ KStartupLogo::KStartupLogo()
void KStartupLogo::setText(const TQString text) {
//Please not make the text bold & let the first character be blank
- textLabel->setText( TQString::fromLatin1(" %1").arg(text) );
+ textLabel->setText( TQString::tqfromLatin1(" %1").tqarg(text) );
KApplication::kApplication()->processEvents();
}
diff --git a/bibletime/frontend/mainindex/cindexitem.cpp b/bibletime/frontend/mainindex/cindexitem.cpp
index 93d8f92..aa50f8d 100644
--- a/bibletime/frontend/mainindex/cindexitem.cpp
+++ b/bibletime/frontend/mainindex/cindexitem.cpp
@@ -38,7 +38,7 @@
#include
#include
#include
-#include
+#include
//KDE includes
#include
@@ -284,9 +284,9 @@ void CBookmarkItem::update() {
setMultiLinesEnabled(true);
setPixmap(0,SmallIcon(CResMgr::mainIndex::bookmark::icon,16));
- const TQString title = TQString::fromLatin1("%1 (%2)")
- .arg(key())
- .arg(module() ? module()->name() : i18n("unknown"));
+ const TQString title = TQString::tqfromLatin1("%1 (%2)")
+ .tqarg(key())
+ .tqarg(module() ? module()->name() : i18n("unknown"));
setText(0, title);
}
@@ -325,19 +325,19 @@ const TQString CBookmarkItem::toolTip() {
Q_ASSERT(k.get());
if (fontPair.first) { //use a special font
qWarning("using a font, %s", TQString(fontPair.second.family()).latin1());
- ret = TQString::fromLatin1("%1 (%2)
%3
%5")
- .arg(key())
- .arg(module()->name())
- .arg(description())
- .arg(fontPair.second.family())
- .arg(k->renderedText());
+ ret = TQString::tqfromLatin1("%1 (%2)
%3
%5")
+ .tqarg(key())
+ .tqarg(module()->name())
+ .tqarg(description())
+ .tqarg(fontPair.second.family())
+ .tqarg(k->renderedText());
}
else {
- ret = TQString::fromLatin1("%1 (%2)
%3
%4")
- .arg(key())
- .arg(module()->name())
- .arg(description())
- .arg(k->renderedText());
+ ret = TQString::tqfromLatin1("%1 (%2)
%3
%4")
+ .tqarg(key())
+ .tqarg(module()->name())
+ .tqarg(description())
+ .tqarg(k->renderedText());
}
return ret;
@@ -652,19 +652,19 @@ void CTreeFolder::initTree() {
continue;
}
- if (language() == TQString::fromLatin1("*") || (language() != TQString::fromLatin1("*") && TQString::fromLatin1((*it)->module()->Lang()) == language()) )//right type and language!
+ if (language() == TQString::tqfromLatin1("*") || (language() != TQString::tqfromLatin1("*") && TQString::tqfromLatin1((*it)->module()->Lang()) == language()) )//right type and language!
usedModules.append(*it);
}
}
//we have now all modules we want to have
- if (language() == TQString::fromLatin1("*")) { //create subfolders for each language
+ if (language() == TQString::tqfromLatin1("*")) { //create subfolders for each language
TQStringList usedLangs;
// for (CSwordModuleInfo* m = usedModules.first(); m; m = usedModules.next()) {
/*ListCSwordModuleInfo::iterator*/
end_it = usedModules.end();
for (ListCSwordModuleInfo::iterator it(usedModules.begin()); it != end_it; ++it) {
- TQString lang = TQString::fromLatin1((*it)->module()->Lang());
+ TQString lang = TQString::tqfromLatin1((*it)->module()->Lang());
// if (lang.isEmpty())
// lang = ");
if (!usedLangs.contains(lang)) {
@@ -1138,8 +1138,8 @@ void CGlossaryFolder::initTree() {
}
//found a glossary
//ToDo: this is ugly code
- if (language() == TQString::fromLatin1("*")
- || (language() != TQString::fromLatin1("*")
+ if (language() == TQString::tqfromLatin1("*")
+ || (language() != TQString::tqfromLatin1("*")
&& (*it)->config(CSwordModuleInfo::GlossaryFrom) == fromLanguage()
&& (*it)->config(CSwordModuleInfo::GlossaryTo) == toLanguage()
)
@@ -1150,7 +1150,7 @@ void CGlossaryFolder::initTree() {
}
//we have now all modules we want to have
- if (language() == TQString::fromLatin1("*")) { //create subfolders for each language
+ if (language() == TQString::tqfromLatin1("*")) { //create subfolders for each language
typedef std::pair LanguagePair;
typedef TQValueList LanguagePairList;
diff --git a/bibletime/frontend/mainindex/cmainindex.cpp b/bibletime/frontend/mainindex/cmainindex.cpp
index 9558692..81b3405 100644
--- a/bibletime/frontend/mainindex/cmainindex.cpp
+++ b/bibletime/frontend/mainindex/cmainindex.cpp
@@ -51,7 +51,7 @@ void CMainIndex::ToolTip::maybeTip(const TQPoint& p) {
return;
}
- TQRect r = m_mainIndex->itemRect(i);
+ TQRect r = m_mainIndex->tqitemRect(i);
if (!r.isValid()) {
return;
}
diff --git a/bibletime/frontend/manageindicesform.cpp b/bibletime/frontend/manageindicesform.cpp
index cfe9eb6..dca1a9f 100644
--- a/bibletime/frontend/manageindicesform.cpp
+++ b/bibletime/frontend/manageindicesform.cpp
@@ -16,7 +16,7 @@
#include
#include
#include
-#include
+#include
#include
#include
@@ -32,7 +32,7 @@ ManageIndicesForm::ManageIndicesForm( TQWidget* parent, const char* name, WFlags
ManageIndicesFormLayout = new TQVBoxLayout( this, 0, 8, "ManageIndicesFormLayout");
m_labelFrame = new TQFrame( this, "m_labelFrame" );
- m_labelFrame->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, m_labelFrame->sizePolicy().hasHeightForWidth() ) );
+ m_labelFrame->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, m_labelFrame->sizePolicy().hasHeightForWidth() ) );
m_labelFrame->setFrameShape( TQFrame::NoFrame );
m_labelFrame->setFrameShadow( TQFrame::Plain );
ManageIndicesFormLayout->addWidget( m_labelFrame );
@@ -43,18 +43,18 @@ ManageIndicesForm::ManageIndicesForm( TQWidget* parent, const char* name, WFlags
m_moduleList = new KListView( this, "m_moduleList" );
ManageIndicesFormLayout->addWidget( m_moduleList );
- layout1 = new TQHBoxLayout( 0, 0, 6, "layout1");
+ tqlayout1 = new TQHBoxLayout( 0, 0, 6, "tqlayout1");
spacer1 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- layout1->addItem( spacer1 );
+ tqlayout1->addItem( spacer1 );
m_createIndicesButton = new TQPushButton( this, "m_createIndicesButton" );
- layout1->addWidget( m_createIndicesButton );
+ tqlayout1->addWidget( m_createIndicesButton );
m_deleteIndicesButton = new TQPushButton( this, "m_deleteIndicesButton" );
- layout1->addWidget( m_deleteIndicesButton );
- ManageIndicesFormLayout->addLayout( layout1 );
+ tqlayout1->addWidget( m_deleteIndicesButton );
+ ManageIndicesFormLayout->addLayout( tqlayout1 );
languageChange();
- resize( TQSize(415, 404).expandedTo(minimumSizeHint()) );
+ resize( TQSize(415, 404).expandedTo(tqminimumSizeHint()) );
clearWState( WState_Polished );
}
diff --git a/bibletime/frontend/manageindicesform.ui b/bibletime/frontend/manageindicesform.ui
index 06a6409..6172b04 100644
--- a/bibletime/frontend/manageindicesform.ui
+++ b/bibletime/frontend/manageindicesform.ui
@@ -62,7 +62,7 @@
- layout1
+ tqlayout1
@@ -78,7 +78,7 @@
Expanding
-
+
40
20
diff --git a/bibletime/frontend/searchdialog/cmodulechooser.cpp b/bibletime/frontend/searchdialog/cmodulechooser.cpp
index 8f45941..b31a363 100644
--- a/bibletime/frontend/searchdialog/cmodulechooser.cpp
+++ b/bibletime/frontend/searchdialog/cmodulechooser.cpp
@@ -24,10 +24,10 @@
#include
#include
#include
-#include
+#include
#include
#include
-#include
+#include
#include
#include
#include
@@ -283,10 +283,10 @@ void CModuleChooserDialog::initView() {
setButtonOKText(i18n("Use chosen work(s)"));
TQFrame* page = plainPage();
- TQHBoxLayout* layout = new TQHBoxLayout(page);
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(page);
m_moduleChooser = new CModuleChooser(page);
m_moduleChooser->setMinimumSize(320,400);
- layout->addWidget(m_moduleChooser);
+ tqlayout->addWidget(m_moduleChooser);
}
/** Initializes the connections of this dialog. */
diff --git a/bibletime/frontend/searchdialog/crangechooser.cpp b/bibletime/frontend/searchdialog/crangechooser.cpp
index 85988f7..4bad712 100644
--- a/bibletime/frontend/searchdialog/crangechooser.cpp
+++ b/bibletime/frontend/searchdialog/crangechooser.cpp
@@ -24,10 +24,10 @@
#include
#include
#include
-#include
+#include
#include
#include
-#include
+#include
#include
#include
#include
@@ -100,7 +100,7 @@ void CRangeChooserDialog::initView() {
m_rangeList = new KListView(plainPage());
m_rangeList->addColumn(i18n("Search range"));
- m_rangeList->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding));
+ m_rangeList->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding));
m_rangeList->setFullWidth(true);
m_rangeList->setSorting(0, true);
m_rangeList->header()->setClickEnabled(false);
@@ -123,7 +123,7 @@ void CRangeChooserDialog::initView() {
grid->addWidget(m_nameEdit,0,4);
label = new TQLabel(i18n("Edit current search range:"), plainPage());
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
m_rangeEdit = new TQTextEdit(plainPage());
m_rangeEdit->setTextFormat(TQt::PlainText);
grid->addMultiCellWidget(label,1,1,3,4);
diff --git a/bibletime/frontend/searchdialog/csearchanalysis.cpp b/bibletime/frontend/searchdialog/csearchanalysis.cpp
index c5ee6c6..09ed612 100644
--- a/bibletime/frontend/searchdialog/csearchanalysis.cpp
+++ b/bibletime/frontend/searchdialog/csearchanalysis.cpp
@@ -25,10 +25,10 @@
#include
#include
#include
-#include
+#include
#include
#include
-#include
+#include
#include
#include
#include
@@ -80,19 +80,19 @@ CSearchAnalysisDialog::~CSearchAnalysisDialog() {}
/** Initializes this dialog. */
void CSearchAnalysisDialog::initView() {
- TQVBoxLayout* layout = new TQVBoxLayout(plainPage(),0);
+ TQVBoxLayout* tqlayout = new TQVBoxLayout(plainPage(),0);
TQPushButton* button = new TQPushButton(plainPage(), "button");
button->setIconSet(SmallIconSet("filesave"));
button->setText(i18n("Save search analysis as HTML"));
- button->setFixedSize(button->sizeHint());
- layout->addWidget(button);
- layout->addSpacing(10);
+ button->setFixedSize(button->tqsizeHint());
+ tqlayout->addWidget(button);
+ tqlayout->addSpacing(10);
m_analysis = new CSearchAnalysis(TQT_TQOBJECT(plainPage()));
m_analysisView = new CSearchAnalysisView(m_analysis, plainPage());
m_analysisView->show();
- layout->addWidget(m_analysisView);
+ tqlayout->addWidget(m_analysisView);
connect(button, TQT_SIGNAL(clicked()), m_analysis, TQT_SLOT(saveAsHTML()));
}
@@ -160,7 +160,7 @@ void CSearchAnalysis::analyse(ListCSwordModuleInfo modules) {
moduleIndex = 0;
ListCSwordModuleInfo::iterator end_it = m_moduleList.end();
for (ListCSwordModuleInfo::iterator it(m_moduleList.begin()); it != end_it; ++it) {
- KApplication::kApplication()->processEvents( 10 ); //10 ms only
+ KApplication::kApplication()->tqprocessEvents( 10 ); //10 ms only
if (!m_lastPosList.contains(*it)) {
m_lastPosList.insert(*it,0);
}
@@ -381,7 +381,7 @@ int CSearchAnalysisItem::width() {
/** Returns the tooltip for this item. */
const TQString CSearchAnalysisItem::getToolTip() {
- TQString ret = TQString("%1
").arg(m_bookName);
+ TQString ret = TQString("%1
").tqarg(m_bookName);
ret += "";
//ToDo: Fix that loop
@@ -395,10 +395,10 @@ const TQString CSearchAnalysisItem::getToolTip() {
ret.append(
TQString("%2 | %3 (%4%) |
")
- .arg(TQString().sprintf("%02X%02X%02X",c.red(),c.green(),c.blue()))
- .arg(info ? info->name() : TQString())
- .arg( m_resultCountArray[i] )
- .arg( (info && m_resultCountArray[i])? ((double)m_resultCountArray[i] / (double)info->searchResult().Count())*(double)100 : 0.0, 0, 'g', 2)
+ .tqarg(TQString().sprintf("%02X%02X%02X",c.red(),c.green(),c.blue()))
+ .tqarg(info ? info->name() : TQString())
+ .tqarg( m_resultCountArray[i] )
+ .tqarg( (info && m_resultCountArray[i])? ((double)m_resultCountArray[i] / (double)info->searchResult().Count())*(double)100 : 0.0, 0, 'g', 2)
);
++i;
}
@@ -415,14 +415,14 @@ CSearchAnalysisView::CSearchAnalysisView(TQCanvas* canvas, TQWidget* parent)
: TQCanvasView(canvas, parent) {
setFocusPolicy(TQ_WheelFocus);
m_toolTip = new ToolTip(this);
- resize(sizeHint());
+ resize(tqsizeHint());
}
-/** Returns the sizeHint for this view */
-TQSize CSearchAnalysisView::sizeHint() {
+/** Returns the tqsizeHint for this view */
+TQSize CSearchAnalysisView::tqsizeHint() {
if ( parentWidget() )
- return parentWidget()->sizeHint();
- return TQCanvasView::sizeHint();
+ return parentWidget()->tqsizeHint();
+ return TQCanvasView::tqsizeHint();
}
/** No descriptions */
@@ -514,7 +514,7 @@ void CSearchAnalysisLegendItem::draw (TQPainter& painter) {
/** No descriptions */
void CSearchAnalysis::saveAsHTML() {
const TQString file = KFileDialog::getSaveFileName(TQString(),
- TQString("*.html | %1").arg(i18n("HTML files")),
+ TQString("*.html | %1").tqarg(i18n("HTML files")),
0,
i18n("Save Search Analysis"));
if (file.isNull()) {
diff --git a/bibletime/frontend/searchdialog/csearchanalysis.h b/bibletime/frontend/searchdialog/csearchanalysis.h
index 6a8d460..db734cd 100644
--- a/bibletime/frontend/searchdialog/csearchanalysis.h
+++ b/bibletime/frontend/searchdialog/csearchanalysis.h
@@ -187,11 +187,11 @@ public:
*/
CSearchAnalysisView(TQCanvas* canvas, TQWidget* parent);
/**
- * Returns the sizeHint for this view
+ * Returns the tqsizeHint for this view
* We give back the size of the parent widgetas default.
- * This is a reimplementation from TQCanvasView::sizeHint().
+ * This is a reimplementation from TQCanvasView::tqsizeHint().
*/
- virtual TQSize sizeHint();
+ virtual TQSize tqsizeHint();
/**
* Returns the item at position p.
* If there no item at that point return 0.
diff --git a/bibletime/frontend/searchdialog/csearchdialog.cpp b/bibletime/frontend/searchdialog/csearchdialog.cpp
index 8f97dae..d4a35ad 100644
--- a/bibletime/frontend/searchdialog/csearchdialog.cpp
+++ b/bibletime/frontend/searchdialog/csearchdialog.cpp
@@ -28,10 +28,10 @@
#include
#include
#include
-#include
+#include
#include
#include
-#include
+#include
#include
#include
#include
@@ -172,7 +172,7 @@ const ListCSwordModuleInfo CSearchDialog::modules() {
/** Sets the list of modules for the search. */
void CSearchDialog::setModules( const ListCSwordModuleInfo modules ) {
m_searchOptionsPage->setModules(modules);
- resize( sizeHint() );
+ resize( tqsizeHint() );
}
/** Returns the search text which is set currently. */
diff --git a/bibletime/frontend/searchdialog/csearchdialogpages.cpp b/bibletime/frontend/searchdialog/csearchdialogpages.cpp
index 3d30a23..790dd80 100644
--- a/bibletime/frontend/searchdialog/csearchdialogpages.cpp
+++ b/bibletime/frontend/searchdialog/csearchdialogpages.cpp
@@ -28,7 +28,7 @@
#include "util/ctoolclass.h"
//TQt includes
-#include
+#include
#include
#include
#include
@@ -73,7 +73,7 @@ void StrongsResultClass::initStrongsResults(void) {
count = result.Count();
if (!count)
return;
- KApplication::kApplication()->processEvents( 1 ); //1 ms only
+ KApplication::kApplication()->tqprocessEvents( 1 ); //1 ms only
srList.clear();
// for whatever reason the text "Parsing...translations." does not appear.
// this is not critical but the text is necessary to get the dialog box
@@ -85,7 +85,7 @@ void StrongsResultClass::initStrongsResults(void) {
progress->raise();
for (index = 0; index < count; index++){
progress->progressBar()->setProgress( int( (index*100) / count ) );
- KApplication::kApplication()->processEvents( 1 ); //1 ms only
+ KApplication::kApplication()->tqprocessEvents( 1 ); //1 ms only
key = TQString::fromUtf8(result.GetElement(index)->getText());
text = render.renderSingleKey(key, modules, settings);
@@ -662,12 +662,12 @@ void CSearchOptionsPage::setModules( ListCSwordModuleInfo modules ) {
m_modules.append( *it );
t.append( (*it)->name() );
if (*it != modules.last()) {
- t += TQString::fromLatin1(", "); // so that it will become a readable list (WLC, LXX, GerLut...)
+ t += TQString::tqfromLatin1(", "); // so that it will become a readable list (WLC, LXX, GerLut...)
}
}
};
m_modulesLabel->setText(t);
- emit( sigSetSearchButtonStatus( (modules.count() != 0) ) );
+ emit( sigSetSearchButtontqStatus( (modules.count() != 0) ) );
}
/** Opens the modules chooser dialog. */
diff --git a/bibletime/frontend/searchdialog/csearchdialogpages.h b/bibletime/frontend/searchdialog/csearchdialogpages.h
index 0a7e482..fc39023 100644
--- a/bibletime/frontend/searchdialog/csearchdialogpages.h
+++ b/bibletime/frontend/searchdialog/csearchdialogpages.h
@@ -160,8 +160,8 @@ public:
*/
void setSearchResult(ListCSwordModuleInfo modules);
- TQSize sizeHint() const { return baseSize(); }
- TQSize minimumSizeHint() const { return minimumSize(); }
+ TQSize tqsizeHint() const { return baseSize(); }
+ TQSize tqminimumSizeHint() const { return tqminimumSize(); }
public slots: // Public slots
/**
@@ -241,8 +241,8 @@ public:
*/
//const CSwordModuleSearch::scopeType scopeType();
- TQSize sizeHint() const { return baseSize(); }
- TQSize minimumSizeHint() const { return minimumSize(); }
+ TQSize tqsizeHint() const { return baseSize(); }
+ TQSize tqminimumSizeHint() const { return tqminimumSize(); }
bool hasSearchScope();
private:
@@ -285,7 +285,7 @@ protected slots: // Protected slots
void syntaxHelp();
signals:
- void sigSetSearchButtonStatus(bool);
+ void sigSetSearchButtontqStatus(bool);
};
} //end of namespace Search::Options
diff --git a/bibletime/frontend/searchdialog/searchoptionsform.cpp b/bibletime/frontend/searchdialog/searchoptionsform.cpp
index 1966a71..dc6a140 100644
--- a/bibletime/frontend/searchdialog/searchoptionsform.cpp
+++ b/bibletime/frontend/searchdialog/searchoptionsform.cpp
@@ -15,7 +15,7 @@
#include
#include
#include
-#include
+#include
#include
#include
@@ -28,7 +28,7 @@ SearchOptionsForm::SearchOptionsForm( TQWidget* parent, const char* name, WFlags
{
if ( !name )
setName( "SearchOptionsForm" );
- setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth() ) );
+ tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth() ) );
setMinimumSize( TQSize( 260, 130 ) );
setBaseSize( TQSize( 420, 150 ) );
SearchOptionsFormLayout = new TQHBoxLayout( this, 0, 3, "SearchOptionsFormLayout");
@@ -36,13 +36,13 @@ SearchOptionsForm::SearchOptionsForm( TQWidget* parent, const char* name, WFlags
searchGroupBox = new TQGroupBox( this, "searchGroupBox" );
searchGroupBox->setMargin( 0 );
searchGroupBox->setColumnLayout(0, Qt::Vertical );
- searchGroupBox->layout()->setSpacing( 3 );
- searchGroupBox->layout()->setMargin( 6 );
- searchGroupBoxLayout = new TQGridLayout( searchGroupBox->layout() );
- searchGroupBoxLayout->setAlignment( TQt::AlignTop );
+ searchGroupBox->tqlayout()->setSpacing( 3 );
+ searchGroupBox->tqlayout()->setMargin( 6 );
+ searchGroupBoxLayout = new TQGridLayout( searchGroupBox->tqlayout() );
+ searchGroupBoxLayout->tqsetAlignment( TQt::AlignTop );
m_searchTextLabel = new TQLabel( searchGroupBox, "m_searchTextLabel" );
- m_searchTextLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_searchTextLabel->sizePolicy().hasHeightForWidth() ) );
+ m_searchTextLabel->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_searchTextLabel->sizePolicy().hasHeightForWidth() ) );
searchGroupBoxLayout->addWidget( m_searchTextLabel, 0, 0 );
@@ -59,17 +59,17 @@ SearchOptionsForm::SearchOptionsForm( TQWidget* parent, const char* name, WFlags
searchGroupBoxLayout->addWidget( m_chooseRangeButton, 2, 2 );
m_searchScopeLabel = new TQLabel( searchGroupBox, "m_searchScopeLabel" );
- m_searchScopeLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_searchScopeLabel->sizePolicy().hasHeightForWidth() ) );
+ m_searchScopeLabel->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_searchScopeLabel->sizePolicy().hasHeightForWidth() ) );
searchGroupBoxLayout->addWidget( m_searchScopeLabel, 2, 0 );
m_rangeChooserCombo = new KComboBox( FALSE, searchGroupBox, "m_rangeChooserCombo" );
- m_rangeChooserCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_rangeChooserCombo->sizePolicy().hasHeightForWidth() ) );
+ m_rangeChooserCombo->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_rangeChooserCombo->sizePolicy().hasHeightForWidth() ) );
searchGroupBoxLayout->addWidget( m_rangeChooserCombo, 2, 1 );
m_searchTextCombo = new KHistoryCombo( searchGroupBox, "m_searchTextCombo" );
- m_searchTextCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_searchTextCombo->sizePolicy().hasHeightForWidth() ) );
+ m_searchTextCombo->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_searchTextCombo->sizePolicy().hasHeightForWidth() ) );
m_searchTextCombo->setFocusPolicy( KHistoryCombo::WheelFocus );
m_searchTextCombo->setSizeLimit( 25 );
m_searchTextCombo->setInsertionPolicy( KHistoryCombo::AtBottom );
@@ -78,14 +78,14 @@ SearchOptionsForm::SearchOptionsForm( TQWidget* parent, const char* name, WFlags
searchGroupBoxLayout->addWidget( m_searchTextCombo, 0, 1 );
m_modulesLabel = new TQLabel( searchGroupBox, "m_modulesLabel" );
- m_modulesLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_modulesLabel->sizePolicy().hasHeightForWidth() ) );
+ m_modulesLabel->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_modulesLabel->sizePolicy().hasHeightForWidth() ) );
m_modulesLabel->setTextFormat( TQLabel::RichText );
- m_modulesLabel->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
+ m_modulesLabel->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
searchGroupBoxLayout->addMultiCellWidget( m_modulesLabel, 1, 1, 0, 1 );
SearchOptionsFormLayout->addWidget( searchGroupBox );
languageChange();
- resize( TQSize(648, 130).expandedTo(minimumSizeHint()) );
+ resize( TQSize(648, 130).expandedTo(tqminimumSizeHint()) );
clearWState( WState_Polished );
}
diff --git a/bibletime/frontend/searchdialog/searchoptionsform.ui b/bibletime/frontend/searchdialog/searchoptionsform.ui
index 2872b1f..bbbe19d 100644
--- a/bibletime/frontend/searchdialog/searchoptionsform.ui
+++ b/bibletime/frontend/searchdialog/searchoptionsform.ui
@@ -20,7 +20,7 @@
0
-
+
260
130
@@ -180,7 +180,7 @@
RichText
-
+
WordBreak|AlignVCenter|AlignLeft
diff --git a/bibletime/frontend/searchdialog/searchresultsform.cpp b/bibletime/frontend/searchdialog/searchresultsform.cpp
index 1478135..3cd254c 100644
--- a/bibletime/frontend/searchdialog/searchresultsform.cpp
+++ b/bibletime/frontend/searchdialog/searchresultsform.cpp
@@ -14,7 +14,7 @@
#include
#include
#include
-#include
+#include