Remove various '#define' strings - part 6

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit eab2995851)
r14.1.x
Michele Calgaro 11 months ago
parent 039fcfa844
commit 35d1f21775
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -971,7 +971,7 @@ namespace KviLocale
if(findCatalogue(szBuffer,"kvirc",localeDir))
{
g_pMainCatalogue->load(szBuffer);
g_pTranslator = new KviTranslator(TQT_TQOBJECT(app),"kvirc_translator");
g_pTranslator = new KviTranslator(app,"kvirc_translator");
app->installTranslator(g_pTranslator);
} else {
KviStr szTmp = g_szLang;

@ -201,14 +201,14 @@ void KviCustomToolBar::childEvent(TQChildEvent *e)
if(e->type() == TQEvent::ChildInserted)
{
if(e->child()->isWidgetType())
filterChild(TQT_TQOBJECT(e->child()));
filterChild(e->child());
goto done;
}
if(e->type() == TQEvent::ChildRemoved)
{
if(e->child()->isWidgetType())
unfilterChild(TQT_TQOBJECT(e->child()));
unfilterChild(e->child());
goto done;
}
}
@ -487,7 +487,7 @@ bool KviCustomToolBar::eventFilter(TQObject *o,TQEvent *e)
//d->setPixmap(TQPixmap::grabWidget(m_pMovedChild),TQPoint(m_pMovedChild->width() / 2,m_pMovedChild->height() / 2));
// throw it somewhere else for now
if(m_pFilteredChildren)
unfilterChild(TQT_TQOBJECT(m_pMovedChild));
unfilterChild(m_pMovedChild);
m_pMovedChild->hide();
m_pMovedChild->reparent(g_pFrame,TQPoint(-1000,-1000),false);
TQEvent ev(TQEvent::LayoutHint);

@ -89,7 +89,7 @@ KviMaskInputDialog::KviMaskInputDialog(const TQString &szMask,KviMaskEditor* pEd
m_pChancelButton->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_DISCARD)));
TQRegExp rx( "*!*@*", false,true );
TQValidator* validator = new TQRegExpValidator( rx, TQT_TQOBJECT(this) );
TQValidator* validator = new TQRegExpValidator( rx, this );
m_pEdit->setValidator( validator );
}

@ -217,7 +217,7 @@ bool KviWindow::hasAttention()
// KVIrc window just below and can see it.
// Handle the special case of the dialogs then
TQWidget * w = TQT_TQWIDGET(((TQApplication *)g_pApp)->activeWindow());
TQWidget * w = ((TQApplication *)g_pApp)->activeWindow();
if(w->inherits("TQDialog"))
{
// but make sure that the frame is visible at all!
@ -1140,7 +1140,7 @@ void KviWindow::childrenTreeChanged(TQWidget * widgetAdded)
void KviWindow::updateBackgrounds(TQObject * obj)
{
if(!obj)
obj = TQT_TQOBJECT(this);
obj = this;
TQObjectList list = obj->childrenListObject();
if(!list.isEmpty())
{

@ -119,7 +119,7 @@ KviDccCanvas::~KviDccCanvas()
// delete m_pSlaveThread;
// m_pSlaveThread = 0;
// }
KviThreadManager::killPendingEvents(TQT_TQOBJECT(this));
KviThreadManager::killPendingEvents(this);
// delete m_pDescriptor;
// delete m_pMarshal;
}

@ -1240,7 +1240,7 @@ TQWidget * KviVariantTableItem::createEditor() const
TQString sz;
sz.setNum(m_property.toInt());
e->setText(sz);
e->setValidator(new TQIntValidator(TQT_TQOBJECT(e)));
e->setValidator(new TQIntValidator(e));
return e;
}
break;
@ -1250,7 +1250,7 @@ TQWidget * KviVariantTableItem::createEditor() const
TQString sz;
sz.setNum(m_property.toInt());
e->setText(sz);
TQIntValidator * i = new TQIntValidator(TQT_TQOBJECT(e));
TQIntValidator * i = new TQIntValidator(e);
i->setBottom(0);
e->setValidator(i);
return e;
@ -1493,7 +1493,7 @@ void KviCanvasItemPropertiesWidget::editItem(TQCanvasItem * it)
KviCanvasWidget::KviCanvasWidget(TQWidget * par)
: TQWidget(par,"canvas_widget")
{
m_pCanvas = new TQCanvas(TQT_TQOBJECT(this));
m_pCanvas = new TQCanvas(this);
//#warning "Make this size as parameter of Dcc ?"
m_pCanvas->resize(648,480);
m_pMenuBar = new TQMenuBar(this);

@ -132,7 +132,7 @@ KviDccChat::~KviDccChat()
delete m_pSlaveThread;
m_pSlaveThread = 0;
}
KviThreadManager::killPendingEvents(TQT_TQOBJECT(this));
KviThreadManager::killPendingEvents(this);
}
void KviDccChat::textViewRightClicked()
@ -537,7 +537,7 @@ void KviDccChat::connected()
KviDccChatThread::KviDccChatThread(KviWindow *wnd,kvi_socket_t fd)
: KviDccThread(TQT_TQOBJECT(wnd),fd)
: KviDccThread(wnd,fd)
{
m_pOutBuffers = new KviPointerList<KviDataBuffer>;
m_pOutBuffers->setAutoDelete(true);

@ -82,14 +82,14 @@ void KviDccAcceptBox::acceptClicked()
{
hide();
emit accepted(this,m_pDescriptor);
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
}
void KviDccAcceptBox::rejectClicked()
{
hide();
emit rejected(this,m_pDescriptor);
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
}
void KviDccAcceptBox::closeEvent(TQCloseEvent *e)
@ -97,7 +97,7 @@ void KviDccAcceptBox::closeEvent(TQCloseEvent *e)
hide();
e->ignore();
emit rejected(this,m_pDescriptor);
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
}
void KviDccAcceptBox::showEvent(TQShowEvent *e)
@ -154,7 +154,7 @@ void KviDccRenameBox::closeEvent(TQCloseEvent *e)
if(m_pDescriptor)
{
emit cancelSelected(this,m_pDescriptor);
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
}
}
@ -169,14 +169,14 @@ void KviDccRenameBox::renameClicked()
{
hide();
emit renameSelected(this,m_pDescriptor);
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
}
void KviDccRenameBox::overwriteClicked()
{
hide();
emit overwriteSelected(this,m_pDescriptor);
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
}
void KviDccRenameBox::resumeClicked()
@ -184,14 +184,14 @@ void KviDccRenameBox::resumeClicked()
hide();
m_pDescriptor->bResume = true;
emit overwriteSelected(this,m_pDescriptor);
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
}
void KviDccRenameBox::cancelClicked()
{
hide();
emit cancelSelected(this,m_pDescriptor);
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
}

@ -119,7 +119,7 @@ static KviDccVoiceCodec * kvi_dcc_voice_get_codec(const char * codecName)
KviDccVoiceThread::KviDccVoiceThread(KviWindow * wnd,kvi_socket_t fd,KviDccVoiceThreadOptions * opt)
: KviDccThread(TQT_TQOBJECT(wnd),fd)
: KviDccThread(wnd,fd)
{
#ifndef COMPILE_DISABLE_DCC_VOICE
m_pOpt = opt;
@ -725,7 +725,7 @@ KviDccVoice::~KviDccVoice()
m_pSlaveThread = 0;
}
KviThreadManager::killPendingEvents(TQT_TQOBJECT(this));
KviThreadManager::killPendingEvents(this);
delete m_pUpdateTimer;
// delete m_pDescriptor;

@ -526,7 +526,7 @@ void KviKvsCallbackFileDialog::done(int code)
// ...so skip out of this call stack and ask KviApp to destroy us just
// when the control returns to the main loop.
// If the module is unloaded then , KviApp will notice it and will NOT delete the dialog
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
// calling dialog.unload here WILL lead to a sigsegv (this is SURE
// with a lot of qt versions that have the ugly file dialog "accept before this reference" bug)
@ -657,7 +657,7 @@ void KviKvsCallbackImageDialog::done(int code)
// ...so skip out of this call stack and ask KviApp to destroy us just
// when the control returns to the main loop.
// If the module is unloaded then , KviApp will notice it and will NOT delete the dialog
g_pApp->collectGarbage(TQT_TQOBJECT(this));
g_pApp->collectGarbage(this);
// calling dialog.unload here WILL lead to a sigsegv (this is SURE
// with a lot of qt versions that have the ugly file dialog "accept before this reference" bug)

@ -57,7 +57,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_button)
bool KviKvsObject_button::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQPushButton(parentScriptWidget(),name())),true);
setObject(new TQPushButton(parentScriptWidget(),name()),true);
connect(widget(),TQT_SIGNAL(clicked()),this,TQT_SLOT(slotClicked()));
return true;
}

@ -72,7 +72,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_buttongroup)
// CHECK ME
bool KviKvsObject_buttongroup::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQButtonGroup(name(),parentScriptWidget())), true);
setObject(new TQButtonGroup(name(),parentScriptWidget()), true);
return true;

@ -79,7 +79,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_checkbox)
bool KviKvsObject_checkbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
KviStyledCheckBox * cb = new KviStyledCheckBox(parentScriptWidget(), name());
setObject(TQT_TQOBJECT(cb), true);
setObject(cb, true);
connect(cb,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(toggled(bool)));
connect(widget(),TQT_SIGNAL(clicked()),this,TQT_SLOT(slotClicked()));
return true;

@ -131,7 +131,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_combobox)
bool KviKvsObject_combobox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQComboBox(parentScriptWidget(), name())), true);
setObject(new TQComboBox(parentScriptWidget(), name()), true);
connect (((TQComboBox *)widget()),TQT_SIGNAL(activated( int )),this,TQT_SLOT(slotActivated( int )));
return true;
}

@ -68,11 +68,11 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_dialog)
bool KviKvsObject_dialog::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
TQWidget * w = TQT_TQWIDGET(g_pApp->activeModalWidget());
TQWidget * w = g_pApp->activeModalWidget();
if(!w)w = g_pFrame;
TQDialog * d = new TQDialog(parentScriptWidget() ? parentScriptWidget() : w,name());
//d->setModal(true);
setObject(TQT_TQOBJECT(d));
setObject(d);
return true;
}
bool KviKvsObject_dialog::functionSetModal(KviKvsObjectFunctionCall *c)

@ -91,7 +91,7 @@ KVSO_END_DESTRUCTOR(KviKvsObject_dockwindow)
bool KviKvsObject_dockwindow::init(KviKvsRunTimeContext * pContext,KviKvsVariantList * pParams)
{
setObject(TQT_TQOBJECT(new TQT_DOCK_WINDOW(g_pFrame,getName())),true);
setObject(new TQT_DOCK_WINDOW(g_pFrame,getName()),true);
return true;
}

@ -184,7 +184,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_groupbox)
bool KviKvsObject_groupbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new KviTalGroupBox(name(),parentScriptWidget())), true);
setObject(new KviTalGroupBox(name(),parentScriptWidget()), true);
return true;
}

@ -68,7 +68,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_hbox)
bool KviKvsObject_hbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new KviTalHBox(parentScriptWidget())), true);
setObject(new KviTalHBox(parentScriptWidget()), true);
return true;
}
bool KviKvsObject_hbox::functionsetMargin(KviKvsObjectFunctionCall *c)

@ -223,7 +223,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_label)
bool KviKvsObject_label::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQLabel(parentScriptWidget(), name())), true);
setObject(new TQLabel(parentScriptWidget(), name()), true);
return true;
}

@ -112,7 +112,7 @@ bool KviKvsObject_layout::init(KviKvsRunTimeContext * pContext,KviKvsVariantList
pContext->warning(__tr2qs("The parent of a layout must be a widget!"));
return false;
}
setObject(TQT_TQOBJECT(new TQGridLayout(w)));
setObject(new TQGridLayout(w));
return true;
}

@ -89,7 +89,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_lcd)
bool KviKvsObject_lcd::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQLCDNumber(parentScriptWidget(), name())), true);
setObject(new TQLCDNumber(parentScriptWidget(), name()), true);
return true;
}

@ -217,7 +217,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_lineedit)
bool KviKvsObject_lineedit::init(KviKvsRunTimeContext * pContext,KviKvsVariantList * pParams)
{
setObject(TQT_TQOBJECT(new TQLineEdit(parentScriptWidget(),getName())),true);
setObject(new TQLineEdit(parentScriptWidget(),getName()),true);
connect(widget(),TQT_SIGNAL(returnPressed()),this,TQT_SLOT(slotreturnPressed()));
connect(widget(),TQT_SIGNAL(lostFocus()),this,TQT_SLOT(slotlostFocus()));
connect(widget(),TQT_SIGNAL(textChanged(const TQString & )),this,TQT_SLOT(slottextChanged(const TQString & )));

@ -156,7 +156,7 @@ bool KviKvsObject_listbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantLis
connect(b,TQT_SIGNAL(onItem(KviTalListBoxItem *)),this,TQT_SLOT(onItem(KviTalListBoxItem *)));
setObject(TQT_TQOBJECT(b),true);;
setObject(b,true);;
return true;
}

@ -212,7 +212,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_listview)
bool KviKvsObject_listview::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new KviKvsMdmListView(parentScriptWidget(),name(),this)),true);
setObject(new KviKvsMdmListView(parentScriptWidget(),name(),this),true);
connect(widget(),TQT_SIGNAL(clicked(KviTalListViewItem *)),this,TQT_SLOT(slotClicked(KviTalListViewItem *)));
connect(widget(),TQT_SIGNAL(selectionChanged(KviTalListViewItem *)),this,TQT_SLOT(slotSelectionChanged(KviTalListViewItem *)));
connect(widget(),TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(slotMultipleSelectionChanged()));

@ -68,7 +68,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_mainwindow)
bool KviKvsObject_mainwindow::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new KviTalMainWindow(parentScriptWidget(), name())), true);
setObject(new KviTalMainWindow(parentScriptWidget(), name()), true);
return true;
}

@ -61,7 +61,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_menubar)
bool KviKvsObject_menubar::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQMenuBar(parentScriptWidget(), name())));
setObject(new TQMenuBar(parentScriptWidget(), name()));
return true;
}

@ -340,7 +340,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_mledit)
bool KviKvsObject_mledit::init(KviKvsRunTimeContext * pContext,KviKvsVariantList * pParams)
{
setObject(TQT_TQOBJECT(new KviTalMultiLineEdit(parentScriptWidget(),getName())),true);
setObject(new KviTalMultiLineEdit(parentScriptWidget(),getName()),true);
return true;
}

@ -184,7 +184,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_popupmenu)
bool KviKvsObject_popupmenu::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new KviTalPopupMenu(parentScriptWidget(), name())), true);
setObject(new KviTalPopupMenu(parentScriptWidget(), name()), true);
connect(widget(),TQT_SIGNAL(activated(int)),this,TQT_SLOT(slotactivated(int)));
connect(widget(),TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(slothighlighted(int)));
return true;

@ -90,7 +90,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_progressbar)
bool KviKvsObject_progressbar::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQProgressBar(parentScriptWidget(), name())), true);
setObject(new TQProgressBar(parentScriptWidget(), name()), true);
return true;
}

@ -82,7 +82,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_radiobutton)
bool KviKvsObject_radiobutton::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQRadioButton(parentScriptWidget(),name())),true);
setObject(new TQRadioButton(parentScriptWidget(),name()),true);
connect(widget(),TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(toggled(bool)));
return true;
}

@ -130,7 +130,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_slider)
bool KviKvsObject_slider::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQSlider(parentScriptWidget(), name())), true);
setObject(new TQSlider(parentScriptWidget(), name()), true);
connect(widget(),TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(valueChanged(int)));
return true;
}

@ -132,7 +132,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_spinbox)
bool KviKvsObject_spinbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQSpinBox(parentScriptWidget(), name())), true);
setObject(new TQSpinBox(parentScriptWidget(), name()), true);
connect(widget(),TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(valueChanged(int)));
return true;
}

@ -182,7 +182,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_tabwidget)
bool KviKvsObject_tabwidget::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQTabWidget(parentScriptWidget(), name())), true);
setObject(new TQTabWidget(parentScriptWidget(), name()), true);
connect(widget(),TQT_SIGNAL(currentChanged(int)),this,TQT_SLOT(slotcurrentChanged(int)));
return true;
}

@ -83,7 +83,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_textbrowser)
bool KviKvsObject_textbrowser::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
TQTextBrowser * tb = new TQTextBrowser(parentScriptWidget(), name());
setObject(TQT_TQOBJECT(tb), true);
setObject(tb, true);
connect(tb,TQT_SIGNAL(anchorClicked(const TQString &,const TQString &)),this,TQT_SLOT(anchorClicked(const TQString &,const TQString &)));
return true;
}

@ -86,7 +86,7 @@ bool KviKvsObject_toolbar::init(KviKvsRunTimeContext * pContext,KviKvsVariantLis
}
if(parentObject()->inherits("KviKvsObject_mainwindow"))
{
setObject(TQT_TQOBJECT(new KviTalToolBar(name(), ((KviTalMainWindow *)parentScriptWidget()))), true);
setObject(new KviTalToolBar(name(), ((KviTalMainWindow *)parentScriptWidget())), true);
}
else
{

@ -129,7 +129,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_toolbutton)
bool KviKvsObject_toolbutton::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQToolButton(parentScriptWidget(), name())), true);
setObject(new TQToolButton(parentScriptWidget(), name()), true);
connect(widget(),TQT_SIGNAL(clicked()),this,TQT_SLOT(slotClicked()));
return true;
}

@ -67,7 +67,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_vbox)
bool KviKvsObject_vbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new KviTalVBox(parentScriptWidget())), true);
setObject(new KviTalVBox(parentScriptWidget()), true);
return true;
}

@ -592,7 +592,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_widget)
bool KviKvsObject_widget::init(KviKvsRunTimeContext * pContext,KviKvsVariantList * pParams)
{
setObject(TQT_TQOBJECT(new TQWidget(parentScriptWidget(),getName())),true);
setObject(new TQWidget(parentScriptWidget(),getName()),true);
return true;
}

@ -113,7 +113,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_window)
bool KviKvsObject_window::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
KviWindow * w = new KviKvsScriptWindowWindow(pContext->window()->frame(),name());
setObject(TQT_TQOBJECT(w));
setObject(w);
pContext->window()->frame()->addWindow(w,false);
w->minimize(); // must be minimized before children are added, otherwise the focus handling goes nuts...

@ -124,7 +124,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_wizard)
bool KviKvsObject_wizard::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new KviKvsMdmWizard(parentScriptWidget(), name(),this)), true);
setObject(new KviKvsMdmWizard(parentScriptWidget(), name(),this), true);
return true;
}

@ -184,7 +184,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_workspace)
bool KviKvsObject_workspace::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
setObject(TQT_TQOBJECT(new TQWorkspace(parentScriptWidget(), name())), true);
setObject(new TQWorkspace(parentScriptWidget(), name()), true);
return true;
}

@ -174,7 +174,7 @@ bool KviKvsObject_wrapper::init(KviKvsRunTimeContext * pContext,KviKvsVariantLis
pContext->warning(__tr2qs("Failed to find the widget to wrap"));
return false;
}
setObject(TQT_TQOBJECT(pWidget),false);
setObject(pWidget,false);
return true;
}

@ -842,7 +842,7 @@ static bool objects_kvs_fnc_listObjects(KviKvsModuleFunctionCall * cmd)
idx++;
dumpChildObjects(cmd->window(), TQT_TQOBJECT(it.current()), spacing.ptr(), bFlag,n,idx);
dumpChildObjects(cmd->window(), it.current(), spacing.ptr(), bFlag,n,idx);
}

@ -213,7 +213,7 @@ static bool options_kvs_cmd_edit(KviKvsModuleCommandCall * c)
if(c->hasSwitch('m',"modal"))
{
w = TQT_TQWIDGET(g_pApp->activeModalWidget());
w = g_pApp->activeModalWidget();
if(!w)w = g_pFrame;
} else {
w = g_pFrame;

@ -325,7 +325,7 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(TQWidget * pare
"(case insensitive), you can provide alternative nicknames to be used in case"\
"the server refuses to accept the default one.</center>","options"));
#endif
TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),TQT_TQOBJECT(hb));
TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),hb);
sel->setValidator(v);
TQPushButton * pb = new TQPushButton(__tr2qs_ctx("Alternatives...","options"),hb);

@ -138,7 +138,7 @@ KviNetworkDetailsWidget::KviNetworkDetailsWidget(TQWidget * par,KviIrcNetwork *
l = new TQLabel(__tr2qs_ctx("Nickname:","options"),gbox);
m_pNickEditor = new TQLineEdit(gbox);
TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*","options"),TQT_TQOBJECT(gbox));
TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*","options"),gbox);
m_pNickEditor->setValidator(v);
m_pNickEditor->setText(n->nickName());
#ifdef COMPILE_INFO_TIPS
@ -497,7 +497,7 @@ KviServerDetailsWidget::KviServerDetailsWidget(TQWidget * par,KviIrcServer * s)
l = new TQLabel(__tr2qs_ctx("Nickname:","options"),gbox);
m_pNickEditor = new TQLineEdit(gbox);
TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),TQT_TQOBJECT(gbox));
TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),gbox);
m_pNickEditor->setValidator(v);
m_pNickEditor->setText(s->nickName());
#ifdef COMPILE_INFO_TIPS

@ -336,7 +336,7 @@ KviSetupWizard::KviSetupWizard()
m_pNickSelector = new KviStringSelector(gbox,__tr2qs("Nickname:"),&(KVI_OPTION_STRING(KviOption_stringNickname1)),true);
m_pNickSelector->setMinimumLabelWidth(120);
TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),TQT_TQOBJECT(gbox));
TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),gbox);
m_pNickSelector->setValidator(v);
TQString szOptionalCtcpUserInfo = __tr2qs("This field is optional and will appear as part of the CTCP USERINFO reply.");

Loading…
Cancel
Save