summaryrefslogtreecommitdiffstats
path: root/src/gui/fieldwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/fieldwidget.cpp')
-rw-r--r--src/gui/fieldwidget.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/fieldwidget.cpp b/src/gui/fieldwidget.cpp
index 0983217..dac9da8 100644
--- a/src/gui/fieldwidget.cpp
+++ b/src/gui/fieldwidget.cpp
@@ -45,38 +45,38 @@ using Tellico::GUI::FieldWidget;
const TQRegExp FieldWidget::s_semiColon = TQRegExp(TQString::tqfromLatin1("\\s*;\\s*"));
-FieldWidget* FieldWidget::create(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_) {
+FieldWidget* FieldWidget::create(Data::FieldPtr field_, TQWidget* parent_, const char* name_) {
switch (field_->type()) {
case Data::Field::Line:
- return new GUI::LineFieldWidget(field_, tqparent_, name_);
+ return new GUI::LineFieldWidget(field_, parent_, name_);
case Data::Field::Para:
- return new GUI::ParaFieldWidget(field_, tqparent_, name_);
+ return new GUI::ParaFieldWidget(field_, parent_, name_);
case Data::Field::Bool:
- return new GUI::BoolFieldWidget(field_, tqparent_, name_);
+ return new GUI::BoolFieldWidget(field_, parent_, name_);
case Data::Field::Number:
- return new GUI::NumberFieldWidget(field_, tqparent_, name_);
+ return new GUI::NumberFieldWidget(field_, parent_, name_);
case Data::Field::Choice:
- return new GUI::ChoiceFieldWidget(field_, tqparent_, name_);
+ return new GUI::ChoiceFieldWidget(field_, parent_, name_);
case Data::Field::Table:
case Data::Field::Table2:
- return new GUI::TableFieldWidget(field_, tqparent_, name_);
+ return new GUI::TableFieldWidget(field_, parent_, name_);
case Data::Field::Date:
- return new GUI::DateFieldWidget(field_, tqparent_, name_);
+ return new GUI::DateFieldWidget(field_, parent_, name_);
case Data::Field::URL:
- return new GUI::URLFieldWidget(field_, tqparent_, name_);
+ return new GUI::URLFieldWidget(field_, parent_, name_);
case Data::Field::Image:
- return new GUI::ImageFieldWidget(field_, tqparent_, name_);
+ return new GUI::ImageFieldWidget(field_, parent_, name_);
case Data::Field::Rating:
- return new GUI::RatingFieldWidget(field_, tqparent_, name_);
+ return new GUI::RatingFieldWidget(field_, parent_, name_);
case Data::Field::ReadOnly:
case Data::Field::Dependent:
@@ -89,8 +89,8 @@ FieldWidget* FieldWidget::create(Data::FieldPtr field_, TQWidget* tqparent_, con
}
}
-FieldWidget::FieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/)
- : TQWidget(tqparent_, name_), m_field(field_) {
+FieldWidget::FieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/)
+ : TQWidget(parent_, name_), m_field(field_) {
TQHBoxLayout* l = new TQHBoxLayout(this, 2, 2); // tqparent, margin, spacing
l->addSpacing(4); // add some more space in the columns between widgets
if(TQCString(tqstyle().name()).lower().tqfind("keramik", 0, false) > -1) {