diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/boolfieldwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/choicefieldwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/collectiontypecombo.cpp | 2 | ||||
-rw-r--r-- | src/gui/combobox.cpp | 2 | ||||
-rw-r--r-- | src/gui/combobox.h | 2 | ||||
-rw-r--r-- | src/gui/datefieldwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/datewidget.cpp | 2 | ||||
-rw-r--r-- | src/gui/fieldwidget.cpp | 26 | ||||
-rw-r--r-- | src/gui/imagefieldwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/imagewidget.cpp | 2 | ||||
-rw-r--r-- | src/gui/lineedit.cpp | 2 | ||||
-rw-r--r-- | src/gui/linefieldwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/listview.cpp | 2 | ||||
-rw-r--r-- | src/gui/numberfieldwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/overlaywidget.cpp | 6 | ||||
-rw-r--r-- | src/gui/parafieldwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/previewdialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/progress.cpp | 4 | ||||
-rw-r--r-- | src/gui/ratingfieldwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/ratingwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/stringmapdialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/tabcontrol.cpp | 4 | ||||
-rw-r--r-- | src/gui/tablefieldwidget.cpp | 4 | ||||
-rw-r--r-- | src/gui/urlfieldwidget.cpp | 4 |
24 files changed, 53 insertions, 53 deletions
diff --git a/src/gui/boolfieldwidget.cpp b/src/gui/boolfieldwidget.cpp index ae625be..a3a9649 100644 --- a/src/gui/boolfieldwidget.cpp +++ b/src/gui/boolfieldwidget.cpp @@ -21,8 +21,8 @@ using Tellico::GUI::BoolFieldWidget; -BoolFieldWidget::BoolFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_) { +BoolFieldWidget::BoolFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_) { m_checkBox = new TQCheckBox(this); connect(m_checkBox, TQT_SIGNAL(clicked()), TQT_SIGNAL(modified())); diff --git a/src/gui/choicefieldwidget.cpp b/src/gui/choicefieldwidget.cpp index 8e0240b..83e31f9 100644 --- a/src/gui/choicefieldwidget.cpp +++ b/src/gui/choicefieldwidget.cpp @@ -21,8 +21,8 @@ using Tellico::GUI::ChoiceFieldWidget; -ChoiceFieldWidget::ChoiceFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_), m_comboBox(0) { +ChoiceFieldWidget::ChoiceFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_), m_comboBox(0) { m_comboBox = new KComboBox(this); connect(m_comboBox, TQT_SIGNAL(activated(int)), TQT_SIGNAL(modified())); diff --git a/src/gui/collectiontypecombo.cpp b/src/gui/collectiontypecombo.cpp index 727d26f..c255c87 100644 --- a/src/gui/collectiontypecombo.cpp +++ b/src/gui/collectiontypecombo.cpp @@ -17,7 +17,7 @@ using Tellico::GUI::CollectionTypeCombo; -CollectionTypeCombo::CollectionTypeCombo(TQWidget* tqparent_) : ComboBox(tqparent_) { +CollectionTypeCombo::CollectionTypeCombo(TQWidget* parent_) : ComboBox(parent_) { reset(); } diff --git a/src/gui/combobox.cpp b/src/gui/combobox.cpp index c5b3dfe..d6457f1 100644 --- a/src/gui/combobox.cpp +++ b/src/gui/combobox.cpp @@ -17,7 +17,7 @@ using Tellico::GUI::ComboBox; -ComboBox::ComboBox(TQWidget* tqparent_) : KComboBox(tqparent_) { +ComboBox::ComboBox(TQWidget* parent_) : KComboBox(parent_) { setEditable(false); } diff --git a/src/gui/combobox.h b/src/gui/combobox.h index 98a411b..2fa98c4 100644 --- a/src/gui/combobox.h +++ b/src/gui/combobox.h @@ -31,7 +31,7 @@ namespace Tellico { */ class ComboBox : public KComboBox { public: - ComboBox(TQWidget* tqparent_); + ComboBox(TQWidget* parent_); void clear(); const TQVariant& currentData() const; diff --git a/src/gui/datefieldwidget.cpp b/src/gui/datefieldwidget.cpp index 281cee6..8f308f8 100644 --- a/src/gui/datefieldwidget.cpp +++ b/src/gui/datefieldwidget.cpp @@ -17,8 +17,8 @@ using Tellico::GUI::DateFieldWidget; -DateFieldWidget::DateFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_) { +DateFieldWidget::DateFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_) { m_widget = new DateWidget(this); connect(m_widget, TQT_SIGNAL(signalModified()), TQT_SIGNAL(modified())); diff --git a/src/gui/datewidget.cpp b/src/gui/datewidget.cpp index 054741a..7a2d99b 100644 --- a/src/gui/datewidget.cpp +++ b/src/gui/datewidget.cpp @@ -40,7 +40,7 @@ SpinBox::SpinBox(int min, int max, TQWidget *tqparent) : TQSpinBox(min, max, 1, setSpecialValueText(TQChar(' ')); } -DateWidget::DateWidget(TQWidget* tqparent_, const char* name_) : TQWidget(tqparent_, name_) { +DateWidget::DateWidget(TQWidget* parent_, const char* name_) : TQWidget(parent_, name_) { TQHBoxLayout* l = new TQHBoxLayout(this, 0, 4); KLocale* locale = KGlobal::locale(); 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) { diff --git a/src/gui/imagefieldwidget.cpp b/src/gui/imagefieldwidget.cpp index 253f5f3..9acc732 100644 --- a/src/gui/imagefieldwidget.cpp +++ b/src/gui/imagefieldwidget.cpp @@ -18,8 +18,8 @@ using Tellico::GUI::ImageFieldWidget; -ImageFieldWidget::ImageFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_) { +ImageFieldWidget::ImageFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_) { m_widget = new ImageWidget(this); m_widget->setLinkOnlyChecked(field_->property(TQString::tqfromLatin1("link")) == Latin1Literal("true")); diff --git a/src/gui/imagewidget.cpp b/src/gui/imagewidget.cpp index 575c734..3fe7353 100644 --- a/src/gui/imagewidget.cpp +++ b/src/gui/imagewidget.cpp @@ -40,7 +40,7 @@ namespace { using Tellico::GUI::ImageWidget; -ImageWidget::ImageWidget(TQWidget* tqparent_, const char* name_) : TQWidget(tqparent_, name_) { +ImageWidget::ImageWidget(TQWidget* parent_, const char* name_) : TQWidget(parent_, name_) { TQHBoxLayout* l = new TQHBoxLayout(this); l->setMargin(IMAGE_WIDGET_BUTTON_MARGIN); m_label = new TQLabel(this); diff --git a/src/gui/lineedit.cpp b/src/gui/lineedit.cpp index 68a403d..e5da745 100644 --- a/src/gui/lineedit.cpp +++ b/src/gui/lineedit.cpp @@ -23,7 +23,7 @@ using Tellico::GUI::LineEdit; -LineEdit::LineEdit(TQWidget* tqparent_, const char* name_) : KLineEdit(tqparent_, name_) +LineEdit::LineEdit(TQWidget* parent_, const char* name_) : KLineEdit(parent_, name_) , m_drawHint(false) , m_allowSpellCheck(false) , m_enableSpellCheck(true) diff --git a/src/gui/linefieldwidget.cpp b/src/gui/linefieldwidget.cpp index acc5e33..ccf00d1 100644 --- a/src/gui/linefieldwidget.cpp +++ b/src/gui/linefieldwidget.cpp @@ -21,8 +21,8 @@ using Tellico::GUI::LineFieldWidget; -LineFieldWidget::LineFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_) { +LineFieldWidget::LineFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_) { m_lineEdit = new GUI::LineEdit(this); m_lineEdit->setAllowSpellCheck(true); diff --git a/src/gui/listview.cpp b/src/gui/listview.cpp index 1816da6..5ea04cd 100644 --- a/src/gui/listview.cpp +++ b/src/gui/listview.cpp @@ -25,7 +25,7 @@ using Tellico::GUI::ListView; using Tellico::GUI::ListViewItem; -ListView::ListView(TQWidget* tqparent_, const char* name_) : KListView(tqparent_, name_/*=0*/), +ListView::ListView(TQWidget* parent_, const char* name_) : KListView(parent_, name_/*=0*/), m_sortStyle(SortByText), m_isClear(true) { setSelectionMode(TQListView::Extended); connect(this, TQT_SIGNAL(selectionChanged()), diff --git a/src/gui/numberfieldwidget.cpp b/src/gui/numberfieldwidget.cpp index 9f249c6..e2e038a 100644 --- a/src/gui/numberfieldwidget.cpp +++ b/src/gui/numberfieldwidget.cpp @@ -22,8 +22,8 @@ using Tellico::GUI::NumberFieldWidget; -NumberFieldWidget::NumberFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_), m_lineEdit(0), m_spinBox(0) { +NumberFieldWidget::NumberFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_), m_lineEdit(0), m_spinBox(0) { if(field_->flags() & Data::Field::AllowMultiple) { initLineEdit(); diff --git a/src/gui/overlaywidget.cpp b/src/gui/overlaywidget.cpp index 54d27fe..cc7bfea 100644 --- a/src/gui/overlaywidget.cpp +++ b/src/gui/overlaywidget.cpp @@ -43,7 +43,7 @@ void OverlayWidget::reposition() { return; } - setMaximumSize(tqparentWidget()->size()); + setMaximumSize(parentWidget()->size()); adjustSize(); TQPoint p; @@ -71,8 +71,8 @@ void OverlayWidget::reposition() { // Position in the toplevelwidget's coordinates TQPoint pTopLevel = m_anchor->mapTo(tqtopLevelWidget(), p); - // Position in the widget's tqparentWidget coordinates - TQPoint pParent = tqparentWidget()->mapFrom(tqtopLevelWidget(), pTopLevel); + // Position in the widget's parentWidget coordinates + TQPoint pParent = parentWidget()->mapFrom(tqtopLevelWidget(), pTopLevel); // keep it on the screen if(pParent.x() < 0) { pParent.rx() = 0; diff --git a/src/gui/parafieldwidget.cpp b/src/gui/parafieldwidget.cpp index ba3b583..84af710 100644 --- a/src/gui/parafieldwidget.cpp +++ b/src/gui/parafieldwidget.cpp @@ -19,8 +19,8 @@ using Tellico::GUI::ParaFieldWidget; -ParaFieldWidget::ParaFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_) { +ParaFieldWidget::ParaFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_) { m_textEdit = new KTextEdit(this); m_textEdit->setTextFormat(TQt::PlainText); diff --git a/src/gui/previewdialog.cpp b/src/gui/previewdialog.cpp index 856fcd0..a875382 100644 --- a/src/gui/previewdialog.cpp +++ b/src/gui/previewdialog.cpp @@ -22,8 +22,8 @@ using Tellico::GUI::PreviewDialog; -PreviewDialog::PreviewDialog(TQWidget* tqparent_) - : KDialogBase(tqparent_, "template preview dialog", false /* modal */, +PreviewDialog::PreviewDialog(TQWidget* parent_) + : KDialogBase(parent_, "template preview dialog", false /* modal */, i18n("Template Preview"), KDialogBase::Ok) , m_tempDir(new KTempDir()) { m_tempDir->setAutoDelete(true); diff --git a/src/gui/progress.cpp b/src/gui/progress.cpp index 725d7a0..3ecb98e 100644 --- a/src/gui/progress.cpp +++ b/src/gui/progress.cpp @@ -16,10 +16,10 @@ using Tellico::GUI::Progress; -Progress::Progress(TQWidget* tqparent_) : KProgress(tqparent_) { +Progress::Progress(TQWidget* parent_) : KProgress(parent_) { } -Progress::Progress(int totalSteps_, TQWidget* tqparent_) : KProgress(totalSteps_, tqparent_) { +Progress::Progress(int totalSteps_, TQWidget* parent_) : KProgress(totalSteps_, parent_) { } bool Progress::isDone() const { diff --git a/src/gui/ratingfieldwidget.cpp b/src/gui/ratingfieldwidget.cpp index 3887725..77b1677 100644 --- a/src/gui/ratingfieldwidget.cpp +++ b/src/gui/ratingfieldwidget.cpp @@ -17,8 +17,8 @@ using Tellico::GUI::RatingFieldWidget; -RatingFieldWidget::RatingFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_) { +RatingFieldWidget::RatingFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_) { m_rating = new RatingWidget(field_, this); connect(m_rating, TQT_SIGNAL(modified()), TQT_SIGNAL(modified())); diff --git a/src/gui/ratingwidget.cpp b/src/gui/ratingwidget.cpp index 4bfa9ec..52b7367 100644 --- a/src/gui/ratingwidget.cpp +++ b/src/gui/ratingwidget.cpp @@ -49,8 +49,8 @@ const TQPixmap& RatingWidget::pixmap(const TQString& value_) { return *pix; } -RatingWidget::RatingWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : TQHBox(tqparent_, name_), m_field(field_), m_currIndex(-1) { +RatingWidget::RatingWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : TQHBox(parent_, name_), m_field(field_), m_currIndex(-1) { m_pixOn = UserIcon(TQString::tqfromLatin1("star_on")); m_pixOff = UserIcon(TQString::tqfromLatin1("star_off")); setSpacing(0); diff --git a/src/gui/stringmapdialog.cpp b/src/gui/stringmapdialog.cpp index c542fe5..fbd6f6a 100644 --- a/src/gui/stringmapdialog.cpp +++ b/src/gui/stringmapdialog.cpp @@ -27,8 +27,8 @@ using Tellico::StringMapDialog; -StringMapDialog::StringMapDialog(const TQMap<TQString, TQString>& map_, TQWidget* tqparent_, const char* name_/*=0*/, bool modal_/*=false*/) - : KDialogBase(tqparent_, name_, modal_, TQString(), Ok|Cancel) { +StringMapDialog::StringMapDialog(const TQMap<TQString, TQString>& map_, TQWidget* parent_, const char* name_/*=0*/, bool modal_/*=false*/) + : KDialogBase(parent_, name_, modal_, TQString(), Ok|Cancel) { TQWidget* page = new TQWidget(this); TQVBoxLayout* l = new TQVBoxLayout(page, 0, KDialog::spacingHint()); diff --git a/src/gui/tabcontrol.cpp b/src/gui/tabcontrol.cpp index 208d8e4..f3c2bf2 100644 --- a/src/gui/tabcontrol.cpp +++ b/src/gui/tabcontrol.cpp @@ -18,8 +18,8 @@ using Tellico::GUI::TabControl; -TabControl::TabControl(TQWidget* tqparent_, const char* name_/*=0*/) - : TQTabWidget(tqparent_, name_) { +TabControl::TabControl(TQWidget* parent_, const char* name_/*=0*/) + : TQTabWidget(parent_, name_) { } TQTabBar* TabControl::tabBar() const { diff --git a/src/gui/tablefieldwidget.cpp b/src/gui/tablefieldwidget.cpp index bac3ea0..449fbbb 100644 --- a/src/gui/tablefieldwidget.cpp +++ b/src/gui/tablefieldwidget.cpp @@ -30,8 +30,8 @@ namespace { using Tellico::GUI::TableFieldWidget; -TableFieldWidget::TableFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_), m_field(field_), m_row(-1), m_col(-1) { +TableFieldWidget::TableFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_), m_field(field_), m_row(-1), m_col(-1) { bool ok; m_columns = Tellico::toUInt(field_->property(TQString::tqfromLatin1("columns")), &ok); diff --git a/src/gui/urlfieldwidget.cpp b/src/gui/urlfieldwidget.cpp index 3c7c720..0ecc37d 100644 --- a/src/gui/urlfieldwidget.cpp +++ b/src/gui/urlfieldwidget.cpp @@ -32,8 +32,8 @@ TQString URLFieldWidget::URLCompletion::makeCompletion(const TQString& text_) { return KURLCompletion::makeCompletion(text_); } -URLFieldWidget::URLFieldWidget(Data::FieldPtr field_, TQWidget* tqparent_, const char* name_/*=0*/) - : FieldWidget(field_, tqparent_, name_), m_run(0) { +URLFieldWidget::URLFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) + : FieldWidget(field_, parent_, name_), m_run(0) { m_requester = new KURLRequester(this); m_requester->lineEdit()->setCompletionObject(new URLCompletion()); |