").tqarg(printItem->getAlternativeContent());
+ TQString ret = TQString::fromLatin1("
%1
").arg(printItem->getAlternativeContent());
if (i.hasChildItems()) {
KeyTree const * tree = i.childList();
diff --git a/bibletime/frontend/cprofile.cpp b/bibletime/frontend/cprofile.cpp
index bacdda9..dbca236 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_tqgeometry(10,20,640,480) {
+m_geometry(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 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()));
+ 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()));
content.appendChild(mainWindow);
}
@@ -253,14 +253,14 @@ const bool CProfile::save(TQPtrList windows) {
window.setAttribute("hasFocus", p->hasFocus());
//save geomtery
- 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 );
+ 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 );
TQDomElement modules = doc.createElement("MODULES");
modules.setAttribute("separator", "|");
@@ -384,14 +384,14 @@ void CProfile::setMaximized( const bool maximized ) {
m_maximized = maximized;
}
-/** Returns the tqgeometry of the main window */
-const TQRect CProfile::tqgeometry() {
- return m_tqgeometry;
+/** Returns the geometry of the main window */
+const TQRect CProfile::geometry() {
+ return m_geometry;
}
/** Stes the geoemtry of the main window */
void CProfile::setGeometry( const TQRect rect ) {
- m_tqgeometry = rect;
+ m_geometry = rect;
}
} //end of namespace Profile
diff --git a/bibletime/frontend/cprofile.h b/bibletime/frontend/cprofile.h
index 9ef59fd..ffded07 100644
--- a/bibletime/frontend/cprofile.h
+++ b/bibletime/frontend/cprofile.h
@@ -78,9 +78,9 @@ public:
*/
void setGeometry( const TQRect rect );
/**
- * Returns the tqgeometry of the main window
+ * Returns the geometry of the main window
*/
- const TQRect tqgeometry();
+ const TQRect geometry();
private:
/**
@@ -94,7 +94,7 @@ private:
TQString m_filename;
bool m_fullscreen;
bool m_maximized;
- TQRect m_tqgeometry;
+ TQRect m_geometry;
};
} //end of namespace Profile
diff --git a/bibletime/frontend/cprofilewindow.cpp b/bibletime/frontend/cprofilewindow.cpp
index 3d0ae6b..051ff08 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::tqgeometry() const {
+const TQRect& CProfileWindow::geometry() const {
return m_windowGeometry;
}
diff --git a/bibletime/frontend/cprofilewindow.h b/bibletime/frontend/cprofilewindow.h
index 928f9f9..bdc245b 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& tqgeometry() const;
+ const TQRect& geometry() 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 6c83686..e7bfb5c 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")
- .tqarg(
+ .arg(
CReferenceManager::encodeHyperlink(
module->name(),
item.key(),
CReferenceManager::typeFromModule(module->type())
)
)
- .tqarg(linkText);
+ .arg(linkText);
}
return TQString();
diff --git a/bibletime/frontend/cswordsetupdialog.cpp b/bibletime/frontend/cswordsetupdialog.cpp
index c527325..11e838f 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* tqlayout = new TQGridLayout(page, 6, 4);
- tqlayout->setMargin(5);
+ TQGridLayout* layout = new TQGridLayout(page, 6, 4);
+ layout->setMargin(5);
- tqlayout->setSpacing(10);
- tqlayout->setColStretch(0,1);
- tqlayout->setRowStretch(5,1);
+ layout->setSpacing(10);
+ layout->setColStretch(0,1);
+ layout->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.")
);
- tqlayout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
+ layout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
TQString swordConfPath = BTInstallMgr::Tool::LocalConfig::swordConfigFilename();
- TQLabel* confPathLabel = new TQLabel(i18n("Your bookshelf configuration file is %1").tqarg(swordConfPath), page);
- tqlayout->addMultiCellWidget(confPathLabel, 1,1,0,3);
+ TQLabel* confPathLabel = new TQLabel(i18n("Your bookshelf configuration file is %1").arg(swordConfPath), page);
+ layout->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()));
- tqlayout->addMultiCellWidget(m_swordPathListBox, 2,5,0,1);
+ layout->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()));
- tqlayout->addWidget(m_swordEditPathButton, 2, 3);
+ layout->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()));
- tqlayout->addWidget(m_swordAddPathButton, 3,3);
+ layout->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()));
- tqlayout->addWidget(m_swordRemovePathButton, 4,3);
+ layout->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* vboxtqlayout = new TQVBoxLayout(m_installPage);
- TQHBoxLayout* hboxtqlayout = new TQHBoxLayout();
- hboxtqlayout->setAutoAdd( true );
+ TQVBoxLayout* vboxlayout = new TQVBoxLayout(m_installPage);
+ TQHBoxLayout* hboxlayout = new TQHBoxLayout();
+ hboxlayout->setAutoAdd( true );
- vboxtqlayout->addLayout(hboxtqlayout);
+ vboxlayout->addLayout(hboxlayout);
m_installWidgetStack = new TQWidgetStack(m_installPage);
- hboxtqlayout->addWidget(m_installWidgetStack);
+ hboxlayout->addWidget(m_installWidgetStack);
m_installSourcePage = new TQWidget(0);
m_installWidgetStack->addWidget(m_installSourcePage);
// m_installSourcePage->setMinimumSize(500,400);
- TQGridLayout* tqlayout = new TQGridLayout(m_installSourcePage, 7, 3);
- tqlayout->setMargin(5);
- tqlayout->setSpacing(10);
- tqlayout->setRowStretch(6,5);
- tqlayout->setColStretch(0,5);
+ TQGridLayout* layout = new TQGridLayout(m_installSourcePage, 7, 3);
+ layout->setMargin(5);
+ layout->setSpacing(10);
+ layout->setRowStretch(6,5);
+ layout->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!")
);
- tqlayout->addMultiCellWidget(installLabel, 0,0,0,2);
+ layout->addMultiCellWidget(installLabel, 0,0,0,2);
- TQLabel* sourceHeadingLabel = new TQLabel(TQString("%1").tqarg(i18n("Select library")), m_installSourcePage);
- tqlayout->addMultiCellWidget(sourceHeadingLabel, 1,1,0,1);
+ TQLabel* sourceHeadingLabel = new TQLabel(TQString("%1").arg(i18n("Select library")), m_installSourcePage);
+ layout->addMultiCellWidget(sourceHeadingLabel, 1,1,0,1);
m_sourceCombo = new TQComboBox(m_installSourcePage);
- tqlayout->addWidget(m_sourceCombo, 2, 0);
+ layout->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()));
- tqlayout->addWidget(deleteSourceButton, 2, 1, TQt::AlignLeft);
+ layout->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()));
- tqlayout->addWidget(addSourceButton, 2, 2, TQt::AlignLeft);
+ layout->addWidget(addSourceButton, 2, 2, TQt::AlignLeft);
m_sourceLabel = new TQLabel(m_installSourcePage);
- tqlayout->addMultiCellWidget(m_sourceLabel, 3,3,0,1);
+ layout->addMultiCellWidget(m_sourceLabel, 3,3,0,1);
- TQLabel* targetHeadingLabel = new TQLabel(TQString("%1").tqarg(i18n("Select bookshelf path")), m_installSourcePage);
- tqlayout->addMultiCellWidget(targetHeadingLabel, 4,4,0,1);
+ TQLabel* targetHeadingLabel = new TQLabel(TQString("%1").arg(i18n("Select bookshelf path")), m_installSourcePage);
+ layout->addMultiCellWidget(targetHeadingLabel, 4,4,0,1);
m_targetCombo = new TQComboBox(m_installSourcePage);
- tqlayout->addWidget(m_targetCombo, 5, 0);
+ layout->addWidget(m_targetCombo, 5, 0);
m_targetLabel = new TQLabel(m_installSourcePage);
- tqlayout->addMultiCellWidget(m_targetLabel, 6,6,0,0,TQt::AlignTop);
+ layout->addMultiCellWidget(m_targetLabel, 6,6,0,0,TQt::AlignTop);
- //part beloew main tqlayout with the back/next buttons
+ //part beloew main layout with the back/next buttons
TQHBoxLayout* myHBox = new TQHBoxLayout();
- vboxtqlayout->addLayout(myHBox);
+ vboxlayout->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* tqlayout = new TQGridLayout(page, 4, 4);
- tqlayout->setMargin(5);
+ TQGridLayout* layout = new TQGridLayout(page, 4, 4);
+ layout->setMargin(5);
- tqlayout->setSpacing(10);
- tqlayout->setColStretch(1,1);
- tqlayout->setRowStretch(2,1);
+ layout->setSpacing(10);
+ layout->setColStretch(1,1);
+ layout->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.")
);
- tqlayout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
+ layout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
- TQLabel* headingLabel = new TQLabel(TQString("%1").tqarg(i18n("Select works to be uninstalled")), page);
- tqlayout->addMultiCellWidget(headingLabel, 1, 1, 0, 3);
+ TQLabel* headingLabel = new TQLabel(TQString("%1").arg(i18n("Select works to be uninstalled")), page);
+ layout->addMultiCellWidget(headingLabel, 1, 1, 0, 3);
m_removeModuleListView = new CSwordSetupModuleListView(page, false);
- tqlayout->addMultiCellWidget( m_removeModuleListView, 2,2,0,3);
+ layout->addMultiCellWidget( m_removeModuleListView, 2,2,0,3);
m_removeRemoveButton = new TQPushButton(i18n("Remove selected work(s)"), page);
m_removeRemoveButton->setIconSet( SmallIcon("edittrash", 16) );
- tqlayout->addWidget(m_removeRemoveButton, 3, 3, TQt::AlignRight);
+ layout->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").tqarg(is.source.c_str()).tqarg(is.directory.c_str());
+ url = TQString("ftp://%1%2").arg(is.source.c_str()).arg(is.directory.c_str());
}
else {
- url = TQString("%1").tqarg(is.directory.c_str());
+ url = TQString("%1").arg(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?").tqarg(moduleList.join(", "));
+ "Do you really want to remove them from your system?").arg(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::tqfromLatin1(backend()->prefixPath);
+ prefixPath = TQString::fromLatin1(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* tqlayout = new TQGridLayout(m_installModuleListPage, 7, 2);
- tqlayout->setMargin(5);
- tqlayout->setSpacing(10);
+ TQGridLayout* layout = new TQGridLayout(m_installModuleListPage, 7, 2);
+ layout->setMargin(5);
+ layout->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.")
);
- tqlayout->addMultiCellWidget(installLabel, 0,0,0,1);
- tqlayout->setRowStretch(0,0);
+ layout->addMultiCellWidget(installLabel, 0,0,0,1);
+ layout->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);
- tqlayout->addMultiCellWidget( m_installModuleListView, 1,6,0,1);
- tqlayout->setColStretch(0,5);
- tqlayout->setRowStretch(1,5);
+ layout->addMultiCellWidget( m_installModuleListView, 1,6,0,1);
+ layout->setColStretch(0,5);
+ layout->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?").tqarg(moduleList.join(", "));
+ Do you really want to install them on your system?").arg(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::tqfromLatin1(backend()->prefixPath);
+ prefixPath = TQString::fromLatin1(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").tqarg(m_installingModule).tqarg(total) );
+ m_progressDialog->setLabel( i18n("[%1]: %2% complete").arg(m_installingModule).arg(total) );
}
KApplication::kApplication()->processEvents();
}
diff --git a/bibletime/frontend/cswordsetupinstallsourcesdialog.cpp b/bibletime/frontend/cswordsetupinstallsourcesdialog.cpp
index 8778e8b..10308a9 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* tqlayout = new TQGridLayout( mainLayout, 3, 3 );
- tqlayout->setSpacing( 5 );
+ TQGridLayout* layout = new TQGridLayout( mainLayout, 3, 3 );
+ layout->setSpacing( 5 );
label = new TQLabel(i18n("Type"), this);
- tqlayout->addWidget( label, 0, 0);
+ layout->addWidget( label, 0, 0);
m_serverLabel = new TQLabel(i18n("Server"), this);
- tqlayout->addWidget( m_serverLabel, 0, 1);
+ layout->addWidget( m_serverLabel, 0, 1);
label = new TQLabel(i18n("Path"), this);
- tqlayout->addWidget( label, 0, 2 );
+ layout->addWidget( label, 0, 2 );
m_protocolCombo = new TQComboBox( this );
- tqlayout->addWidget(m_protocolCombo, 1, 0);
+ layout->addWidget(m_protocolCombo, 1, 0);
m_protocolCombo->insertItem( PROTO_FTP );
m_protocolCombo->insertItem( PROTO_FILE );
m_serverEdit = new TQLineEdit( this );
- tqlayout->addWidget( m_serverEdit, 1, 1 );
+ layout->addWidget( m_serverEdit, 1, 1 );
m_serverEdit->setText("ftp.crosswire.org");
m_pathEdit = new TQLineEdit( this );
- tqlayout->addWidget( m_pathEdit, 1, 2 );
+ layout->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 14cffe5..9b80cb0 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->tqitemRect(i);
+ const TQRect rect = m_parent->itemRect(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 bc3aad9..485a6c4 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::tqclipboard();
+ TQClipboard* cb = KApplication::clipboard();
cb->setText(content);
return true;
}
diff --git a/bibletime/frontend/display/chtmlreaddisplay.cpp b/bibletime/frontend/display/chtmlreaddisplay.cpp
index 2e8b126..06cd21d 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)")
- .tqarg()
- .tqarg(key->key())
- .tqarg(key->module()->name());*/
+ .arg()
+ .arg(key->key())
+ .arg(key->module()->name());*/
}
return TQString();
}
diff --git a/bibletime/frontend/display/chtmlwritedisplay.cpp b/bibletime/frontend/display/chtmlwritedisplay.cpp
index 73997db..b1a74c8 100644
--- a/bibletime/frontend/display/chtmlwritedisplay.cpp
+++ b/bibletime/frontend/display/chtmlwritedisplay.cpp
@@ -66,19 +66,19 @@ void CHTMLWriteDisplay::toggleUnderline() {
void CHTMLWriteDisplay::alignLeft() {
- tqsetAlignment(TQt::AlignLeft);
+ setAlignment(TQt::AlignLeft);
};
void CHTMLWriteDisplay::alignCenter() {
- tqsetAlignment(TQt::AlignHCenter);
+ setAlignment(TQt::AlignHCenter);
};
void CHTMLWriteDisplay::alignRight() {
- tqsetAlignment(TQt::AlignRight);
+ setAlignment(TQt::AlignRight);
};
-/** The text's tqalignment changed. Enable the right buttons. */
+/** The text's alignment 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 tqalignment %i", a);
+ qWarning("unknown alignment %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->tqsizeHint().width(), m_colorButton);
+ bar->insertWidget(50, m_colorButton->sizeHint().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 tqalignment buttons
+ (new KActionSeparator())->plug(bar); //seperate formatting from alignment 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( tqalignment() );
+ slotAlignmentChanged( alignment() );
slotColorChanged( color() );
}
diff --git a/bibletime/frontend/display/chtmlwritedisplay.h b/bibletime/frontend/display/chtmlwritedisplay.h
index 9058e4b..c95ce4c 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 tqalignment changed. Enable the right buttons.
+ * The text's alignment changed. Enable the right buttons.
*/
void slotAlignmentChanged( int );
/**
diff --git a/bibletime/frontend/display/cplainwritedisplay.cpp b/bibletime/frontend/display/cplainwritedisplay.cpp
index 012591a..ec4dd2e 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::tqfromLatin1("%1\n(%2, %3)\n").tqarg(moduleText).tqarg((*it).bookmarkKey()).tqarg((*it).bookmarkModule());
+ const TQString text = TQString::fromLatin1("%1\n(%2, %3)\n").arg(moduleText).arg((*it).bookmarkKey()).arg((*it).bookmarkModule());
placeCursor( e->pos() );
insert( text );
diff --git a/bibletime/frontend/display/cplainwritedisplay.h b/bibletime/frontend/display/cplainwritedisplay.h
index 897eb85..4b82fa3 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 e78c1d2..b4b32fa 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()->setItemtqStatus(i,true);
+ displaySettingsButton()->setItemStatus(i,true);
}
else {
- displaySettingsButton()->setItemtqStatus(i,false);
+ displaySettingsButton()->setItemStatus(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()->itemtqStatus(i)) //item is checked
+ if (displaySettingsButton()->itemStatus(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 8033ea1..d7879fc 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()->tqsizeHint().width(),keyChooser());
+ mainToolBar()->insertWidget(0,keyChooser()->sizeHint().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 f626e25..3c706f3 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::tqfromLatin1((*it).c_str()));
+// int id = m_popup->insertItem(TQString::fromLatin1((*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::setItemtqStatus( const int index, const bool checked ) {
+void CDisplaySettingsButton::setItemStatus( 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::setItemtqStatus( const int index, const bool checke
}
/** Returns the status of the item at position "index" */
-const bool CDisplaySettingsButton::itemtqStatus( const int index ) {
+const bool CDisplaySettingsButton::itemStatus( 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 fb13f18..5d9dcd7 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 setItemtqStatus( const int pos, const bool checked );
+ void setItemStatus( 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 itemtqStatus( const int index );
+ const bool itemStatus( 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 e7f778d..bed8058 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()->tqsizeHint().width(),keyChooser());
+ mainToolBar()->insertWidget(0,keyChooser()->sizeHint().width(),keyChooser());
mainToolBar()->setFullSize(false);
};
diff --git a/bibletime/frontend/displaywindow/clexiconreadwindow.cpp b/bibletime/frontend/displaywindow/clexiconreadwindow.cpp
index 01927ff..37103a9 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()->tqsizeHint().width(), keyChooser());
+ mainToolBar()->insertWidget(0, keyChooser()->sizeHint().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 c982fb6..59d4052 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::tqfromLatin1("xx"); //unknown language -- do not use English as default!!
+ //lang = TQString::fromLatin1("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 14cd981..376d917 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()->tqsizeHint().width(),keyChooser());
+ mainToolBar()->insertWidget(0,keyChooser()->sizeHint().width(),keyChooser());
mainToolBar()->setFullSize(false);
}
@@ -134,9 +134,9 @@ void CPlainWriteWindow::saveCurrentText( const TQString& /*key*/ ) {
textChanged();
} else {
KMessageBox::error( this,
- TQString::tqfromLatin1("%1
%2")
- .tqarg( i18n("Module is not writable.") )
- .tqarg( i18n("Either the module may not be edited, or "
+ TQString::fromLatin1("%1
%2")
+ .arg( i18n("Module is not writable.") )
+ .arg( 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 35aeec7..6a3e803 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->tqgeometry();
+ const TQRect rect = settings->geometry();
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 6f2262f..760a767 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::tqfromLatin1(vk->getLocale());
+ oldLang = TQString::fromLatin1(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->tqgeometry();
+ const TQRect rect = settings->geometry();
resize(rect.width(), rect.height());
parentWidget()->move(rect.x(), rect.y());
- //setGeometry( settings->tqgeometry() );
+ //setGeometry( settings->geometry() );
}
// 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 a728f67..3d1a50e 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* tqlayout = new TQHBoxLayout(this);
- tqlayout->setDirection( TQBoxLayout::LeftToRight );
+ TQHBoxLayout* layout = new TQHBoxLayout(this);
+ layout->setDirection( TQBoxLayout::LeftToRight );
w_ref = new CKeyReferenceWidget(dynamic_cast(m_modules.first()), m_key, this);
- tqlayout->addWidget(w_ref);
+ layout->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 04a3a39..34723ee 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 5ac18ae..3f972eb 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* tqlayout = new TQHBoxLayout(this);
+ TQHBoxLayout* layout = new TQHBoxLayout(this);
m_treeView = new KListView(this);
- tqlayout->addWidget(m_treeView);
+ layout->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->tqsizeHint());
+ m_treeView->resize(m_treeView->sizeHint());
KApplication::restoreOverrideCursor();
}
}
diff --git a/bibletime/frontend/keychooser/ckeychooserwidget.cpp b/bibletime/frontend/keychooser/ckeychooserwidget.cpp
index 01a7b37..7caaf6f 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 tqsizeHint() function won't work properly
+ //DON'T REMOVE THE HIDE: Otherwise TQComboBox's sizeHint() 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->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!
+ 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!
m_comboBox->show();
// m_comboBox->setFont( m_comboBox->font() );
diff --git a/bibletime/frontend/keychooser/ckeychooserwidget.h b/bibletime/frontend/keychooser/ckeychooserwidget.h
index 4c14381..d774f66 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 tqsizeHint() const;
+ // virtual TQSize sizeHint() const;
protected:
/**
diff --git a/bibletime/frontend/keychooser/ckeyreferencewidget.h b/bibletime/frontend/keychooser/ckeyreferencewidget.h
index 84eed2e..ff7b675 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 4b2f306..f744ebe 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 tqlayout because the key chooser should be resized to full size
+ //we use a layout 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 56c26d7..513975e 100644
--- a/bibletime/frontend/keychooser/crefselectdialog.cpp
+++ b/bibletime/frontend/keychooser/crefselectdialog.cpp
@@ -12,7 +12,7 @@
#include "crefselectdialog.h"
// QT
-#include "tqlayout.h"
+#include "layout.h"
#include "tqlineedit.h"
#include "tqlabel.h"
@@ -33,15 +33,15 @@
//{
// m_page = new TQWidget( this );
// m_placeholder = new TQWidget( m_page);
-// TQVBoxLayout* tqlayout = new TQVBoxLayout( m_page, 0, spacingHint());
+// TQVBoxLayout* layout = new TQVBoxLayout( m_page, 0, spacingHint());
// m_lineedit = new TQLineEdit( TQString(), m_page, "select" );
// m_lineedit->setMinimumWidth(fontMetrics().maxWidth()*8);
//
-// 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);
+// 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);
//
// m_chooser = NULL;
// m_oldParent = NULL;
diff --git a/bibletime/frontend/keychooser/cscrollerwidgetset.cpp b/bibletime/frontend/keychooser/cscrollerwidgetset.cpp
index 5054a6b..2a01d98 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->tqsetAlignment(TQt::AlignHCenter | TQt::AlignCenter);
+ m_layout->setAlignment(TQt::AlignHCenter | TQt::AlignCenter);
- //tqsetAlignment(TQt::AlignHCenter | TQt::AlignCenter);
+ //setAlignment(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 75d710a..b95b264 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 4337d1c..847639a 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->tqsizeHint().height()+10);
+ textLabel->setGeometry(0,pm.height(),pm.width(),textLabel->sizeHint().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::tqfromLatin1(" %1").tqarg(text) );
+ textLabel->setText( TQString::fromLatin1(" %1").arg(text) );
KApplication::kApplication()->processEvents();
}
diff --git a/bibletime/frontend/mainindex/cindexitem.cpp b/bibletime/frontend/mainindex/cindexitem.cpp
index aa50f8d..93d8f92 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::tqfromLatin1("%1 (%2)")
- .tqarg(key())
- .tqarg(module() ? module()->name() : i18n("unknown"));
+ const TQString title = TQString::fromLatin1("%1 (%2)")
+ .arg(key())
+ .arg(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::tqfromLatin1("%1 (%2)
%3
%5")
- .tqarg(key())
- .tqarg(module()->name())
- .tqarg(description())
- .tqarg(fontPair.second.family())
- .tqarg(k->renderedText());
+ ret = TQString::fromLatin1("%1 (%2)
%3
%5")
+ .arg(key())
+ .arg(module()->name())
+ .arg(description())
+ .arg(fontPair.second.family())
+ .arg(k->renderedText());
}
else {
- ret = TQString::tqfromLatin1("%1 (%2)
%3
%4")
- .tqarg(key())
- .tqarg(module()->name())
- .tqarg(description())
- .tqarg(k->renderedText());
+ ret = TQString::fromLatin1("%1 (%2)
%3
%4")
+ .arg(key())
+ .arg(module()->name())
+ .arg(description())
+ .arg(k->renderedText());
}
return ret;
@@ -652,19 +652,19 @@ void CTreeFolder::initTree() {
continue;
}
- if (language() == TQString::tqfromLatin1("*") || (language() != TQString::tqfromLatin1("*") && TQString::tqfromLatin1((*it)->module()->Lang()) == language()) )//right type and language!
+ if (language() == TQString::fromLatin1("*") || (language() != TQString::fromLatin1("*") && TQString::fromLatin1((*it)->module()->Lang()) == language()) )//right type and language!
usedModules.append(*it);
}
}
//we have now all modules we want to have
- if (language() == TQString::tqfromLatin1("*")) { //create subfolders for each language
+ if (language() == TQString::fromLatin1("*")) { //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::tqfromLatin1((*it)->module()->Lang());
+ TQString lang = TQString::fromLatin1((*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::tqfromLatin1("*")
- || (language() != TQString::tqfromLatin1("*")
+ if (language() == TQString::fromLatin1("*")
+ || (language() != TQString::fromLatin1("*")
&& (*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::tqfromLatin1("*")) { //create subfolders for each language
+ if (language() == TQString::fromLatin1("*")) { //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 81b3405..9558692 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->tqitemRect(i);
+ TQRect r = m_mainIndex->itemRect(i);
if (!r.isValid()) {
return;
}
diff --git a/bibletime/frontend/manageindicesform.cpp b/bibletime/frontend/manageindicesform.cpp
index dca1a9f..cfe9eb6 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->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, m_labelFrame->sizePolicy().hasHeightForWidth() ) );
+ m_labelFrame->setSizePolicy( 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 );
- tqlayout1 = new TQHBoxLayout( 0, 0, 6, "tqlayout1");
+ layout1 = new TQHBoxLayout( 0, 0, 6, "layout1");
spacer1 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- tqlayout1->addItem( spacer1 );
+ layout1->addItem( spacer1 );
m_createIndicesButton = new TQPushButton( this, "m_createIndicesButton" );
- tqlayout1->addWidget( m_createIndicesButton );
+ layout1->addWidget( m_createIndicesButton );
m_deleteIndicesButton = new TQPushButton( this, "m_deleteIndicesButton" );
- tqlayout1->addWidget( m_deleteIndicesButton );
- ManageIndicesFormLayout->addLayout( tqlayout1 );
+ layout1->addWidget( m_deleteIndicesButton );
+ ManageIndicesFormLayout->addLayout( layout1 );
languageChange();
- resize( TQSize(415, 404).expandedTo(tqminimumSizeHint()) );
+ resize( TQSize(415, 404).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
diff --git a/bibletime/frontend/manageindicesform.ui b/bibletime/frontend/manageindicesform.ui
index 6172b04..06a6409 100644
--- a/bibletime/frontend/manageindicesform.ui
+++ b/bibletime/frontend/manageindicesform.ui
@@ -62,7 +62,7 @@
- tqlayout1
+ layout1
@@ -78,7 +78,7 @@
Expanding
-
+
40
20
diff --git a/bibletime/frontend/searchdialog/cmodulechooser.cpp b/bibletime/frontend/searchdialog/cmodulechooser.cpp
index b31a363..8f45941 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* tqlayout = new TQHBoxLayout(page);
+ TQHBoxLayout* layout = new TQHBoxLayout(page);
m_moduleChooser = new CModuleChooser(page);
m_moduleChooser->setMinimumSize(320,400);
- tqlayout->addWidget(m_moduleChooser);
+ layout->addWidget(m_moduleChooser);
}
/** Initializes the connections of this dialog. */
diff --git a/bibletime/frontend/searchdialog/crangechooser.cpp b/bibletime/frontend/searchdialog/crangechooser.cpp
index 4bad712..85988f7 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->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding));
+ m_rangeList->setSizePolicy(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->tqsizeHint());
+ label->setFixedSize(label->sizeHint());
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 09ed612..c5ee6c6 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* tqlayout = new TQVBoxLayout(plainPage(),0);
+ TQVBoxLayout* layout = 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->tqsizeHint());
- tqlayout->addWidget(button);
- tqlayout->addSpacing(10);
+ button->setFixedSize(button->sizeHint());
+ layout->addWidget(button);
+ layout->addSpacing(10);
m_analysis = new CSearchAnalysis(TQT_TQOBJECT(plainPage()));
m_analysisView = new CSearchAnalysisView(m_analysis, plainPage());
m_analysisView->show();
- tqlayout->addWidget(m_analysisView);
+ layout->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()->tqprocessEvents( 10 ); //10 ms only
+ KApplication::kApplication()->processEvents( 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
").tqarg(m_bookName);
+ TQString ret = TQString("%1
").arg(m_bookName);
ret += "";
//ToDo: Fix that loop
@@ -395,10 +395,10 @@ const TQString CSearchAnalysisItem::getToolTip() {
ret.append(
TQString("%2 | %3 (%4%) |
")
- .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)
+ .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)
);
++i;
}
@@ -415,14 +415,14 @@ CSearchAnalysisView::CSearchAnalysisView(TQCanvas* canvas, TQWidget* parent)
: TQCanvasView(canvas, parent) {
setFocusPolicy(TQ_WheelFocus);
m_toolTip = new ToolTip(this);
- resize(tqsizeHint());
+ resize(sizeHint());
}
-/** Returns the tqsizeHint for this view */
-TQSize CSearchAnalysisView::tqsizeHint() {
+/** Returns the sizeHint for this view */
+TQSize CSearchAnalysisView::sizeHint() {
if ( parentWidget() )
- return parentWidget()->tqsizeHint();
- return TQCanvasView::tqsizeHint();
+ return parentWidget()->sizeHint();
+ return TQCanvasView::sizeHint();
}
/** 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").tqarg(i18n("HTML files")),
+ TQString("*.html | %1").arg(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 db734cd..6a8d460 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 tqsizeHint for this view
+ * Returns the sizeHint for this view
* We give back the size of the parent widgetas default.
- * This is a reimplementation from TQCanvasView::tqsizeHint().
+ * This is a reimplementation from TQCanvasView::sizeHint().
*/
- virtual TQSize tqsizeHint();
+ virtual TQSize sizeHint();
/**
* 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 d4a35ad..8f97dae 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( tqsizeHint() );
+ resize( sizeHint() );
}
/** Returns the search text which is set currently. */
diff --git a/bibletime/frontend/searchdialog/csearchdialogpages.cpp b/bibletime/frontend/searchdialog/csearchdialogpages.cpp
index 790dd80..3d30a23 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()->tqprocessEvents( 1 ); //1 ms only
+ KApplication::kApplication()->processEvents( 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()->tqprocessEvents( 1 ); //1 ms only
+ KApplication::kApplication()->processEvents( 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::tqfromLatin1(", "); // so that it will become a readable list (WLC, LXX, GerLut...)
+ t += TQString::fromLatin1(", "); // so that it will become a readable list (WLC, LXX, GerLut...)
}
}
};
m_modulesLabel->setText(t);
- emit( sigSetSearchButtontqStatus( (modules.count() != 0) ) );
+ emit( sigSetSearchButtonStatus( (modules.count() != 0) ) );
}
/** Opens the modules chooser dialog. */
diff --git a/bibletime/frontend/searchdialog/csearchdialogpages.h b/bibletime/frontend/searchdialog/csearchdialogpages.h
index fc39023..0a7e482 100644
--- a/bibletime/frontend/searchdialog/csearchdialogpages.h
+++ b/bibletime/frontend/searchdialog/csearchdialogpages.h
@@ -160,8 +160,8 @@ public:
*/
void setSearchResult(ListCSwordModuleInfo modules);
- TQSize tqsizeHint() const { return baseSize(); }
- TQSize tqminimumSizeHint() const { return tqminimumSize(); }
+ TQSize sizeHint() const { return baseSize(); }
+ TQSize minimumSizeHint() const { return minimumSize(); }
public slots: // Public slots
/**
@@ -241,8 +241,8 @@ public:
*/
//const CSwordModuleSearch::scopeType scopeType();
- TQSize tqsizeHint() const { return baseSize(); }
- TQSize tqminimumSizeHint() const { return tqminimumSize(); }
+ TQSize sizeHint() const { return baseSize(); }
+ TQSize minimumSizeHint() const { return minimumSize(); }
bool hasSearchScope();
private:
@@ -285,7 +285,7 @@ protected slots: // Protected slots
void syntaxHelp();
signals:
- void sigSetSearchButtontqStatus(bool);
+ void sigSetSearchButtonStatus(bool);
};
} //end of namespace Search::Options
diff --git a/bibletime/frontend/searchdialog/searchoptionsform.cpp b/bibletime/frontend/searchdialog/searchoptionsform.cpp
index dc6a140..1966a71 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" );
- tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth() ) );
+ setSizePolicy( 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->tqlayout()->setSpacing( 3 );
- searchGroupBox->tqlayout()->setMargin( 6 );
- searchGroupBoxLayout = new TQGridLayout( searchGroupBox->tqlayout() );
- searchGroupBoxLayout->tqsetAlignment( TQt::AlignTop );
+ searchGroupBox->layout()->setSpacing( 3 );
+ searchGroupBox->layout()->setMargin( 6 );
+ searchGroupBoxLayout = new TQGridLayout( searchGroupBox->layout() );
+ searchGroupBoxLayout->setAlignment( TQt::AlignTop );
m_searchTextLabel = new TQLabel( searchGroupBox, "m_searchTextLabel" );
- m_searchTextLabel->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_searchTextLabel->sizePolicy().hasHeightForWidth() ) );
+ m_searchTextLabel->setSizePolicy( 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->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_searchScopeLabel->sizePolicy().hasHeightForWidth() ) );
+ m_searchScopeLabel->setSizePolicy( 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->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_rangeChooserCombo->sizePolicy().hasHeightForWidth() ) );
+ m_rangeChooserCombo->setSizePolicy( 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->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_searchTextCombo->sizePolicy().hasHeightForWidth() ) );
+ m_searchTextCombo->setSizePolicy( 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->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_modulesLabel->sizePolicy().hasHeightForWidth() ) );
+ m_modulesLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_modulesLabel->sizePolicy().hasHeightForWidth() ) );
m_modulesLabel->setTextFormat( TQLabel::RichText );
- m_modulesLabel->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
+ m_modulesLabel->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
searchGroupBoxLayout->addMultiCellWidget( m_modulesLabel, 1, 1, 0, 1 );
SearchOptionsFormLayout->addWidget( searchGroupBox );
languageChange();
- resize( TQSize(648, 130).expandedTo(tqminimumSizeHint()) );
+ resize( TQSize(648, 130).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
diff --git a/bibletime/frontend/searchdialog/searchoptionsform.ui b/bibletime/frontend/searchdialog/searchoptionsform.ui
index bbbe19d..2872b1f 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 3cd254c..1478135 100644
--- a/bibletime/frontend/searchdialog/searchresultsform.cpp
+++ b/bibletime/frontend/searchdialog/searchresultsform.cpp
@@ -14,7 +14,7 @@
#include
#include
#include
-#include
+#include