rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/bibletime@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent fbb51be9cf
commit 50d6a8e70c

@ -27,7 +27,7 @@ class CSwordBookModuleInfo : public CSwordModuleInfo {
public: public:
/** Constructor. /** Constructor.
* @param module The module which belongs to this object * @param module The module which belongs to this object
* @param backend The tqparent backend for this book module. * @param backend The parent backend for this book module.
*/ */
CSwordBookModuleInfo( sword::SWModule* module, CSwordBackend* const backend = CPointers::backend() ); CSwordBookModuleInfo( sword::SWModule* module, CSwordBackend* const backend = CPointers::backend() );
/** Copy constructor. /** Copy constructor.

@ -324,7 +324,7 @@ void BibleTime::slotToggleToolbar() {
/** Shows or hides the groupmanager. /** Shows or hides the groupmanager.
*/ */
void BibleTime::slotToggleMainIndex() { void BibleTime::slotToggleMainIndex() {
//we use the tqparent widget because the main index is enclosed in a tqlayout which adds the label at the top //we use the parent widget because the main index is enclosed in a tqlayout which adds the label at the top
if (m_viewMainIndex_action->isChecked()) { if (m_viewMainIndex_action->isChecked()) {
m_mainIndex->parentWidget()->show(); m_mainIndex->parentWidget()->show();
} }

@ -91,7 +91,7 @@ namespace BookshelfManager {
filename = LocalConfig::swordConfigFilename(); filename = LocalConfig::swordConfigFilename();
directAccess = true; directAccess = true;
} }
else if ( !i.exists() && dirInfo.isWritable() ) { // if the file doesn't exist but th etqparent is writable for us, create it else if ( !i.exists() && dirInfo.isWritable() ) { // if the file doesn't exist but th eparent is writable for us, create it
filename = LocalConfig::swordConfigFilename(); filename = LocalConfig::swordConfigFilename();
directAccess = true; directAccess = true;
} }

@ -47,8 +47,8 @@ using namespace sword;
namespace InfoDisplay { namespace InfoDisplay {
CInfoDisplay::CInfoDisplay(TQWidget *tqparent, const char *name) CInfoDisplay::CInfoDisplay(TQWidget *parent, const char *name)
: TQWidget(tqparent, name) { : TQWidget(parent, name) {
TQVBoxLayout* tqlayout = new TQVBoxLayout(this); TQVBoxLayout* tqlayout = new TQVBoxLayout(this);
TQLabel* headingLabel = new TQLabel(i18n("Mag (\"shift\" to lock)"),this); TQLabel* headingLabel = new TQLabel(i18n("Mag (\"shift\" to lock)"),this);
headingLabel->setMargin(5); headingLabel->setMargin(5);
@ -267,7 +267,7 @@ namespace InfoDisplay {
} }
// qWarning("rendered the tree: %s", renderer.renderKeyTree(tree).latin1()); // qWarning("rendered the tree: %s", renderer.renderKeyTree(tree).latin1());
//spanns containing rtl text need dir=rtl on their tqparent tag to be aligned properly //spanns containing rtl text need dir=rtl on their parent tag to be aligned properly
return TQString("<div class=\"crossrefinfo\"><h3>%1</h3><div class=\"para\" dir=\"%2\">%3</div></div>") return TQString("<div class=\"crossrefinfo\"><h3>%1</h3><div class=\"para\" dir=\"%2\">%3</div></div>")
.tqarg(i18n("Cross references")) .tqarg(i18n("Cross references"))
.tqarg(module ? ((module->textDirection() == CSwordModuleInfo::LeftToRight) ? "ltr" : "rtl") : "") .tqarg(module ? ((module->textDirection() == CSwordModuleInfo::LeftToRight) ? "ltr" : "rtl") : "")

@ -46,7 +46,7 @@ public:
typedef TQPair<InfoType, TQString> InfoData; typedef TQPair<InfoType, TQString> InfoData;
typedef TQValueList<InfoData> ListInfoData; typedef TQValueList<InfoData> ListInfoData;
CInfoDisplay(TQWidget *tqparent = 0, const char *name = 0); CInfoDisplay(TQWidget *parent = 0, const char *name = 0);
virtual ~CInfoDisplay(); virtual ~CInfoDisplay();
void setInfo(const InfoType, const TQString& data); void setInfo(const InfoType, const TQString& data);

@ -23,7 +23,7 @@
#include <klocale.h> #include <klocale.h>
#include <kseparator.h> #include <kseparator.h>
CInputDialog::CInputDialog(const TQString& caption, const TQString& description, const TQString& text, TQWidget *tqparent, const char *name, const bool modal ) : KDialog(tqparent,name,modal) { CInputDialog::CInputDialog(const TQString& caption, const TQString& description, const TQString& text, TQWidget *parent, const char *name, const bool modal ) : KDialog(parent,name,modal) {
setPlainCaption(caption); setPlainCaption(caption);
TQVBoxLayout* topLayout = new TQVBoxLayout(this, 5,5); TQVBoxLayout* topLayout = new TQVBoxLayout(this, 5,5);
@ -76,8 +76,8 @@ const TQString CInputDialog::text() {
} }
/** A static function to get some using CInputDialog. */ /** A static function to get some using CInputDialog. */
const TQString CInputDialog::getText( const TQString& caption, const TQString& description, const TQString& text, bool* ok, TQWidget* tqparent, bool modal) { const TQString CInputDialog::getText( const TQString& caption, const TQString& description, const TQString& text, bool* ok, TQWidget* parent, bool modal) {
CInputDialog* dlg = new CInputDialog(caption, description, text, tqparent, "", modal); CInputDialog* dlg = new CInputDialog(caption, description, text, parent, "", modal);
TQString ret = TQString(); TQString ret = TQString();
const bool isOk = (dlg->exec() == CInputDialog::Accepted); const bool isOk = (dlg->exec() == CInputDialog::Accepted);

@ -26,11 +26,11 @@ class CInputDialog : public KDialog {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CInputDialog(const TQString& caption, const TQString& description, const TQString& text, TQWidget *tqparent=0, const char *name=0, const bool modal = true); CInputDialog(const TQString& caption, const TQString& description, const TQString& text, TQWidget *parent=0, const char *name=0, const bool modal = true);
/** /**
* A static function to get some using CInputDialog. * A static function to get some using CInputDialog.
*/ */
static const TQString getText( const TQString& caption, const TQString& description, const TQString& text = TQString(), bool* ok = 0, TQWidget* tqparent = 0, bool modal = true); static const TQString getText( const TQString& caption, const TQString& description, const TQString& text = TQString(), bool* ok = 0, TQWidget* parent = 0, bool modal = true);
/** /**
* Returns the text entered at the moment. * Returns the text entered at the moment.
*/ */

@ -40,8 +40,8 @@
namespace BookshelfManager { namespace BookshelfManager {
/** Constructor */ /** Constructor */
CManageIndicesWidget::CManageIndicesWidget(TQWidget* tqparent, const char* name) : CManageIndicesWidget::CManageIndicesWidget(TQWidget* parent, const char* name) :
ManageIndicesForm(tqparent, name) { ManageIndicesForm(parent, name) {
initView(); initView();
populateModuleList(); populateModuleList();

@ -34,7 +34,7 @@ public:
/** /**
* Constructor * Constructor
*/ */
CManageIndicesWidget(TQWidget* tqparent, const char* name = 0); CManageIndicesWidget(TQWidget* parent, const char* name = 0);
/** /**
* Destructor * Destructor

@ -30,8 +30,8 @@
#include <tqtimer.h> #include <tqtimer.h>
CMDIArea::CMDIArea(TQWidget *tqparent, const char *name ) CMDIArea::CMDIArea(TQWidget *parent, const char *name )
: TQWorkspace(tqparent, name), : TQWorkspace(parent, name),
m_guiOption(Nothing), m_guiOption(Nothing),
m_childEvent(false), m_childEvent(false),
m_appCaption(TQString()) { m_appCaption(TQString()) {

@ -44,7 +44,7 @@ public:
autoCascade, autoCascade,
Nothing Nothing
}; };
CMDIArea(TQWidget *tqparent, const char *name = 0 ); CMDIArea(TQWidget *parent, const char *name = 0 );
/** /**
*/ */
void readSettings(); void readSettings();

@ -71,8 +71,8 @@
using std::string; using std::string;
using std::list; using std::list;
COptionsDialog::COptionsDialog(TQWidget *tqparent, const char *name, KActionCollection* actionCollection ) COptionsDialog::COptionsDialog(TQWidget *parent, const char *name, KActionCollection* actionCollection )
: KDialogBase(IconList, i18n("Configure BibleTime"), Ok | Cancel | Apply, Ok, tqparent, name, true, true, TQString(), TQString(), TQString()) { : KDialogBase(IconList, i18n("Configure BibleTime"), Ok | Cancel | Apply, Ok, parent, name, true, true, TQString(), TQString(), TQString()) {
m_settings.keys.application.actionCollection = actionCollection; m_settings.keys.application.actionCollection = actionCollection;
setIconListAllVisible(true); setIconListAllVisible(true);
@ -84,7 +84,7 @@ COptionsDialog::COptionsDialog(TQWidget *tqparent, const char *name, KActionColl
} }
COptionsDialog::~COptionsDialog() { COptionsDialog::~COptionsDialog() {
//the actionCollections objects are deleted by their TQWidget tqparent //the actionCollections objects are deleted by their TQWidget parent
} }
/** */ /** */

@ -55,7 +55,7 @@ class COptionsDialog : public KDialogBase, public CPointers {
TQ_OBJECT TQ_OBJECT
public: public:
COptionsDialog(TQWidget *tqparent, const char *name, KActionCollection* actionCollection); COptionsDialog(TQWidget *parent, const char *name, KActionCollection* actionCollection);
virtual ~COptionsDialog(); virtual ~COptionsDialog();
enum Parts { enum Parts {

@ -36,7 +36,7 @@ class CPrinter : public TQObject, public Rendering::CDisplayRendering {
TQ_OBJECT TQ_OBJECT
public: public:
CPrinter( CPrinter(
TQObject *tqparent, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions TQObject *parent, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions
); );
virtual ~CPrinter(); virtual ~CPrinter();

@ -55,8 +55,8 @@ using namespace sword;
namespace BookshelfManager { namespace BookshelfManager {
CSwordSetupDialog::CSwordSetupDialog(TQWidget *tqparent, const char *name ) CSwordSetupDialog::CSwordSetupDialog(TQWidget *parent, const char *name )
: KDialogBase(IconList, i18n("Bookshelf Manager"), Ok, Ok, tqparent, name, true, true, TQString(), TQString(), TQString()), : KDialogBase(IconList, i18n("Bookshelf Manager"), Ok, Ok, parent, name, true, true, TQString(), TQString(), TQString()),
m_removeModuleListView(0), m_removeModuleListView(0),
m_installModuleListPage(0), m_installModuleListPage(0),
m_installModuleListView(0), m_installModuleListView(0),

@ -47,7 +47,7 @@ class CSwordSetupDialog : public KDialogBase, public CPointers {
TQ_OBJECT TQ_OBJECT
public: public:
CSwordSetupDialog(TQWidget *tqparent=0, const char *name=0); CSwordSetupDialog(TQWidget *parent=0, const char *name=0);
enum Parts { enum Parts {
Sword, Sword,

@ -32,7 +32,7 @@ namespace BookshelfManager {
const TQString PROTO_FTP( i18n("Remote") ); //Remote path const TQString PROTO_FTP( i18n("Remote") ); //Remote path
CSwordSetupInstallSourcesDialog::CSwordSetupInstallSourcesDialog(/*TQWidget *tqparent*/) CSwordSetupInstallSourcesDialog::CSwordSetupInstallSourcesDialog(/*TQWidget *parent*/)
: TQDialog() { : TQDialog() {
TQVBoxLayout* mainLayout = new TQVBoxLayout( this ); TQVBoxLayout* mainLayout = new TQVBoxLayout( this );

@ -65,8 +65,8 @@ namespace BookshelfManager {
* @short InstallationManager module listviews * @short InstallationManager module listviews
* @author Martin Gruner * @author Martin Gruner
*/ */
CSwordSetupModuleListView::CSwordSetupModuleListView(TQWidget *tqparent, bool is_remote, sword::InstallSource* installSource) CSwordSetupModuleListView::CSwordSetupModuleListView(TQWidget *parent, bool is_remote, sword::InstallSource* installSource)
: KListView(tqparent), m_is_remote( is_remote ) { : KListView(parent), m_is_remote( is_remote ) {
Q_ASSERT(installSource); Q_ASSERT(installSource);
new BookshelfManager::ToolTip(this); new BookshelfManager::ToolTip(this);
m_backend = installSource ? BTInstallMgr::Tool::backend(installSource) : CPointers::backend(); m_backend = installSource ? BTInstallMgr::Tool::backend(installSource) : CPointers::backend();
@ -151,31 +151,31 @@ namespace BookshelfManager {
void CSwordSetupModuleListView::addModule(CSwordModuleInfo* module, TQString localVersion) { void CSwordSetupModuleListView::addModule(CSwordModuleInfo* module, TQString localVersion) {
TQListViewItem* tqparent = 0; TQListViewItem* parent = 0;
switch ( module->type() ) { switch ( module->type() ) {
case CSwordModuleInfo::Bible: case CSwordModuleInfo::Bible:
tqparent = m_categoryBible; parent = m_categoryBible;
break; break;
case CSwordModuleInfo::Commentary: case CSwordModuleInfo::Commentary:
tqparent = m_categoryCommentary; parent = m_categoryCommentary;
break; break;
case CSwordModuleInfo::Lexicon: case CSwordModuleInfo::Lexicon:
tqparent = m_categoryLexicon; parent = m_categoryLexicon;
break; break;
case CSwordModuleInfo::GenericBook: case CSwordModuleInfo::GenericBook:
tqparent = m_categoryBook; parent = m_categoryBook;
break; break;
default: default:
tqparent = 0; parent = 0;
break; break;
} }
//handling for special module types //handling for special module types
if ((tqparent == m_categoryLexicon) && (module->category() == CSwordModuleInfo::Glossary)) { if ((parent == m_categoryLexicon) && (module->category() == CSwordModuleInfo::Glossary)) {
tqparent = m_categoryGlossaries; parent = m_categoryGlossaries;
} }
if ((tqparent == m_categoryLexicon) && (module->category() == CSwordModuleInfo::DailyDevotional)) { if ((parent == m_categoryLexicon) && (module->category() == CSwordModuleInfo::DailyDevotional)) {
tqparent = m_categoryDevotionals; parent = m_categoryDevotionals;
} }
//now we know the category, find the right language group in that category //now we know the category, find the right language group in that category
@ -186,8 +186,8 @@ namespace BookshelfManager {
} }
TQListViewItem * langFolder = 0; TQListViewItem * langFolder = 0;
if (tqparent) { if (parent) {
langFolder = tqparent->firstChild(); langFolder = parent->firstChild();
while( langFolder ) { //try to find language folder if it exsists while( langFolder ) { //try to find language folder if it exsists
if (langFolder->text(0) == langName) { //found right folder if (langFolder->text(0) == langName) { //found right folder
@ -199,7 +199,7 @@ namespace BookshelfManager {
} }
if (!langFolder) { //not yet there if (!langFolder) { //not yet there
langFolder = new TQCheckListItem(tqparent, langName, TQCheckListItem::CheckBoxController); langFolder = new TQCheckListItem(parent, langName, TQCheckListItem::CheckBoxController);
langFolder->setPixmap(0, SmallIcon(CResMgr::mainIndex::closedFolder::icon, 16)); langFolder->setPixmap(0, SmallIcon(CResMgr::mainIndex::closedFolder::icon, 16));
langFolder->setOpen(false); langFolder->setOpen(false);

@ -32,7 +32,7 @@ class CSwordSetupModuleListView : public KListView {
TQ_OBJECT TQ_OBJECT
public: public:
CSwordSetupModuleListView(TQWidget* tqparent, bool is_remote, sword::InstallSource* installSource = 0); CSwordSetupModuleListView(TQWidget* parent, bool is_remote, sword::InstallSource* installSource = 0);
virtual ~CSwordSetupModuleListView(); virtual ~CSwordSetupModuleListView();
void addModule(CSwordModuleInfo *, TQString localVersion); void addModule(CSwordModuleInfo *, TQString localVersion);

@ -112,23 +112,23 @@ void CDisplayConnections::openFindTextDialog() {
/*----------------------*/ /*----------------------*/
CReadDisplay* CDisplay::createReadInstance( CReadWindow* readWindow, TQWidget* tqparent ) { CReadDisplay* CDisplay::createReadInstance( CReadWindow* readWindow, TQWidget* parent ) {
return new CHTMLReadDisplay(readWindow, tqparent); return new CHTMLReadDisplay(readWindow, parent);
} }
CWriteDisplay* CDisplay::createWriteInstance( CWriteWindow* writeWindow, const CWriteDisplay::WriteDisplayType& type, TQWidget* tqparent ) { CWriteDisplay* CDisplay::createWriteInstance( CWriteWindow* writeWindow, const CWriteDisplay::WriteDisplayType& type, TQWidget* parent ) {
// qWarning("CDisplay::createWriteInstance"); // qWarning("CDisplay::createWriteInstance");
if (type == PlainTextDisplay) { if (type == PlainTextDisplay) {
return new CPlainWriteDisplay(writeWindow, tqparent); return new CPlainWriteDisplay(writeWindow, parent);
} }
else { else {
return new CHTMLWriteDisplay(writeWindow, tqparent); return new CHTMLWriteDisplay(writeWindow, parent);
}; };
} }
CDisplay::CDisplay(CDisplayWindow* tqparent) : CDisplay::CDisplay(CDisplayWindow* parent) :
m_parentWindow(tqparent), m_parentWindow(parent),
m_connections( new CDisplayConnections( this ) ), m_connections( new CDisplayConnections( this ) ),
m_popup(0) {} m_popup(0) {}

@ -43,8 +43,8 @@ public:
PlainTextDisplay PlainTextDisplay
}; };
static CReadDisplay* createReadInstance(CReadWindow* readWindow, TQWidget* tqparent = 0); static CReadDisplay* createReadInstance(CReadWindow* readWindow, TQWidget* parent = 0);
static CWriteDisplay* createWriteInstance( CWriteWindow* writeWindow, const WriteDisplayType& type = PlainTextDisplay, TQWidget* tqparent = 0 ); static CWriteDisplay* createWriteInstance( CWriteWindow* writeWindow, const WriteDisplayType& type = PlainTextDisplay, TQWidget* parent = 0 );
enum TextType { enum TextType {
HTMLText, /* Used for HTML markup */ HTMLText, /* Used for HTML markup */
@ -94,7 +94,7 @@ public:
*/ */
virtual CDisplayConnections* const connectionsProxy() const; virtual CDisplayConnections* const connectionsProxy() const;
/** /**
* Returns the tqparent window used for this display widget. * Returns the parent window used for this display widget.
*/ */
CDisplayWindow* const parentWindow() const; CDisplayWindow* const parentWindow() const;
virtual void print( const CDisplay::TextPart, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions) = 0; virtual void print( const CDisplay::TextPart, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions) = 0;
@ -131,7 +131,7 @@ protected:
void emitReferenceClicked( const TQString& reference ); void emitReferenceClicked( const TQString& reference );
protected: protected:
CDisplay(CDisplayWindow* tqparent); CDisplay(CDisplayWindow* parent);
virtual ~CDisplay(); virtual ~CDisplay();
private: private:
@ -144,7 +144,7 @@ class CDisplayConnections : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CDisplayConnections( CDisplay* tqparent ); CDisplayConnections( CDisplay* parent );
public slots: public slots:
virtual void selectAll(); virtual void selectAll();

@ -422,7 +422,7 @@ void CHTMLReadDisplay::timerEvent( TQTimerEvent *e ) {
// --------------------- // ---------------------
CHTMLReadDisplayView::CHTMLReadDisplayView(CHTMLReadDisplay* displayWidget, TQWidget* tqparent) : KHTMLView(displayWidget, tqparent), m_display(displayWidget) { CHTMLReadDisplayView::CHTMLReadDisplayView(CHTMLReadDisplay* displayWidget, TQWidget* parent) : KHTMLView(displayWidget, parent), m_display(displayWidget) {
viewport()->setAcceptDrops(true); viewport()->setAcceptDrops(true);
setMarginWidth(4); setMarginWidth(4);
setMarginHeight(4); setMarginHeight(4);

@ -61,7 +61,7 @@ public:
protected: protected:
friend class CDisplay; friend class CDisplay;
CHTMLReadDisplay( CReadWindow* readWindow, TQWidget* tqparent = 0 ); CHTMLReadDisplay( CReadWindow* readWindow, TQWidget* parent = 0 );
virtual ~CHTMLReadDisplay(); virtual ~CHTMLReadDisplay();
virtual void urlSelected( const TQString& url, int button, int state, const TQString& _target, KParts::URLArgs args); virtual void urlSelected( const TQString& url, int button, int state, const TQString& _target, KParts::URLArgs args);
@ -119,7 +119,7 @@ protected: // Protected methods
friend class CHTMLReadDisplay; friend class CHTMLReadDisplay;
CHTMLReadDisplayView(CHTMLReadDisplay* display, TQWidget* tqparent); CHTMLReadDisplayView(CHTMLReadDisplay* display, TQWidget* parent);
/** /**
* Reimplementation from TQScrollView. Sets the right slots * Reimplementation from TQScrollView. Sets the right slots
*/ */

@ -27,8 +27,8 @@
#include <kcolorbutton.h> #include <kcolorbutton.h>
#include <kpopupmenu.h> #include <kpopupmenu.h>
CHTMLWriteDisplay::CHTMLWriteDisplay(CWriteWindow* parentWindow, TQWidget* tqparent) CHTMLWriteDisplay::CHTMLWriteDisplay(CWriteWindow* parentWindow, TQWidget* parent)
: CPlainWriteDisplay(parentWindow,tqparent) { : CPlainWriteDisplay(parentWindow,parent) {
m_actions.bold = 0; m_actions.bold = 0;
m_actions.italic = 0; m_actions.italic = 0;
m_actions.underline = 0; m_actions.underline = 0;

@ -52,7 +52,7 @@ public:
protected: protected:
friend class CDisplay; friend class CDisplay;
CHTMLWriteDisplay(CWriteWindow* parentWindow, TQWidget* tqparent); CHTMLWriteDisplay(CWriteWindow* parentWindow, TQWidget* parent);
~CHTMLWriteDisplay(); ~CHTMLWriteDisplay();
/** /**
* Reimplementation to show a popup menu if the right mouse butoon was clicked. * Reimplementation to show a popup menu if the right mouse butoon was clicked.

@ -23,7 +23,7 @@
#include <kaction.h> #include <kaction.h>
#include <klocale.h> #include <klocale.h>
CPlainWriteDisplay::CPlainWriteDisplay(CWriteWindow* parentWindow, TQWidget* tqparent) : TQTextEdit(parentWindow ? parentWindow : tqparent), CWriteDisplay(parentWindow) { CPlainWriteDisplay::CPlainWriteDisplay(CWriteWindow* parentWindow, TQWidget* parent) : TQTextEdit(parentWindow ? parentWindow : parent), CWriteDisplay(parentWindow) {
setTextFormat(TQt::PlainText); setTextFormat(TQt::PlainText);
setAcceptDrops(true); setAcceptDrops(true);
viewport()->setAcceptDrops(true); viewport()->setAcceptDrops(true);

@ -66,7 +66,7 @@ protected:
friend class CDisplay; friend class CDisplay;
friend class CHTMLWriteDisplay; friend class CHTMLWriteDisplay;
CPlainWriteDisplay(CWriteWindow* parentWindow, TQWidget* tqparent); CPlainWriteDisplay(CWriteWindow* parentWindow, TQWidget* parent);
virtual ~CPlainWriteDisplay(); virtual ~CPlainWriteDisplay();
/** /**
* Reimplementation from TQTextEdit. Provides an popup menu for the given position. * Reimplementation from TQTextEdit. Provides an popup menu for the given position.

@ -40,7 +40,7 @@
using namespace Profile; using namespace Profile;
CBibleReadWindow::CBibleReadWindow(ListCSwordModuleInfo moduleList, CMDIArea* tqparent, const char *name ) : CLexiconReadWindow(moduleList, tqparent,name) { CBibleReadWindow::CBibleReadWindow(ListCSwordModuleInfo moduleList, CMDIArea* parent, const char *name ) : CLexiconReadWindow(moduleList, parent,name) {
} }
CBibleReadWindow::~CBibleReadWindow() {} CBibleReadWindow::~CBibleReadWindow() {}

@ -35,7 +35,7 @@ class CBibleReadWindow : public CLexiconReadWindow {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CBibleReadWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name=0); CBibleReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0);
virtual ~CBibleReadWindow(); virtual ~CBibleReadWindow();
/** /**
* Store the settings of this window in the given CProfileWindow object. * Store the settings of this window in the given CProfileWindow object.

@ -33,7 +33,7 @@
using namespace Profile; using namespace Profile;
CBookReadWindow::CBookReadWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name) : CLexiconReadWindow(modules, tqparent, name) {} CBookReadWindow::CBookReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name) : CLexiconReadWindow(modules, parent, name) {}
CBookReadWindow::~CBookReadWindow() {} CBookReadWindow::~CBookReadWindow() {}

@ -30,7 +30,7 @@ class CBookReadWindow : public CLexiconReadWindow {
public: public:
static void insertKeyboardActions( KActionCollection* const a ); static void insertKeyboardActions( KActionCollection* const a );
CBookReadWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name=0); CBookReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0);
virtual ~CBookReadWindow(); virtual ~CBookReadWindow();
/** /**

@ -25,8 +25,8 @@
#include <klocale.h> #include <klocale.h>
// CTransliterationButton::CTransliterationButton(CSwordBackend::FilterOptions* filterOptions, TQWidget *tqparent, const char *name ) // CTransliterationButton::CTransliterationButton(CSwordBackend::FilterOptions* filterOptions, TQWidget *parent, const char *name )
// : KToolBarButton(CResMgr::displaywindows::transliteration::icon, 0,tqparent,name) { // : KToolBarButton(CResMgr::displaywindows::transliteration::icon, 0,parent,name) {
// m_filterOptions = filterOptions; // m_filterOptions = filterOptions;
// m_filterOptions->transliteration = 0; // m_filterOptions->transliteration = 0;
// //
@ -86,8 +86,8 @@
*********** CDisplaySettingsButton ************* *********** CDisplaySettingsButton *************
************************************************/ ************************************************/
CDisplaySettingsButton::CDisplaySettingsButton(CSwordBackend::DisplayOptions *displaySettings, CSwordBackend::FilterOptions *moduleSettings, const ListCSwordModuleInfo& useModules,TQWidget *tqparent, const char *name ) CDisplaySettingsButton::CDisplaySettingsButton(CSwordBackend::DisplayOptions *displaySettings, CSwordBackend::FilterOptions *moduleSettings, const ListCSwordModuleInfo& useModules,TQWidget *parent, const char *name )
: KToolBarButton(CResMgr::displaywindows::displaySettings::icon, 0, tqparent, name) { : KToolBarButton(CResMgr::displaywindows::displaySettings::icon, 0, parent, name) {
// qWarning("CDisplaySettingsButton::CDisplaySettingsButton"); // qWarning("CDisplaySettingsButton::CDisplaySettingsButton");
m_displaySettings = displaySettings; m_displaySettings = displaySettings;
m_moduleSettings = moduleSettings; m_moduleSettings = moduleSettings;

@ -31,7 +31,7 @@ class KPopupMenu;
// Q_OBJECT // Q_OBJECT
// TQ_OBJECT // TQ_OBJECT
// public: // public:
// CTransliterationButton(CSwordBackend::FilterOptions* displayOptions, TQWidget *tqparent, const char *name=0); // CTransliterationButton(CSwordBackend::FilterOptions* displayOptions, TQWidget *parent, const char *name=0);
// ~CTransliterationButton(); // ~CTransliterationButton();
// /** // /**
// * Setup the menu entries. // * Setup the menu entries.
@ -60,7 +60,7 @@ class CDisplaySettingsButton : public KToolBarButton {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CDisplaySettingsButton(CSwordBackend::DisplayOptions *displaySettings, CSwordBackend::FilterOptions *settings, const ListCSwordModuleInfo& useModules, TQWidget *tqparent=0, const char *name=0); CDisplaySettingsButton(CSwordBackend::DisplayOptions *displaySettings, CSwordBackend::FilterOptions *settings, const ListCSwordModuleInfo& useModules, TQWidget *parent=0, const char *name=0);
void reset(const ListCSwordModuleInfo& useModules); void reset(const ListCSwordModuleInfo& useModules);
/** /**
* Sets the item at position pos to the satet given as 2nd paramter. * Sets the item at position pos to the satet given as 2nd paramter.

@ -31,7 +31,7 @@
using namespace Profile; using namespace Profile;
CCommentaryReadWindow::CCommentaryReadWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name) : CLexiconReadWindow(modules, tqparent,name) {} CCommentaryReadWindow::CCommentaryReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name) : CLexiconReadWindow(modules, parent,name) {}
void CCommentaryReadWindow::insertKeyboardActions( KActionCollection* const a ) { void CCommentaryReadWindow::insertKeyboardActions( KActionCollection* const a ) {
new KAction( new KAction(

@ -31,7 +31,7 @@ public:
*/ */
static void insertKeyboardActions( KActionCollection* const a ); static void insertKeyboardActions( KActionCollection* const a );
CCommentaryReadWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name=0); CCommentaryReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0);
/** /**
* Store the settings of this window in the given CProfileWindow object. * Store the settings of this window in the given CProfileWindow object.
*/ */

@ -48,16 +48,16 @@
using namespace Profile; using namespace Profile;
CReadWindow* CDisplayWindow::createReadInstance(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char* name) { CReadWindow* CDisplayWindow::createReadInstance(ListCSwordModuleInfo modules, CMDIArea* parent, const char* name) {
switch (modules.first()->type()) { switch (modules.first()->type()) {
case CSwordModuleInfo::Bible: case CSwordModuleInfo::Bible:
return new CBibleReadWindow(modules, tqparent, name); return new CBibleReadWindow(modules, parent, name);
case CSwordModuleInfo::Commentary: case CSwordModuleInfo::Commentary:
return new CCommentaryReadWindow(modules, tqparent, name); return new CCommentaryReadWindow(modules, parent, name);
case CSwordModuleInfo::Lexicon: case CSwordModuleInfo::Lexicon:
return new CLexiconReadWindow(modules, tqparent, name); return new CLexiconReadWindow(modules, parent, name);
case CSwordModuleInfo::GenericBook: case CSwordModuleInfo::GenericBook:
return new CBookReadWindow(modules, tqparent, name); return new CBookReadWindow(modules, parent, name);
default: default:
qWarning("unknown module type"); qWarning("unknown module type");
break; break;
@ -66,23 +66,23 @@ CReadWindow* CDisplayWindow::createReadInstance(ListCSwordModuleInfo modules, CM
} }
CWriteWindow* CDisplayWindow::createWriteInstance(ListCSwordModuleInfo modules, CMDIArea* tqparent, const CDisplayWindow::WriteWindowType type, const char* name) { CWriteWindow* CDisplayWindow::createWriteInstance(ListCSwordModuleInfo modules, CMDIArea* parent, const CDisplayWindow::WriteWindowType type, const char* name) {
if (type == HTMLWindow) { if (type == HTMLWindow) {
return new CHTMLWriteWindow(modules, tqparent, name); return new CHTMLWriteWindow(modules, parent, name);
} }
else { else {
return new CPlainWriteWindow(modules, tqparent, name); return new CPlainWriteWindow(modules, parent, name);
} }
return 0; return 0;
} }
CDisplayWindow::CDisplayWindow(ListCSwordModuleInfo modules, CMDIArea *tqparent, const char *name ) CDisplayWindow::CDisplayWindow(ListCSwordModuleInfo modules, CMDIArea *parent, const char *name )
#if KDE_VERSION >= 0x030200 #if KDE_VERSION >= 0x030200
: KMainWindow(KMainWindow::NoDCOPObject, tqparent, name, WDestructiveClose), : KMainWindow(KMainWindow::NoDCOPObject, parent, name, WDestructiveClose),
#else #else
: KMainWindow(tqparent, name, WDestructiveClose), : KMainWindow(parent, name, WDestructiveClose),
#endif #endif
m_mdi(tqparent), m_mdi(parent),
m_filterOptions(), m_filterOptions(),
m_displayOptions(), m_displayOptions(),
m_displaySettingsButton(0), m_displaySettingsButton(0),

@ -58,8 +58,8 @@ public:
PlainTextWindow = 2 PlainTextWindow = 2
}; };
static CReadWindow* createReadInstance(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char* name = 0); static CReadWindow* createReadInstance(ListCSwordModuleInfo modules, CMDIArea* parent, const char* name = 0);
static CWriteWindow* createWriteInstance(ListCSwordModuleInfo modules, CMDIArea* tqparent, const WriteWindowType type = HTMLWindow, const char* name = 0); static CWriteWindow* createWriteInstance(ListCSwordModuleInfo modules, CMDIArea* parent, const WriteWindowType type = HTMLWindow, const char* name = 0);
/** /**
* Insert the keyboard accelerators of this window into the given KAccel object. * Insert the keyboard accelerators of this window into the given KAccel object.
*/ */
@ -195,7 +195,7 @@ protected:
friend class CMDIArea; friend class CMDIArea;
friend class CBibleReadWindow; friend class CBibleReadWindow;
CDisplayWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name=0); CDisplayWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0);
virtual ~CDisplayWindow(); virtual ~CDisplayWindow();
/** /**
* Initializes the intern keyboard actions. * Initializes the intern keyboard actions.

@ -25,8 +25,8 @@
using namespace Profile; using namespace Profile;
CHTMLWriteWindow::CHTMLWriteWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name) CHTMLWriteWindow::CHTMLWriteWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name)
: CPlainWriteWindow(modules, tqparent, name) {} : CPlainWriteWindow(modules, parent, name) {}
CHTMLWriteWindow::~CHTMLWriteWindow() {} CHTMLWriteWindow::~CHTMLWriteWindow() {}

@ -27,7 +27,7 @@ class CHTMLWriteWindow : public CPlainWriteWindow {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CHTMLWriteWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name = 0); CHTMLWriteWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name = 0);
virtual ~CHTMLWriteWindow(); virtual ~CHTMLWriteWindow();
/** /**

@ -36,7 +36,7 @@
#include <kdeversion.h> #include <kdeversion.h>
// #include <kactionclasses.h> // #include <kactionclasses.h>
CLexiconReadWindow::CLexiconReadWindow(ListCSwordModuleInfo moduleList, CMDIArea* tqparent, const char *name) : CReadWindow(moduleList, tqparent,name) { CLexiconReadWindow::CLexiconReadWindow(ListCSwordModuleInfo moduleList, CMDIArea* parent, const char *name) : CReadWindow(moduleList, parent,name) {
setKey( CSwordKey::createInstance(moduleList.first()) ); setKey( CSwordKey::createInstance(moduleList.first()) );
} }

@ -34,7 +34,7 @@ class CLexiconReadWindow : public CReadWindow {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CLexiconReadWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name=0); CLexiconReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0);
virtual ~CLexiconReadWindow(); virtual ~CLexiconReadWindow();
/** /**
* Store the settings of this window in the given CProfileWindow object. * Store the settings of this window in the given CProfileWindow object.

@ -14,8 +14,8 @@
#include <tqtimer.h> #include <tqtimer.h>
CModuleChooserBar::CModuleChooserBar(ListCSwordModuleInfo useModules, CSwordModuleInfo::ModuleType type, TQWidget *tqparent, const char *name ) CModuleChooserBar::CModuleChooserBar(ListCSwordModuleInfo useModules, CSwordModuleInfo::ModuleType type, TQWidget *parent, const char *name )
: KToolBar(tqparent,name), : KToolBar(parent,name),
m_moduleType(type), m_moduleType(type),
m_idCounter(0), m_idCounter(0),
m_buttonLimit(-1) //-1 means no limit m_buttonLimit(-1) //-1 means no limit

@ -36,7 +36,7 @@ public:
/** /**
* Default constructor * Default constructor
*/ */
CModuleChooserBar(ListCSwordModuleInfo useModules, CSwordModuleInfo::ModuleType type, TQWidget *tqparent=0, const char *name=0); CModuleChooserBar(ListCSwordModuleInfo useModules, CSwordModuleInfo::ModuleType type, TQWidget *parent=0, const char *name=0);
/** /**
* Returns a list of selected modules. * Returns a list of selected modules.
*/ */

@ -27,9 +27,9 @@
#include <kglobal.h> #include <kglobal.h>
#include <kiconloader.h> #include <kiconloader.h>
CModuleChooserButton::CModuleChooserButton(CSwordModuleInfo* useModule,CSwordModuleInfo::ModuleType type, const int id, CModuleChooserBar *tqparent, const char *name ) CModuleChooserButton::CModuleChooserButton(CSwordModuleInfo* useModule,CSwordModuleInfo::ModuleType type, const int id, CModuleChooserBar *parent, const char *name )
: KToolBarButton(iconName(), id, tqparent, name), : KToolBarButton(iconName(), id, parent, name),
m_id(id), m_popup(0), m_moduleChooserBar(tqparent) { m_id(id), m_popup(0), m_moduleChooserBar(parent) {
m_moduleType = type; m_moduleType = type;
m_module = useModule; m_module = useModule;
if (!m_module) { if (!m_module) {

@ -35,7 +35,7 @@ class CModuleChooserButton : public KToolBarButton, public CPointers {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CModuleChooserButton(CSwordModuleInfo* useModule, CSwordModuleInfo::ModuleType type, const int id, CModuleChooserBar *tqparent, const char *name = 0 ); CModuleChooserButton(CSwordModuleInfo* useModule, CSwordModuleInfo::ModuleType type, const int id, CModuleChooserBar *parent, const char *name = 0 );
~CModuleChooserButton(); ~CModuleChooserButton();
CSwordModuleInfo* module(); CSwordModuleInfo* module();

@ -28,7 +28,7 @@
using namespace Profile; using namespace Profile;
CPlainWriteWindow::CPlainWriteWindow(ListCSwordModuleInfo moduleList, CMDIArea* tqparent, const char *name ) : CWriteWindow(moduleList, tqparent, name) { CPlainWriteWindow::CPlainWriteWindow(ListCSwordModuleInfo moduleList, CMDIArea* parent, const char *name ) : CWriteWindow(moduleList, parent, name) {
setKey( CSwordKey::createInstance(moduleList.first()) ); setKey( CSwordKey::createInstance(moduleList.first()) );
} }

@ -29,7 +29,7 @@ class CPlainWriteWindow : public CWriteWindow {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CPlainWriteWindow( ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name = 0 ); CPlainWriteWindow( ListCSwordModuleInfo modules, CMDIArea* parent, const char *name = 0 );
virtual ~CPlainWriteWindow(); virtual ~CPlainWriteWindow();
/** /**

@ -35,8 +35,8 @@
using namespace Profile; using namespace Profile;
CReadWindow::CReadWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name ) CReadWindow::CReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name )
: CDisplayWindow(modules,tqparent,name), : CDisplayWindow(modules,parent,name),
m_displayWidget(0) { m_displayWidget(0) {
// installEventFilter(this); // installEventFilter(this);

@ -35,7 +35,7 @@ public:
// static void insertKeyboardActions( KAccel* const a ); // static void insertKeyboardActions( KAccel* const a );
static void insertKeyboardActions( KActionCollection* const a ); static void insertKeyboardActions( KActionCollection* const a );
CReadWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name=0); CReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0);
virtual ~CReadWindow(); virtual ~CReadWindow();
/** /**
* Store the settings of this window in the given CProfileWindow object. * Store the settings of this window in the given CProfileWindow object.

@ -22,8 +22,8 @@
using namespace Profile; using namespace Profile;
CWriteWindow::CWriteWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name ) CWriteWindow::CWriteWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name )
: CDisplayWindow(modules, tqparent,name), m_writeDisplay(0) {} : CDisplayWindow(modules, parent,name), m_writeDisplay(0) {}
CWriteWindow::~CWriteWindow() {} CWriteWindow::~CWriteWindow() {}

@ -29,7 +29,7 @@ class CWriteWindow : public CDisplayWindow {
public: public:
static void insertKeyboardActions( KActionCollection* const a ); static void insertKeyboardActions( KActionCollection* const a );
CWriteWindow(ListCSwordModuleInfo modules, CMDIArea* tqparent, const char *name=0); CWriteWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0);
virtual ~CWriteWindow(); virtual ~CWriteWindow();
/** /**
* Store the settings of this window in the given CProfileWindow object. * Store the settings of this window in the given CProfileWindow object.

@ -28,8 +28,8 @@
//KDE includes //KDE includes
#include <klocale.h> #include <klocale.h>
CBibleKeyChooser::CBibleKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *tqparent, const char *name ) CBibleKeyChooser::CBibleKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *parent, const char *name )
: CKeyChooser(modules, key, tqparent, name), : CKeyChooser(modules, key, parent, name),
m_key(dynamic_cast<CSwordVerseKey*>(key)) { m_key(dynamic_cast<CSwordVerseKey*>(key)) {
w_ref = 0; w_ref = 0;
setModules(modules, false); setModules(modules, false);

@ -39,7 +39,7 @@ public:
* the constructor * the constructor
* you should not need to use this, use @ref CKeyChooser::createInstance instead * you should not need to use this, use @ref CKeyChooser::createInstance instead
*/ */
CBibleKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key=0, TQWidget *tqparent=0, const char *name=0); CBibleKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key=0, TQWidget *parent=0, const char *name=0);
public slots: public slots:
/** /**

@ -20,8 +20,8 @@
TQMap<TQObject*, int> boxes; TQMap<TQObject*, int> boxes;
CBookKeyChooser::CBookKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *tqparent, const char *name) CBookKeyChooser::CBookKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *parent, const char *name)
: CKeyChooser(modules, key, tqparent,name), m_layout(0) { : CKeyChooser(modules, key, parent,name), m_layout(0) {
setModules(modules, false); setModules(modules, false);
m_key = dynamic_cast<CSwordTreeKey*>(key); m_key = dynamic_cast<CSwordTreeKey*>(key);

@ -42,7 +42,7 @@ class CBookKeyChooser : public CKeyChooser {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CBookKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key=0, TQWidget *tqparent=0, const char *name=0); CBookKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key=0, TQWidget *parent=0, const char *name=0);
~CBookKeyChooser(); ~CBookKeyChooser();
/** /**
* Refreshes the content. * Refreshes the content.
@ -75,7 +75,7 @@ public slots: // Public slots
protected: // Protected methods protected: // Protected methods
/** /**
* Fills the combo given by depth with the items from the key having depth "depth". * Fills the combo given by depth with the items from the key having depth "depth".
* The tqparent sibling is given by key. * The parent sibling is given by key.
*/ */
void setupCombo(const TQString key, const int depth, const int currentItem); void setupCombo(const TQString key, const int depth, const int currentItem);
/** No descriptions */ /** No descriptions */

@ -25,8 +25,8 @@
//////////// ////////////
CBookTreeChooser::TreeItem::TreeItem(TQListViewItem* tqparent, TQListViewItem* after, CSwordTreeKey* key, const TQString keyName) CBookTreeChooser::TreeItem::TreeItem(TQListViewItem* parent, TQListViewItem* after, CSwordTreeKey* key, const TQString keyName)
: KListViewItem(tqparent, after), : KListViewItem(parent, after),
m_key(key), m_key(key),
m_keyName(keyName) { m_keyName(keyName) {
//qDebug("first CBookTreeChooser::TreeItem ctor"); //qDebug("first CBookTreeChooser::TreeItem ctor");
@ -39,8 +39,8 @@ m_keyName(keyName) {
m_key->setOffset( offset ); m_key->setOffset( offset );
}; };
CBookTreeChooser::TreeItem::TreeItem(TQListViewItem* tqparent,CSwordTreeKey* key, const TQString keyName) CBookTreeChooser::TreeItem::TreeItem(TQListViewItem* parent,CSwordTreeKey* key, const TQString keyName)
: KListViewItem(tqparent), : KListViewItem(parent),
m_key(key), m_key(key),
m_keyName(keyName) { m_keyName(keyName) {
//qDebug("second CBookTreeChooser::TreeItem ctor"); //qDebug("second CBookTreeChooser::TreeItem ctor");
@ -124,8 +124,8 @@ void CBookTreeChooser::TreeItem::setOpen(bool o) {
////////////////////////////////// //////////////////////////////////
CBookTreeChooser::CBookTreeChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *tqparent, const char *name) CBookTreeChooser::CBookTreeChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *parent, const char *name)
: CKeyChooser(modules, key, tqparent,name), : CKeyChooser(modules, key, parent,name),
m_key( dynamic_cast<CSwordTreeKey*>(key) ) { m_key( dynamic_cast<CSwordTreeKey*>(key) ) {
setModules(modules, false); setModules(modules, false);
@ -177,7 +177,7 @@ void CBookTreeChooser::setKey(CSwordKey* newKey, const bool emitSignal) {
TQListViewItem* child = m_treeView->firstChild(); TQListViewItem* child = m_treeView->firstChild();
while( child && index < count ) { while( child && index < count ) {
if (child->text(0) == currentSibling) { //found a tqparent of our item if (child->text(0) == currentSibling) { //found a parent of our item
//found right entry? //found right entry?
TreeItem* i = dynamic_cast<TreeItem*>(child); TreeItem* i = dynamic_cast<TreeItem*>(child);
if (!i || i->key() == key) { if (!i || i->key() == key) {

@ -47,7 +47,7 @@ class CBookTreeChooser : public CKeyChooser {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CBookTreeChooser(ListCSwordModuleInfo modules, CSwordKey *key=0, TQWidget *tqparent=0, const char *name=0); CBookTreeChooser(ListCSwordModuleInfo modules, CSwordKey *key=0, TQWidget *parent=0, const char *name=0);
~CBookTreeChooser(); ~CBookTreeChooser();
/** /**
* Refreshes the content. * Refreshes the content.
@ -88,8 +88,8 @@ protected slots: // Protected slots
private: private:
class TreeItem : public KListViewItem { class TreeItem : public KListViewItem {
public: public:
TreeItem(TQListViewItem* tqparent, TQListViewItem* after, CSwordTreeKey* key, const TQString keyName); TreeItem(TQListViewItem* parent, TQListViewItem* after, CSwordTreeKey* key, const TQString keyName);
TreeItem(TQListViewItem* tqparent, CSwordTreeKey* key, const TQString keyName); TreeItem(TQListViewItem* parent, CSwordTreeKey* key, const TQString keyName);
TreeItem(TQListView* view,TQListViewItem* after, CSwordTreeKey* key, const TQString keyName); TreeItem(TQListView* view,TQListViewItem* after, CSwordTreeKey* key, const TQString keyName);
const TQString& key() const; const TQString& key() const;
void createChilds(); void createChilds();

@ -19,13 +19,13 @@
#include "cbiblekeychooser.h" #include "cbiblekeychooser.h"
#include "cbookkeychooser.h" #include "cbookkeychooser.h"
CKeyChooser::CKeyChooser(ListCSwordModuleInfo, CSwordKey *, TQWidget *tqparent, const char *name ) CKeyChooser::CKeyChooser(ListCSwordModuleInfo, CSwordKey *, TQWidget *parent, const char *name )
: TQWidget(tqparent, name), : TQWidget(parent, name),
m_inHistoryFunction(false) {} m_inHistoryFunction(false) {}
CKeyChooser::~CKeyChooser() {} CKeyChooser::~CKeyChooser() {}
CKeyChooser* CKeyChooser::createInstance(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *tqparent) { CKeyChooser* CKeyChooser::createInstance(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *parent) {
if (!modules.count()) { if (!modules.count()) {
return 0; return 0;
} }
@ -34,13 +34,13 @@ CKeyChooser* CKeyChooser::createInstance(ListCSwordModuleInfo modules, CSwordKey
switch ( modules.first()->type() ) { switch ( modules.first()->type() ) {
case CSwordModuleInfo::Commentary: //Bibles and commentaries uise the same key chooser case CSwordModuleInfo::Commentary: //Bibles and commentaries uise the same key chooser
case CSwordModuleInfo::Bible: case CSwordModuleInfo::Bible:
ck = new CBibleKeyChooser(modules,key,tqparent); ck = new CBibleKeyChooser(modules,key,parent);
break; break;
case CSwordModuleInfo::Lexicon: case CSwordModuleInfo::Lexicon:
ck = new CLexiconKeyChooser(modules,key,tqparent); ck = new CLexiconKeyChooser(modules,key,parent);
break; break;
case CSwordModuleInfo::GenericBook: case CSwordModuleInfo::GenericBook:
ck = new CBookKeyChooser(modules,key,tqparent); ck = new CBookKeyChooser(modules,key,parent);
break; break;
default: default:
return 0; return 0;

@ -40,9 +40,9 @@ public:
* @ref CBibleKeyChooser * @ref CBibleKeyChooser
* @param info the @ref CModuleInfo to be represented by the KeyChooser * @param info the @ref CModuleInfo to be represented by the KeyChooser
* @param key if not NULL, the @ref CKey the KeyChooser should be set to * @param key if not NULL, the @ref CKey the KeyChooser should be set to
* @param tqparent the tqparent of the widget to create * @param parent the parent of the widget to create
*/ */
static CKeyChooser* createInstance(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *tqparent); static CKeyChooser* createInstance(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *parent);
const TQStringList getPreviousKeys() const; const TQStringList getPreviousKeys() const;
const TQStringList getNextKeys() const; const TQStringList getNextKeys() const;
@ -98,7 +98,7 @@ protected:
/** /**
* the constructor - DO NOT USE! -- use @ref #createInstance instead! * the constructor - DO NOT USE! -- use @ref #createInstance instead!
*/ */
CKeyChooser(ListCSwordModuleInfo info, CSwordKey *key=0, TQWidget *tqparent=0, const char *name=0); CKeyChooser(ListCSwordModuleInfo info, CSwordKey *key=0, TQWidget *parent=0, const char *name=0);
virtual ~CKeyChooser(); virtual ~CKeyChooser();
/** /**
* Set the appropriate font do display the modules * Set the appropriate font do display the modules

@ -30,8 +30,8 @@
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqrect.h> #include <tqrect.h>
CKCComboBox::CKCComboBox(bool rw,TQWidget* tqparent,const char* name) CKCComboBox::CKCComboBox(bool rw,TQWidget* parent,const char* name)
: TQComboBox(rw,tqparent,name) { : TQComboBox(rw,parent,name) {
setFocusPolicy(TQ_WheelFocus); setFocusPolicy(TQ_WheelFocus);
if (lineEdit()) { if (lineEdit()) {
installEventFilter( lineEdit() ); installEventFilter( lineEdit() );
@ -92,7 +92,7 @@ void CKCComboBox::wheelEvent( TQWheelEvent* e ) {
//**********************************************************************************/ //**********************************************************************************/
CKeyChooserWidget::CKeyChooserWidget(int count, const bool useNextPrevSignals, TQWidget *tqparent, const char *name) : TQWidget(tqparent,name) { CKeyChooserWidget::CKeyChooserWidget(int count, const bool useNextPrevSignals, TQWidget *parent, const char *name) : TQWidget(parent,name) {
m_useNextPrevSignals = useNextPrevSignals; m_useNextPrevSignals = useNextPrevSignals;
for (int index=1; index <= count; index++) { for (int index=1; index <= count; index++) {
@ -102,7 +102,7 @@ CKeyChooserWidget::CKeyChooserWidget(int count, const bool useNextPrevSignals,
reset(m_list,0,false); reset(m_list,0,false);
}; };
CKeyChooserWidget::CKeyChooserWidget(TQStringList *list, const bool useNextPrevSignals, TQWidget *tqparent, const char *name ) : TQWidget(tqparent,name) { CKeyChooserWidget::CKeyChooserWidget(TQStringList *list, const bool useNextPrevSignals, TQWidget *parent, const char *name ) : TQWidget(parent,name) {
m_useNextPrevSignals = useNextPrevSignals; m_useNextPrevSignals = useNextPrevSignals;
if (list) { if (list) {

@ -40,7 +40,7 @@ class CKCComboBox : public TQComboBox {
TQ_OBJECT TQ_OBJECT
public: public:
CKCComboBox(bool rw, TQWidget * tqparent=0, const char * name=0 ); CKCComboBox(bool rw, TQWidget * parent=0, const char * name=0 );
/** /**
* Returns the size this widget would like to have. * Returns the size this widget would like to have.
*/ */
@ -77,11 +77,11 @@ public:
/** /**
* the constructor * the constructor
*/ */
CKeyChooserWidget(TQStringList *list=0, const bool useNextPrevSignals = false, TQWidget *tqparent=0, const char *name=0); CKeyChooserWidget(TQStringList *list=0, const bool useNextPrevSignals = false, TQWidget *parent=0, const char *name=0);
/** /**
* the constructor * the constructor
*/ */
CKeyChooserWidget(int count=0, const bool useNextPrevSignals = false, TQWidget *tqparent=0, const char *name=0); CKeyChooserWidget(int count=0, const bool useNextPrevSignals = false, TQWidget *parent=0, const char *name=0);
/** /**
* This function does clear the combobox, then fill in * This function does clear the combobox, then fill in
* the StringList, set the ComboBox' current item to index * the StringList, set the ComboBox' current item to index

@ -49,7 +49,7 @@ TQString CKeyReferenceCompletion::makeCompletion(const TQString &text) {
//**********************************************************************************/ //**********************************************************************************/
/* To get popup working we have to rework KLineEdit too */ /* To get popup working we have to rework KLineEdit too */
CKeyReferenceLineEdit::CKeyReferenceLineEdit(TQWidget *tqparent, const char *name) : KLineEdit(tqparent,name) { CKeyReferenceLineEdit::CKeyReferenceLineEdit(TQWidget *parent, const char *name) : KLineEdit(parent,name) {
} }
void CKeyReferenceLineEdit::makeCompletion(const TQString &text) { void CKeyReferenceLineEdit::makeCompletion(const TQString &text) {
@ -80,7 +80,7 @@ void CKeyReferenceLineEdit::makeCompletion(const TQString &text) {
//**********************************************************************************/ //**********************************************************************************/
CKeyReferenceWidget::CKeyReferenceWidget( CSwordBibleModuleInfo *mod, CSwordVerseKey *key, TQWidget *tqparent, const char *name) : TQWidget(tqparent,name) { CKeyReferenceWidget::CKeyReferenceWidget( CSwordBibleModuleInfo *mod, CSwordVerseKey *key, TQWidget *parent, const char *name) : TQWidget(parent,name) {
updatelock = false; updatelock = false;
m_module = mod; m_module = mod;

@ -40,7 +40,7 @@ class CKeyReferenceLineEdit : public KLineEdit {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CKeyReferenceLineEdit(TQWidget *tqparent=0, const char *name=0); CKeyReferenceLineEdit(TQWidget *parent=0, const char *name=0);
void makeCompletion(const TQString &); void makeCompletion(const TQString &);
}; };
@ -51,7 +51,7 @@ public:
/** /**
* the constructor * the constructor
*/ */
CKeyReferenceWidget(CSwordBibleModuleInfo *, CSwordVerseKey*, TQWidget *tqparent=0, const char *name=0); CKeyReferenceWidget(CSwordBibleModuleInfo *, CSwordVerseKey*, TQWidget *parent=0, const char *name=0);
bool setKey(CSwordVerseKey* key); bool setKey(CSwordVerseKey* key);
KLineEdit* textbox(); KLineEdit* textbox();
void setModule(CSwordBibleModuleInfo *m = 0); void setModule(CSwordBibleModuleInfo *m = 0);

@ -31,8 +31,8 @@
//KDE includes //KDE includes
#include <klocale.h> #include <klocale.h>
CLexiconKeyChooser::CLexiconKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *tqparent, const char *name ) CLexiconKeyChooser::CLexiconKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *parent, const char *name )
: CKeyChooser(modules, key, tqparent, name), : CKeyChooser(modules, key, parent, name),
m_key(dynamic_cast<CSwordLDKey*>(key)) { m_key(dynamic_cast<CSwordLDKey*>(key)) {
setModules(modules, false); setModules(modules, false);

@ -38,7 +38,7 @@ public:
* *
* you should not need to use this, use @ref CKeyChooser::createInstance instead * you should not need to use this, use @ref CKeyChooser::createInstance instead
*/ */
CLexiconKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key=0, TQWidget *tqparent=0, const char *name=0); CLexiconKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key=0, TQWidget *parent=0, const char *name=0);
public slots: public slots:
/** /**

@ -24,8 +24,8 @@
#include <klocale.h> #include <klocale.h>
//CRefSelectDialog::CRefSelectDialog(TQWidget *tqparent) //CRefSelectDialog::CRefSelectDialog(TQWidget *parent)
// : KDialogBase(tqparent, "Refenences", // : KDialogBase(parent, "Refenences",
// true, i18n("Refenence selector"), // true, i18n("Refenence selector"),
// KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true), // KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true),
// m_oldPos(0,0) // m_oldPos(0,0)
@ -77,12 +77,12 @@
// key->key(m_lineedit->text()); // key->key(m_lineedit->text());
// m_chooser->setKey(key); // m_chooser->setKey(key);
// //
// // restore tqparent of stolen widget // // restore parent of stolen widget
// restoreParent(); // restoreParent();
//} //}
// //
//void CRefSelectDialog::slotPressedCancel() { //void CRefSelectDialog::slotPressedCancel() {
// // restore tqparent of stolen widget // // restore parent of stolen widget
// restoreParent(); // restoreParent();
//} //}
// //

@ -28,7 +28,7 @@ class TQLineEdit;
// Q_OBJECT // Q_OBJECT
TQ_OBJECT TQ_OBJECT
// public: // public:
// CRefSelectDialog(TQWidget *tqparent); // CRefSelectDialog(TQWidget *parent);
// virtual ~CRefSelectDialog(); // virtual ~CRefSelectDialog();
// //
// void setChooser(CKeyChooser* const chooser); // void setChooser(CKeyChooser* const chooser);

@ -21,7 +21,7 @@
#include <tqapplication.h> #include <tqapplication.h>
#include <tqcursor.h> #include <tqcursor.h>
CScrollButton::CScrollButton(TQWidget *tqparent, const char *name ) : TQToolButton(tqparent,name) { CScrollButton::CScrollButton(TQWidget *parent, const char *name ) : TQToolButton(parent,name) {
setFocusPolicy(TQ_WheelFocus); setFocusPolicy(TQ_WheelFocus);
setCursor( splitVCursor ); setCursor( splitVCursor );

@ -27,7 +27,7 @@ public:
/** /**
* The constructor * The constructor
*/ */
CScrollButton(TQWidget *tqparent=0, const char *name=0); CScrollButton(TQWidget *parent=0, const char *name=0);
const bool isLocked() const; const bool isLocked() const;
signals: signals:

@ -35,7 +35,7 @@ const unsigned int WIDTH = 16;
const unsigned int ARROW_HEIGHT = 12; const unsigned int ARROW_HEIGHT = 12;
const unsigned int MOVER_HEIGHT = 6; const unsigned int MOVER_HEIGHT = 6;
CScrollerWidgetSet::CScrollerWidgetSet(TQWidget *tqparent, const char *name) : TQWidget(tqparent,name) { CScrollerWidgetSet::CScrollerWidgetSet(TQWidget *parent, const char *name) : TQWidget(parent,name) {
m_layout = new TQVBoxLayout(this); m_layout = new TQVBoxLayout(this);
m_layout->tqsetAlignment(TQt::AlignHCenter | TQt::AlignCenter); m_layout->tqsetAlignment(TQt::AlignHCenter | TQt::AlignCenter);

@ -34,7 +34,7 @@ public:
/** /**
* the constructor * the constructor
*/ */
CScrollerWidgetSet(TQWidget *tqparent=0, const char *name=0); CScrollerWidgetSet(TQWidget *parent=0, const char *name=0);
/** /**
* Sets the tooltips for the given entries using the parameters as text. * Sets the tooltips for the given entries using the parameters as text.
*/ */

@ -87,7 +87,7 @@ void CItemBase::moveAfter( CItemBase* const item ) {
if (!item) if (!item)
return; return;
if ( tqparent() == item->tqparent() ) { //same tqparent means level if ( parent() == item->parent() ) { //same parent means level
moveItem(item); //both items are on the same level, so we can use moveItem moveItem(item); //both items are on the same level, so we can use moveItem
} }
} }
@ -510,7 +510,7 @@ TQPtrList<TQListViewItem> CFolderBase::getChildList() {
return childs; return childs;
TQListViewItem* i = firstChild(); TQListViewItem* i = firstChild();
while (i && (i->tqparent() == this)) { while (i && (i->parent() == this)) {
CItemBase* item = dynamic_cast<CItemBase*>(i); CItemBase* item = dynamic_cast<CItemBase*>(i);
if (item) { //we found a valid item if (item) { //we found a valid item
childs.append(item); childs.append(item);
@ -527,7 +527,7 @@ TQPtrList<TQListViewItem> CFolderBase::getChildList() {
do { do {
i = i->nextSibling(); i = i->nextSibling();
} }
while (i && (i->tqparent() != this)); while (i && (i->parent() != this));
} }
return childs; return childs;
@ -714,8 +714,8 @@ namespace Bookmarks {
content.setAttribute("syntaxVersion", CURRENT_SYNTAX_VERSION); content.setAttribute("syntaxVersion", CURRENT_SYNTAX_VERSION);
doc.appendChild(content); doc.appendChild(content);
//first create the bookmark groups in the XML document, then add the bookmarks to each tqparent //first create the bookmark groups in the XML document, then add the bookmarks to each parent
TQMap<int, TQDomElement> parentMap; //maps tqparent ids to dom elements TQMap<int, TQDomElement> parentMap; //maps parent ids to dom elements
TQStringList groupList = config->readListEntry("Groups"); TQStringList groupList = config->readListEntry("Groups");
@ -810,7 +810,7 @@ OldBookmarksFolder::OldBookmarksFolder(CTreeFolder* folder) : CBookmarkFolder(fo
// Append the XML nodes of all child items // Append the XML nodes of all child items
CItemBase* i = dynamic_cast<CItemBase*>(firstChild()); CItemBase* i = dynamic_cast<CItemBase*>(firstChild());
while( i ) { while( i ) {
if (i->tqparent() == this) { if (i->parent() == this) {
TQDomElement newElem = i->saveToXML( doc ); TQDomElement newElem = i->saveToXML( doc );
if (!newElem.isNull()) { if (!newElem.isNull()) {
elem.appendChild( newElem ); //append to this folder elem.appendChild( newElem ); //append to this folder
@ -892,7 +892,7 @@ SubFolder::SubFolder(CFolderBase* parentItem, TQDomElement& xml ) : CBookmarkFol
//append the XML nodes of all child items //append the XML nodes of all child items
CItemBase* i = dynamic_cast<CItemBase*>(firstChild()); CItemBase* i = dynamic_cast<CItemBase*>(firstChild());
while( i ) { while( i ) {
if (i->tqparent() == this) { if (i->parent() == this) {
TQDomElement newElem = i->saveToXML( doc ); TQDomElement newElem = i->saveToXML( doc );
if (!newElem.isNull()) { if (!newElem.isNull()) {
elem.appendChild( newElem ); //append to this folder elem.appendChild( newElem ); //append to this folder
@ -1035,7 +1035,7 @@ const bool CBookmarkFolder::saveBookmarks( const TQString& filename, const bool&
//append the XML nodes of all child items //append the XML nodes of all child items
CItemBase* i = dynamic_cast<CItemBase*>( firstChild() ); CItemBase* i = dynamic_cast<CItemBase*>( firstChild() );
while( i ) { while( i ) {
if (i->tqparent() == this) { //only one level under this folder if (i->parent() == this) { //only one level under this folder
TQDomElement newElem = i->saveToXML( doc ); // the cild creates it's own XML code TQDomElement newElem = i->saveToXML( doc ); // the cild creates it's own XML code
if (!newElem.isNull()) { if (!newElem.isNull()) {
content.appendChild( newElem ); //append to this folder content.appendChild( newElem ); //append to this folder

@ -42,7 +42,7 @@
using namespace Printing; using namespace Printing;
CMainIndex::ToolTip::ToolTip(CMainIndex* tqparent) : TQToolTip(tqparent->viewport()), m_mainIndex(tqparent) {} CMainIndex::ToolTip::ToolTip(CMainIndex* parent) : TQToolTip(parent->viewport()), m_mainIndex(parent) {}
void CMainIndex::ToolTip::maybeTip(const TQPoint& p) { void CMainIndex::ToolTip::maybeTip(const TQPoint& p) {
CItemBase* i = dynamic_cast<CItemBase*>(m_mainIndex->itemAt(p)); CItemBase* i = dynamic_cast<CItemBase*>(m_mainIndex->itemAt(p));
@ -77,7 +77,7 @@ void CMainIndex::ToolTip::maybeTip(const TQPoint& p) {
} }
} }
CMainIndex::CMainIndex(TQWidget *tqparent) : KListView(tqparent), CMainIndex::CMainIndex(TQWidget *parent) : KListView(parent),
m_searchDialog(0), m_toolTip(0), m_itemsMovable(false), m_autoOpenFolder(0), m_autoOpenTimer(this) { m_searchDialog(0), m_toolTip(0), m_itemsMovable(false), m_autoOpenFolder(0), m_autoOpenTimer(this) {
initView(); initView();
initConnections(); initConnections();
@ -272,9 +272,9 @@ void CMainIndex::initTree() {
} }
/** No descriptions */ /** No descriptions */
void CMainIndex::dropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewItem* after) { void CMainIndex::dropped( TQDropEvent* e, TQListViewItem* parent, TQListViewItem* after) {
Q_ASSERT(after); Q_ASSERT(after);
Q_ASSERT(tqparent); Q_ASSERT(parent);
//the drop was started in this main index widget //the drop was started in this main index widget
if (m_itemsMovable && ((e->source()) == (viewport()))) { if (m_itemsMovable && ((e->source()) == (viewport()))) {
@ -283,7 +283,7 @@ void CMainIndex::dropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewIt
* folder or one of its subfolders * folder or one of its subfolders
* we remove the current items because the new ones will be inserted soon. * we remove the current items because the new ones will be inserted soon.
*/ */
if (dynamic_cast<CBookmarkFolder*>(tqparent) || dynamic_cast<Bookmarks::SubFolder*>(tqparent)) { if (dynamic_cast<CBookmarkFolder*>(parent) || dynamic_cast<Bookmarks::SubFolder*>(parent)) {
// we drop onto the bookmark folder or one of it's subfolders // we drop onto the bookmark folder or one of it's subfolders
// TQPtrList<TQListViewItem> items = selectedItems(); // TQPtrList<TQListViewItem> items = selectedItems();
// items.setAutoDelete(true); // items.setAutoDelete(true);
@ -292,7 +292,7 @@ void CMainIndex::dropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewIt
} }
//finally do the drop, either with external drop data or with the moved items' data //finally do the drop, either with external drop data or with the moved items' data
CItemBase* const parentItem = dynamic_cast<CItemBase*>(tqparent); CItemBase* const parentItem = dynamic_cast<CItemBase*>(parent);
CItemBase* const afterItem = dynamic_cast<CItemBase*>(after); CItemBase* const afterItem = dynamic_cast<CItemBase*>(after);
bool removeSelectedItems = true; bool removeSelectedItems = true;
@ -323,14 +323,14 @@ void CMainIndex::dropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewIt
if (afterItem->acceptDrop(e)) { if (afterItem->acceptDrop(e)) {
afterItem->dropped(e, after); afterItem->dropped(e, after);
} }
else { //insert in the tqparent folder and then move the inserted items else { //insert in the parent folder and then move the inserted items
parentItem->dropped(e, after); parentItem->dropped(e, after);
} }
} }
parentItem->setOpen(true); parentItem->setOpen(true);
} }
else if (parentItem) { //no after item present, but a tqparent is there else if (parentItem) { //no after item present, but a parent is there
moveSelectedItems = false; moveSelectedItems = false;
removeSelectedItems = false; removeSelectedItems = false;
@ -762,7 +762,7 @@ void CMainIndex::readSettings() {
TQStringList openGroups = CBTConfig::get(CBTConfig::bookshelfOpenGroups); TQStringList openGroups = CBTConfig::get(CBTConfig::bookshelfOpenGroups);
for (TQStringList::Iterator it( openGroups.begin() ); it != openGroups.end(); ++it) { for (TQStringList::Iterator it( openGroups.begin() ); it != openGroups.end(); ++it) {
TQStringList path = TQStringList::split("/", (*it)); //e.g. with items tqparent, child TQStringList path = TQStringList::split("/", (*it)); //e.g. with items parent, child
TQListViewItem* item = firstChild(); //begin on the top for each item TQListViewItem* item = firstChild(); //begin on the top for each item
Q_ASSERT(item); Q_ASSERT(item);
unsigned int index = 1; unsigned int index = 1;
@ -833,9 +833,9 @@ void CMainIndex::saveSettings() {
//it.current()'s full name needs to be added to the list //it.current()'s full name needs to be added to the list
TQListViewItem* i = it.current(); TQListViewItem* i = it.current();
TQString fullName = i->text(0); TQString fullName = i->text(0);
while (i->tqparent()) { while (i->parent()) {
i = i->tqparent(); i = i->parent();
fullName.prepend("/").prepend( i->text(0).replace("/", "\\/")); // tqparent / child fullName.prepend("/").prepend( i->text(0).replace("/", "\\/")); // parent / child
} }
openGroups << fullName; openGroups << fullName;
} }
@ -856,7 +856,7 @@ void CMainIndex::saveSettings() {
TQString path; TQString path;
while (item) { while (item) {
path.prepend( item->text(0) + "/" ); path.prepend( item->text(0) + "/" );
item = item->tqparent(); item = item->parent();
} }
CBTConfig::set(CBTConfig::bookshelfCurrentItem, path); CBTConfig::set(CBTConfig::bookshelfCurrentItem, path);
} }

@ -40,7 +40,7 @@ class CMainIndex : public KListView {
class ToolTip : public TQToolTip { class ToolTip : public TQToolTip {
public: public:
ToolTip(CMainIndex* tqparent); ToolTip(CMainIndex* parent);
virtual ~ToolTip() {} virtual ~ToolTip() {}
/** /**
* Displays a tooltip for position p using the getToolTip() function of CGroupManagerItem * Displays a tooltip for position p using the getToolTip() function of CGroupManagerItem
@ -52,7 +52,7 @@ class CMainIndex : public KListView {
}; };
public: public:
CMainIndex(TQWidget *tqparent); CMainIndex(TQWidget *parent);
virtual ~CMainIndex(); virtual ~CMainIndex();
void initTree(); void initTree();

@ -21,11 +21,11 @@
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
/* /*
* Constructs a ManageIndicesForm as a child of 'tqparent', with the * Constructs a ManageIndicesForm as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
ManageIndicesForm::ManageIndicesForm( TQWidget* tqparent, const char* name, WFlags fl ) ManageIndicesForm::ManageIndicesForm( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( tqparent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "ManageIndicesForm" ); setName( "ManageIndicesForm" );

@ -66,7 +66,7 @@ CSwordModuleInfo* const CModuleChooser::ModuleCheckBoxItem::module() const {
/****************************/ /****************************/
/****************************/ /****************************/
CModuleChooser::CModuleChooser(TQWidget* tqparent) : KListView(tqparent) { CModuleChooser::CModuleChooser(TQWidget* parent) : KListView(parent) {
initView(); initView();
initTree(); initTree();
} }

@ -54,7 +54,7 @@ public:
CSwordModuleInfo* m_module; CSwordModuleInfo* m_module;
}; };
CModuleChooser(TQWidget* tqparent); CModuleChooser(TQWidget* parent);
~CModuleChooser(); ~CModuleChooser();
/** /**
* Sets the list of modules and updates the state of the checkbox items. * Sets the list of modules and updates the state of the checkbox items.

@ -34,8 +34,8 @@ namespace Search {
************ ModuleResultList ************** ************ ModuleResultList **************
********************************************/ ********************************************/
CModuleResultView::CModuleResultView(TQWidget* tqparent, const char* name) : CModuleResultView::CModuleResultView(TQWidget* parent, const char* name) :
KListView(tqparent, name) { KListView(parent, name) {
initView(); initView();
initConnections(); initConnections();
strongsResults = 0; strongsResults = 0;
@ -150,7 +150,7 @@ void CModuleResultView::setupTree( ListCSwordModuleInfo modules, const TQString&
executed(currentItem()); executed(currentItem());
} }
void CModuleResultView::setupStrongsResults(CSwordModuleInfo* module, TQListViewItem* tqparent, void CModuleResultView::setupStrongsResults(CSwordModuleInfo* module, TQListViewItem* parent,
const TQString& sNumber) { const TQString& sNumber) {
TQString lText; TQString lText;
util::CSortListViewItem* item = 0; util::CSortListViewItem* item = 0;
@ -160,7 +160,7 @@ void CModuleResultView::setupStrongsResults(CSwordModuleInfo* module, TQListView
for (int cnt = 0; cnt < strongsResults->Count(); ++cnt) { for (int cnt = 0; cnt < strongsResults->Count(); ++cnt) {
lText = strongsResults->keyText(cnt); lText = strongsResults->keyText(cnt);
item = new util::CSortListViewItem(tqparent, lText, TQString::number(strongsResults->keyCount(cnt))); item = new util::CSortListViewItem(parent, lText, TQString::number(strongsResults->keyCount(cnt)));
item->setColumnSorting(1, util::CSortListViewItem::Number); item->setColumnSorting(1, util::CSortListViewItem::Number);
} }
} }
@ -201,10 +201,10 @@ CSwordModuleInfo* const CModuleResultView::activeModule() {
return 0; return 0;
} }
// we need to find the tqparent most node because that is the node // we need to find the parent most node because that is the node
// that is the module name. // that is the module name.
while (item->tqparent()) { while (item->parent()) {
item = item->tqparent(); item = item->parent();
} }
if (item) { if (item) {

@ -43,7 +43,7 @@ class CModuleResultView : public KListView {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CModuleResultView(TQWidget* tqparent, const char* name = 0); CModuleResultView(TQWidget* parent, const char* name = 0);
~CModuleResultView(); ~CModuleResultView();
/** /**
@ -65,7 +65,7 @@ protected: // Protected methods
*/ */
void initConnections(); void initConnections();
void setupStrongsResults(CSwordModuleInfo* module, TQListViewItem* tqparent, const TQString& searchedText); void setupStrongsResults(CSwordModuleInfo* module, TQListViewItem* parent, const TQString& searchedText);
protected slots: // Protected slots protected slots: // Protected slots
/** /**

@ -104,8 +104,8 @@ void CSearchAnalysisDialog::initConnections() {}
/* CSearchAnalysis */ /* CSearchAnalysis */
/****************************/ /****************************/
CSearchAnalysis::CSearchAnalysis(TQObject *tqparent, const char *name ) CSearchAnalysis::CSearchAnalysis(TQObject *parent, const char *name )
: TQCanvas(tqparent,name) { : TQCanvas(parent,name) {
m_scaleFactor = 0.0; m_scaleFactor = 0.0;
m_legend = 0; m_legend = 0;
@ -290,8 +290,8 @@ const unsigned int CSearchAnalysis::getCount( const TQString book, CSwordModuleI
//------------------------------------------------------------------ //------------------------------------------------------------------
//------------------------------------------------------------------ //------------------------------------------------------------------
CSearchAnalysisItem::CSearchAnalysisItem(TQCanvas *tqparent, const int moduleCount, const TQString &bookname, double *scaleFactor, ListCSwordModuleInfo* modules) CSearchAnalysisItem::CSearchAnalysisItem(TQCanvas *parent, const int moduleCount, const TQString &bookname, double *scaleFactor, ListCSwordModuleInfo* modules)
: TQCanvasRectangle(tqparent), : TQCanvasRectangle(parent),
m_moduleList( modules ), m_moduleList( modules ),
m_scaleFactor(scaleFactor), m_scaleFactor(scaleFactor),
m_bookName(bookname), m_bookName(bookname),
@ -411,8 +411,8 @@ const TQString CSearchAnalysisItem::getToolTip() {
//------------------------------------------------------------------ //------------------------------------------------------------------
//------------------------------------------------------------------ //------------------------------------------------------------------
CSearchAnalysisView::CSearchAnalysisView(TQCanvas* canvas, TQWidget* tqparent) CSearchAnalysisView::CSearchAnalysisView(TQCanvas* canvas, TQWidget* parent)
: TQCanvasView(canvas, tqparent) { : TQCanvasView(canvas, parent) {
setFocusPolicy(TQ_WheelFocus); setFocusPolicy(TQ_WheelFocus);
m_toolTip = new ToolTip(this); m_toolTip = new ToolTip(this);
resize(tqsizeHint()); resize(tqsizeHint());
@ -431,7 +431,7 @@ void CSearchAnalysisView::resizeEvent( TQResizeEvent* e) {
canvas()->resize( canvas()->width(), viewport()->height() ); canvas()->resize( canvas()->width(), viewport()->height() );
} }
CSearchAnalysisView::ToolTip::ToolTip(TQWidget* tqparent) : TQToolTip(tqparent) {} CSearchAnalysisView::ToolTip::ToolTip(TQWidget* parent) : TQToolTip(parent) {}
void CSearchAnalysisView::ToolTip::maybeTip(const TQPoint& p) { void CSearchAnalysisView::ToolTip::maybeTip(const TQPoint& p) {
CSearchAnalysisView* view = dynamic_cast<CSearchAnalysisView*>(parentWidget()); CSearchAnalysisView* view = dynamic_cast<CSearchAnalysisView*>(parentWidget());
@ -469,8 +469,8 @@ CSearchAnalysisItem* CSearchAnalysisView::itemAt( const TQPoint& p ) {
//------------------------------------------------------------------ //------------------------------------------------------------------
//------------------------------------------------------------------ //------------------------------------------------------------------
CSearchAnalysisLegendItem::CSearchAnalysisLegendItem(TQCanvas *tqparent, ListCSwordModuleInfo *list ) CSearchAnalysisLegendItem::CSearchAnalysisLegendItem(TQCanvas *parent, ListCSwordModuleInfo *list )
: TQCanvasRectangle(tqparent) { : TQCanvasRectangle(parent) {
m_moduleList = list; m_moduleList = list;
} }

@ -54,7 +54,7 @@ class CSearchAnalysis : public TQCanvas {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CSearchAnalysis(TQObject *tqparent=0, const char *name=0); CSearchAnalysis(TQObject *parent=0, const char *name=0);
virtual ~CSearchAnalysis(); virtual ~CSearchAnalysis();
/** /**
* Starts the analysis of the search result. * Starts the analysis of the search result.
@ -135,7 +135,7 @@ public:
/** /**
* Standard constructor. * Standard constructor.
*/ */
CSearchAnalysisItem(TQCanvas* tqparent, const int moduleCount, const TQString& bookname, double *scaleFactor, ListCSwordModuleInfo* modules); CSearchAnalysisItem(TQCanvas* parent, const int moduleCount, const TQString& bookname, double *scaleFactor, ListCSwordModuleInfo* modules);
virtual ~CSearchAnalysisItem(); virtual ~CSearchAnalysisItem();
/** /**
* Sets the resultcount of this item * Sets the resultcount of this item
@ -169,7 +169,7 @@ private:
class CSearchAnalysisLegendItem : public TQCanvasRectangle { class CSearchAnalysisLegendItem : public TQCanvasRectangle {
public: public:
CSearchAnalysisLegendItem(TQCanvas* tqparent, ListCSwordModuleInfo* list ); CSearchAnalysisLegendItem(TQCanvas* parent, ListCSwordModuleInfo* list );
private: private:
virtual void draw (TQPainter & painter); virtual void draw (TQPainter & painter);
@ -185,10 +185,10 @@ public:
/** /**
* Standard constructor * Standard constructor
*/ */
CSearchAnalysisView(TQCanvas* canvas, TQWidget* tqparent); CSearchAnalysisView(TQCanvas* canvas, TQWidget* parent);
/** /**
* Returns the tqsizeHint for this view * Returns the tqsizeHint for this view
* We give back the size of the tqparent widgetas default. * We give back the size of the parent widgetas default.
* This is a reimplementation from TQCanvasView::tqsizeHint(). * This is a reimplementation from TQCanvasView::tqsizeHint().
*/ */
virtual TQSize tqsizeHint(); virtual TQSize tqsizeHint();
@ -207,7 +207,7 @@ protected:
private: private:
class ToolTip : public TQToolTip { class ToolTip : public TQToolTip {
public: public:
ToolTip(TQWidget* tqparent); ToolTip(TQWidget* parent);
virtual ~ToolTip() {} virtual ~ToolTip() {}
; ;
/** /**

@ -81,8 +81,8 @@ CSearchDialog* const CSearchDialog::getSearchDialog() {
return m_staticDialog; return m_staticDialog;
}; };
CSearchDialog::CSearchDialog(TQWidget *tqparent) CSearchDialog::CSearchDialog(TQWidget *parent)
: KDialogBase(Plain, i18n("Search dialog"), Close | User1, User1, tqparent, "CSearchDialog", false, true, i18n("Search")) { : KDialogBase(Plain, i18n("Search dialog"), Close | User1, User1, parent, "CSearchDialog", false, true, i18n("Search")) {
setWFlags( getWFlags() | TQt::WStyle_MinMax ); setWFlags( getWFlags() | TQt::WStyle_MinMax );
setIcon(CResMgr::searchdialog::icon); setIcon(CResMgr::searchdialog::icon);

@ -65,7 +65,7 @@ protected:
* The cinstructor of the dialog. It's protected because you should use the static public function openDialog. * The cinstructor of the dialog. It's protected because you should use the static public function openDialog.
* The dialog destroys itself if it was closed. * The dialog destroys itself if it was closed.
*/ */
CSearchDialog(TQWidget *tqparent); CSearchDialog(TQWidget *parent);
~CSearchDialog(); ~CSearchDialog();
/** /**

@ -157,8 +157,8 @@ TQString StrongsResultClass::getStrongsNumberText(const TQString& verseContent,
********** CSearchDialogResultPage ********* ********** CSearchDialogResultPage *********
********************************************/ ********************************************/
CSearchResultPage::CSearchResultPage(TQWidget *tqparent, const char *name ) : CSearchResultPage::CSearchResultPage(TQWidget *parent, const char *name ) :
SearchResultsForm(tqparent, name) { SearchResultsForm(parent, name) {
initView(); initView();
initConnections(); initConnections();
} }
@ -577,8 +577,8 @@ void CSearchResultPage::showAnalysis() {
namespace Options { namespace Options {
CSearchOptionsPage::CSearchOptionsPage(TQWidget *tqparent, const char *name ) : CSearchOptionsPage::CSearchOptionsPage(TQWidget *parent, const char *name ) :
SearchOptionsForm(tqparent,name) { SearchOptionsForm(parent,name) {
initView(); initView();
readSettings(); readSettings();
} }

@ -153,7 +153,7 @@ class CSearchResultPage : public SearchResultsForm {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CSearchResultPage(TQWidget *tqparent=0, const char *name=0); CSearchResultPage(TQWidget *parent=0, const char *name=0);
~CSearchResultPage(); ~CSearchResultPage();
/** /**
* Sets the modules which contain the result of each. * Sets the modules which contain the result of each.
@ -210,7 +210,7 @@ class CSearchOptionsPage : public SearchOptionsForm {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CSearchOptionsPage(TQWidget *tqparent=0, const char *name=0); CSearchOptionsPage(TQWidget *parent=0, const char *name=0);
~CSearchOptionsPage(); ~CSearchOptionsPage();
/** /**
* Sets the search text used in the page. * Sets the search text used in the page.

@ -28,8 +28,8 @@
namespace Search { namespace Search {
namespace Result { namespace Result {
CSearchResultView::CSearchResultView(TQWidget* tqparent, const char* name) : CSearchResultView::CSearchResultView(TQWidget* parent, const char* name) :
KListView(tqparent, name), m_module(0) { KListView(parent, name), m_module(0) {
initView(); initView();
initConnections(); initConnections();
} }

@ -40,7 +40,7 @@ class CSearchResultView : public KListView {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CSearchResultView(TQWidget* tqparent, const char* name = 0); CSearchResultView(TQWidget* parent, const char* name = 0);
virtual ~CSearchResultView(); virtual ~CSearchResultView();
/** Returns the module which is currently used. */ /** Returns the module which is currently used. */
CSwordModuleInfo* const module(); CSwordModuleInfo* const module();

@ -20,11 +20,11 @@
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
/* /*
* Constructs a SearchOptionsForm as a child of 'tqparent', with the * Constructs a SearchOptionsForm as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
SearchOptionsForm::SearchOptionsForm( TQWidget* tqparent, const char* name, WFlags fl ) SearchOptionsForm::SearchOptionsForm( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( tqparent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "SearchOptionsForm" ); setName( "SearchOptionsForm" );

@ -21,11 +21,11 @@
#include "csearchresultview.h" #include "csearchresultview.h"
/* /*
* Constructs a SearchResultsForm as a child of 'tqparent', with the * Constructs a SearchResultsForm as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
SearchResultsForm::SearchResultsForm( TQWidget* tqparent, const char* name, WFlags fl ) SearchResultsForm::SearchResultsForm( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( tqparent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "SearchResultsForm" ); setName( "SearchResultsForm" );

@ -15,37 +15,37 @@
namespace util { namespace util {
CSortListViewItem::CSortListViewItem(TQListViewItem* tqparent) : KListViewItem(tqparent) CSortListViewItem::CSortListViewItem(TQListViewItem* parent) : KListViewItem(parent)
{ {
} }
CSortListViewItem::CSortListViewItem( TQListView * tqparent, TQListViewItem * after ) CSortListViewItem::CSortListViewItem( TQListView * parent, TQListViewItem * after )
: KListViewItem ( tqparent, after ) : KListViewItem ( parent, after )
{ {
} }
CSortListViewItem::CSortListViewItem( TQListViewItem * tqparent, TQListViewItem * after ) CSortListViewItem::CSortListViewItem( TQListViewItem * parent, TQListViewItem * after )
: KListViewItem ( tqparent, after ) : KListViewItem ( parent, after )
{ {
} }
CSortListViewItem::CSortListViewItem( TQListView * tqparent, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 ) CSortListViewItem::CSortListViewItem( TQListView * parent, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 )
: KListViewItem( tqparent, label1, label2, label3, label4, label5, label6, label7, label8 ) : KListViewItem( parent, label1, label2, label3, label4, label5, label6, label7, label8 )
{ {
} }
CSortListViewItem::CSortListViewItem( TQListViewItem * tqparent, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 ) CSortListViewItem::CSortListViewItem( TQListViewItem * parent, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 )
: KListViewItem ( tqparent, label1, label2, label3, label4, label5, label6, label7, label8 ) : KListViewItem ( parent, label1, label2, label3, label4, label5, label6, label7, label8 )
{ {
} }
CSortListViewItem::CSortListViewItem( TQListView * tqparent, TQListViewItem * after, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 ) CSortListViewItem::CSortListViewItem( TQListView * parent, TQListViewItem * after, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 )
: KListViewItem ( tqparent, after, label1, label2, label3, label4, label5, label6, label7, label8 ) : KListViewItem ( parent, after, label1, label2, label3, label4, label5, label6, label7, label8 )
{ {
} }
CSortListViewItem::CSortListViewItem( TQListViewItem * tqparent, TQListViewItem * after, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 ) CSortListViewItem::CSortListViewItem( TQListViewItem * parent, TQListViewItem * after, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 )
: KListViewItem ( tqparent, after, label1, label2, label3, label4, label5, label6, label7, label8 ) : KListViewItem ( parent, after, label1, label2, label3, label4, label5, label6, label7, label8 )
{ {
} }

@ -29,19 +29,19 @@ public:
Number, String/*, BibleKey*/ Number, String/*, BibleKey*/
}; };
CSortListViewItem( TQListViewItem* tqparent ); CSortListViewItem( TQListViewItem* parent );
CSortListViewItem( TQListView * tqparent, TQListViewItem * after ); CSortListViewItem( TQListView * parent, TQListViewItem * after );
CSortListViewItem( TQListViewItem * tqparent, TQListViewItem * after ); CSortListViewItem( TQListViewItem * parent, TQListViewItem * after );
CSortListViewItem( TQListView * tqparent, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() ); CSortListViewItem( TQListView * parent, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() );
CSortListViewItem( TQListViewItem * tqparent, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() ); CSortListViewItem( TQListViewItem * parent, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() );
CSortListViewItem( TQListView * tqparent, TQListViewItem * after, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() ); CSortListViewItem( TQListView * parent, TQListViewItem * after, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() );
CSortListViewItem( TQListViewItem * tqparent, TQListViewItem * after, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() ); CSortListViewItem( TQListViewItem * parent, TQListViewItem * after, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() );
virtual ~CSortListViewItem(); virtual ~CSortListViewItem();

@ -159,8 +159,8 @@ TQPixmap CToolClass::getIconForModule( CSwordModuleInfo* module_info ) {
return img; return img;
} }
TQLabel* CToolClass::explanationLabel(TQWidget* tqparent, const TQString& heading, const TQString& text ) { TQLabel* CToolClass::explanationLabel(TQWidget* parent, const TQString& heading, const TQString& text ) {
TQLabel* label = new TQLabel( TQString::tqfromLatin1("<B>%1</B><BR>%2").tqarg(heading).tqarg(text),tqparent ); TQLabel* label = new TQLabel( TQString::tqfromLatin1("<B>%1</B><BR>%2").tqarg(heading).tqarg(text),parent );
label->setAutoResize(true); label->setAutoResize(true);
label->setMargin(1); label->setMargin(1);
label->setFrameStyle(TQFrame::Box | TQFrame::Plain); label->setFrameStyle(TQFrame::Box | TQFrame::Plain);

@ -65,7 +65,7 @@ public:
* This function returns a label with heading "heading" and explanation "text". This label should be used to * This function returns a label with heading "heading" and explanation "text". This label should be used to
* explain difficult things of the GUI, e.g. in the optionsdialog. * explain difficult things of the GUI, e.g. in the optionsdialog.
*/ */
static TQLabel* explanationLabel(TQWidget* tqparent, const TQString& heading, const TQString& text ); static TQLabel* explanationLabel(TQWidget* parent, const TQString& heading, const TQString& text );
/** /**
* Returns true if the character at position "pos" of text is inside an HTML tag. Returns false if it's not inside an HTML tag. * Returns true if the character at position "pos" of text is inside an HTML tag. Returns false if it's not inside an HTML tag.
*/ */

Loading…
Cancel
Save