summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/kexidbfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/kexidbfactory.cpp')
-rw-r--r--kexi/plugins/forms/kexidbfactory.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kexi/plugins/forms/kexidbfactory.cpp b/kexi/plugins/forms/kexidbfactory.cpp
index 3f47a6ec..d87b31c5 100644
--- a/kexi/plugins/forms/kexidbfactory.cpp
+++ b/kexi/plugins/forms/kexidbfactory.cpp
@@ -398,9 +398,9 @@ KexiDBFactory::createWidget(const TQCString &c, TQWidget *p, const char *n,
/* else if(c == "KexiDBTimeEdit")
w = new KexiDBTimeEdit(TQTime::currentTime(), p, n);
else if(c == "KexiDBDateEdit")
- w = new KexiDBDateEdit(TQDate::tqcurrentDate(), p, n);
+ w = new KexiDBDateEdit(TQDate::currentDate(), p, n);
else if(c == "KexiDBDateTimeEdit")
- w = new KexiDBDateTimeEdit(TQDateTime::tqcurrentDateTime(), p, n);*/
+ w = new KexiDBDateTimeEdit(TQDateTime::currentDateTime(), p, n);*/
// else if(c == "KexiDBIntSpinBox")
// w = new KexiDBIntSpinBox(p, n);
// else if(c == "KexiDBDoubleSpinBox")
@@ -462,7 +462,7 @@ KexiDBFactory::startEditing(const TQCString &classname, TQWidget *w, KFormDesign
//! just inherited StdWidgetFactory::clearWidgetContent() should be called
KLineEdit *lineedit = static_cast<KLineEdit*>(w);
createEditor(classname, lineedit->text(), lineedit, container,
- lineedit->tqgeometry(), lineedit->tqalignment(), true);
+ lineedit->geometry(), lineedit->alignment(), true);
return true;
}
if(classname == "KexiDBTextEdit")
@@ -471,7 +471,7 @@ KexiDBFactory::startEditing(const TQCString &classname, TQWidget *w, KFormDesign
//! just inherited StdWidgetFactory::clearWidgetContent() should be called
KTextEdit *textedit = static_cast<KTextEdit*>(w);
createEditor(classname, textedit->text(), textedit, container,
- textedit->tqgeometry(), textedit->tqalignment(), true, true);
+ textedit->geometry(), textedit->alignment(), true, true);
//copy a few properties
KTextEdit *ed = dynamic_cast<KTextEdit *>( editor(w) );
ed->setWrapPolicy(textedit->wrapPolicy());
@@ -497,13 +497,13 @@ KexiDBFactory::startEditing(const TQCString &classname, TQWidget *w, KFormDesign
}
if ( classname == "KexiDBLabel" )
- w->resize(w->tqsizeHint());
+ w->resize(w->sizeHint());
}
else
{
createEditor(classname, label->text(), label, container,
- label->tqgeometry(), label->tqalignment(),
- false, label->tqalignment() & TQt::WordBreak /*multiline*/);
+ label->geometry(), label->alignment(),
+ false, label->alignment() & TQt::WordBreak /*multiline*/);
}
return true;
}
@@ -529,12 +529,12 @@ KexiDBFactory::startEditing(const TQCString &classname, TQWidget *w, KFormDesign
if(static_cast<KexiDBAutoField*>(w)->hasAutoCaption())
return false; // caption is auto, abort editing
TQLabel *label = static_cast<KexiDBAutoField*>(w)->label();
- createEditor(classname, label->text(), label, container, label->tqgeometry(), label->tqalignment());
+ createEditor(classname, label->text(), label, container, label->geometry(), label->alignment());
return true;
}
else if (classname == "KexiDBCheckBox") {
KexiDBCheckBox *cb = static_cast<KexiDBCheckBox*>(w);
- TQRect r( cb->tqgeometry() );
+ TQRect r( cb->geometry() );
r.setLeft( r.left() + 2 + cb->tqstyle().subRect( TQStyle::SR_CheckBoxIndicator, cb ).width() );
createEditor(classname, cb->text(), cb, container, r, TQt::AlignAuto);
return true;
@@ -679,7 +679,7 @@ KexiDBFactory::changeText(const TQString &text)
changeProperty("caption", text, form);
return true;
}
- //! \todo check field's tqgeometry
+ //! \todo check field's geometry
return false;
}
@@ -690,7 +690,7 @@ KexiDBFactory::resizeEditor(TQWidget *editor, TQWidget *w, const TQCString &clas
//TQPoint p = widget->pos();
if(classname == "KexiDBAutoField")
- editor->setGeometry( static_cast<KexiDBAutoField*>(w)->label()->tqgeometry() );
+ editor->setGeometry( static_cast<KexiDBAutoField*>(w)->label()->geometry() );
}
void