summaryrefslogtreecommitdiffstats
path: root/bibletime/bibletime_slots.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bibletime/bibletime_slots.cpp')
-rw-r--r--bibletime/bibletime_slots.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/bibletime/bibletime_slots.cpp b/bibletime/bibletime_slots.cpp
index 8d9ad89..05fe12c 100644
--- a/bibletime/bibletime_slots.cpp
+++ b/bibletime/bibletime_slots.cpp
@@ -35,11 +35,11 @@
#include <errno.h>
//QT includes
-#include <qprogressdialog.h>
-#include <qlistview.h>
-#include <qvaluelist.h>
-#include <qclipboard.h>
-#include <qinputdialog.h>
+#include <tqprogressdialog.h>
+#include <tqlistview.h>
+#include <tqvaluelist.h>
+#include <tqclipboard.h>
+#include <tqinputdialog.h>
//KDE includes
#include <kaction.h>
@@ -68,25 +68,25 @@ using namespace Profile;
*/
class KUserDataAction : public KToggleAction {
public:
- KUserDataAction( QString caption, const KShortcut& shortcut, const QObject* receiver, const char* slot, KActionCollection* actionCollection)
+ KUserDataAction( TQString caption, const KShortcut& shortcut, const TQObject* receiver, const char* slot, KActionCollection* actionCollection)
: KToggleAction(caption, shortcut, receiver, slot, actionCollection), m_userData(0) { /* no impl */
};
- void setUserData(QWidget* const data) {
+ void setUserData(TQWidget* const data) {
m_userData = data;
};
- QWidget* const getUserData() const {
+ TQWidget* const getUserData() const {
return m_userData;
};
private:
- QWidget* m_userData;
+ TQWidget* m_userData;
};
/** Opens the optionsdialog of BibleTime. */
void BibleTime::slotSettingsOptions() {
COptionsDialog *dlg = new COptionsDialog(this, "COptionsDialog", actionCollection());
- connect(dlg, SIGNAL(signalSettingsChanged()), SLOT(slotSettingsChanged()) );
+ connect(dlg, TQT_SIGNAL(signalSettingsChanged()), TQT_SLOT(slotSettingsChanged()) );
dlg->exec();
dlg->delayedDestruct();
@@ -94,11 +94,11 @@ void BibleTime::slotSettingsOptions() {
/** Is called when settings in the optionsdialog were changed (ok or apply) */
void BibleTime::slotSettingsChanged() {
- const QString language = CBTConfig::get
+ const TQString language = CBTConfig::get
(CBTConfig::language);
m_backend->booknameLanguage(language);
- QListViewItemIterator it( m_mainIndex );
+ TQListViewItemIterator it( m_mainIndex );
CItemBase* item = 0;
for ( ; it.current(); ++it ) {
if ( (item = dynamic_cast<CItemBase*>(it.current())) ) {
@@ -113,7 +113,7 @@ void BibleTime::slotSettingsChanged() {
/** Opens the sword setup dialog of BibleTime. */
void BibleTime::slotSwordSetupDialog() {
BookshelfManager::CSwordSetupDialog *dlg = new BookshelfManager::CSwordSetupDialog(this, "CSwordSetupDialog");
- connect(dlg, SIGNAL(signalSwordSetupChanged()), SLOT(slotSwordSetupChanged()) );
+ connect(dlg, TQT_SIGNAL(signalSwordSetupChanged()), TQT_SLOT(slotSwordSetupChanged()) );
dlg->exec();
dlg->delayedDestruct();
@@ -172,12 +172,12 @@ void BibleTime::slotWindowMenuAboutToShow() {
}
#if QT_VERSION >= 0x030200
- QPtrList<KAction>::iterator end = m_windowOpenWindowsList.end();
- for (QPtrList<KAction>::iterator it = m_windowOpenWindowsList.begin(); it != end; ++it ) {
+ TQPtrList<KAction>::iterator end = m_windowOpenWindowsList.end();
+ for (TQPtrList<KAction>::iterator it = m_windowOpenWindowsList.begin(); it != end; ++it ) {
(*it)->unplugAll();
}
#else
- QPtrListIterator<KAction> it(m_windowOpenWindowsList);
+ TQPtrListIterator<KAction> it(m_windowOpenWindowsList);
while (it.current() != 0){
it.current()->unplugAll();
++it;
@@ -190,13 +190,13 @@ void BibleTime::slotWindowMenuAboutToShow() {
m_windowActionCollection = new KActionCollection(this);
}
- QWidgetList windows = m_mdi->windowList();
+ TQWidgetList windows = m_mdi->windowList();
const int count = windows.count();
for ( int i = 0; i < count; ++i ) {
- QWidget* w = windows.at(i);
+ TQWidget* w = windows.at(i);
Q_ASSERT(w);
- KUserDataAction* action = new KUserDataAction(w->caption(), KShortcut(), this, SLOT(slotWindowMenuActivated()), m_windowActionCollection);
+ KUserDataAction* action = new KUserDataAction(w->caption(), KShortcut(), this, TQT_SLOT(slotWindowMenuActivated()), m_windowActionCollection);
Q_ASSERT(action);
action->setUserData(w);
@@ -308,7 +308,7 @@ void BibleTime::slotWindowMenuActivated() {
const KUserDataAction* action = dynamic_cast<const KUserDataAction*>(sender());
Q_ASSERT(action);
if (action) {
- QWidget* const window = action->getUserData();
+ TQWidget* const window = action->getUserData();
Q_ASSERT(window);
if ( window ) {
window->setFocus();
@@ -363,7 +363,7 @@ void BibleTime::slotSearchModules() {
//get the modules of the open windows
ListCSwordModuleInfo modules;
- QWidgetList windows = m_mdi->windowList();
+ TQWidgetList windows = m_mdi->windowList();
for ( int i = 0; i < static_cast<int>(windows.count()); ++i ) {
if (CDisplayWindow* w = dynamic_cast<CDisplayWindow*>(windows.at(i))) {
ListCSwordModuleInfo windowModules = w->modules();
@@ -375,7 +375,7 @@ void BibleTime::slotSearchModules() {
};
};
- Search::CSearchDialog::openDialog(modules, QString::null);
+ Search::CSearchDialog::openDialog(modules, TQString::null);
}
/* Search default Bible slot
@@ -389,7 +389,7 @@ void BibleTime::slotSearchDefaultBible() {
module.append(bible);
}
- Search::CSearchDialog::openDialog(module, QString::null);
+ Search::CSearchDialog::openDialog(module, TQString::null);
}
void BibleTime::openOnlineHelp_Handbook() {
@@ -405,7 +405,7 @@ void BibleTime::saveProfile(int ID) {
m_mdi->setUpdatesEnabled(false);
KPopupMenu* popup = m_windowSaveProfile_action->popupMenu();
- const QString profileName = popup->text(ID).remove("&");
+ const TQString profileName = popup->text(ID).remove("&");
CProfile* p = m_profileMgr.profile( profileName );
Q_ASSERT(p);
if ( p ) {
@@ -423,9 +423,9 @@ void BibleTime::saveProfile(CProfile* profile) {
//save mainwindow settings
storeProfileSettings(profile);
- QWidgetList windows = m_mdi->windowList();
- QPtrList<CProfileWindow> profileWindows;
- for (QWidget* w = windows.first(); w; w = windows.next()) {
+ TQWidgetList windows = m_mdi->windowList();
+ TQPtrList<CProfileWindow> profileWindows;
+ for (TQWidget* w = windows.first(); w; w = windows.next()) {
CDisplayWindow* displayWindow = dynamic_cast<CDisplayWindow*>(w);
if (!displayWindow) {
continue;
@@ -445,7 +445,7 @@ void BibleTime::saveProfile(CProfile* profile) {
void BibleTime::loadProfile(int ID) {
KPopupMenu* popup = m_windowLoadProfile_action->popupMenu();
//HACK: workaround the inserted & char by KPopupMenu
- const QString profileName = popup->text(ID).remove("&");
+ const TQString profileName = popup->text(ID).remove("&");
CProfile* p = m_profileMgr.profile( profileName );
// qWarning("requesting popup: %s", popup->text(ID).latin1());
Q_ASSERT(p);
@@ -462,7 +462,7 @@ void BibleTime::loadProfile(CProfile* p) {
return;
}
- QPtrList<CProfileWindow> windows = p->load();
+ TQPtrList<CProfileWindow> windows = p->load();
Q_ASSERT(windows.count());
//load mainwindow setttings
@@ -470,15 +470,15 @@ void BibleTime::loadProfile(CProfile* p) {
m_mdi->setUpdatesEnabled(false);//don't auto tile or auto cascade, this would mess up everything!!
- QWidget* focusWindow = 0;
+ TQWidget* focusWindow = 0;
// for (CProfileWindow* w = windows.last(); w; w = windows.prev()) { //from the last one to make sure the order is right in the mdi area
for (CProfileWindow* w = windows.first(); w; w = windows.next()) {
- const QString key = w->key();
- QStringList usedModules = w->modules();
+ const TQString key = w->key();
+ TQStringList usedModules = w->modules();
ListCSwordModuleInfo modules;
- for ( QStringList::Iterator it = usedModules.begin(); it != usedModules.end(); ++it ) {
+ for ( TQStringList::Iterator it = usedModules.begin(); it != usedModules.end(); ++it ) {
if (CSwordModuleInfo* m = m_backend->findModuleByName(*it)) {
modules.append(m);
}
@@ -515,7 +515,7 @@ void BibleTime::loadProfile(CProfile* p) {
void BibleTime::deleteProfile(int ID) {
KPopupMenu* popup = m_windowDeleteProfile_action->popupMenu();
//HACK: work around the inserted & char by KPopupMenu
- const QString profileName = popup->text(ID).remove("&");
+ const TQString profileName = popup->text(ID).remove("&");
CProfile* p = m_profileMgr.profile( profileName );
Q_ASSERT(p);
@@ -533,7 +533,7 @@ void BibleTime::toggleFullscreen() {
/** Saves current settings into a new profile. */
void BibleTime::saveToNewProfile() {
bool ok = false;
- const QString name = QInputDialog::getText(i18n("Session name:"), i18n("Please enter a name for the new session."), QLineEdit::Normal, QString::null, &ok, this);
+ const TQString name = QInputDialog::getText(i18n("Session name:"), i18n("Please enter a name for the new session."), TQLineEdit::Normal, TQString::null, &ok, this);
if (ok && !name.isEmpty()) {
CProfile* profile = m_profileMgr.create(name);
saveProfile(profile);
@@ -555,7 +555,7 @@ void BibleTime::refreshProfileMenus() {
//refresh the load, save and delete profile menus
m_profileMgr.refresh();
- QPtrList<CProfile> profiles = m_profileMgr.profiles();
+ TQPtrList<CProfile> profiles = m_profileMgr.profiles();
const bool enableActions = bool(profiles.count() != 0);
m_windowSaveProfile_action->setEnabled(enableActions);