summaryrefslogtreecommitdiffstats
path: root/kmymoney2
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 21:40:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 21:40:18 +0900
commit7da583b50658b88243d71ddfd0a9d2146d6bda6c (patch)
tree6ff9742155d5f2573f0b4c6f1f6f5e59fc386bd1 /kmymoney2
parentc45ec5d9bde729f8a40f2e59c886c629d2e43a93 (diff)
downloadkmymoney-7da583b50658b88243d71ddfd0a9d2146d6bda6c.tar.gz
kmymoney-7da583b50658b88243d71ddfd0a9d2146d6bda6c.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmymoney2')
-rw-r--r--kmymoney2/views/kmymoneyview.cpp2
-rw-r--r--kmymoney2/widgets/kguiutils.cpp36
2 files changed, 19 insertions, 19 deletions
diff --git a/kmymoney2/views/kmymoneyview.cpp b/kmymoney2/views/kmymoneyview.cpp
index 6932a1b..daaaaf8 100644
--- a/kmymoney2/views/kmymoneyview.cpp
+++ b/kmymoney2/views/kmymoneyview.cpp
@@ -254,7 +254,7 @@ KMyMoneyView::KMyMoneyView(TQWidget *parent, const char *name)
m_forecastView = new KForecastView(m_forecastViewFrame, "ForecastView");
// get rid of the title text
- TQWidget* widget = dynamic_cast<TQWidget*>(child("KJanusWidgetTitleLabel", TQLABEL_OBJECT_NAME_STRING));
+ TQWidget* widget = dynamic_cast<TQWidget*>(child("KJanusWidgetTitleLabel", "TQLabel"));
if(widget)
widget->hide();
diff --git a/kmymoney2/widgets/kguiutils.cpp b/kmymoney2/widgets/kguiutils.cpp
index ed6889c..b5d963b 100644
--- a/kmymoney2/widgets/kguiutils.cpp
+++ b/kmymoney2/widgets/kguiutils.cpp
@@ -55,13 +55,13 @@
void kMandatoryFieldGroup::add(TQWidget *widget)
{
if (!widgets.contains(widget)) {
- if (widget->inherits(TQCHECKBOX_OBJECT_NAME_STRING))
- connect((TQCheckBox*)widget->tqt_cast(TQCHECKBOX_OBJECT_NAME_STRING),
+ if (widget->inherits("TQCheckBox"))
+ connect((TQCheckBox*)widget->tqt_cast("TQCheckBox"),
TQT_SIGNAL(clicked()),
this, TQT_SLOT(changed()));
- else if (widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING)) {
- TQComboBox* combo = (TQComboBox*)widget->tqt_cast(TQCOMBOBOX_OBJECT_NAME_STRING);
+ else if (widget->inherits("TQComboBox")) {
+ TQComboBox* combo = (TQComboBox*)widget->tqt_cast("TQComboBox");
TQLineEdit* lineedit = combo->lineEdit();
if(lineedit) {
connect(lineedit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed()));
@@ -70,18 +70,18 @@ void kMandatoryFieldGroup::add(TQWidget *widget)
}
}
- else if (widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
- connect((TQLineEdit*)widget->tqt_cast(TQLINEEDIT_OBJECT_NAME_STRING),
+ else if (widget->inherits("TQLineEdit"))
+ connect((TQLineEdit*)widget->tqt_cast("TQLineEdit"),
TQT_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(changed()));
- else if (widget->inherits(TQSPINBOX_OBJECT_NAME_STRING))
- connect((TQSpinBox*)widget->tqt_cast(TQSPINBOX_OBJECT_NAME_STRING),
+ else if (widget->inherits("TQSpinBox"))
+ connect((TQSpinBox*)widget->tqt_cast("TQSpinBox"),
TQT_SIGNAL(valueChanged(const TQString&)),
this, TQT_SLOT(changed()));
- else if (widget->inherits(TQLISTBOX_OBJECT_NAME_STRING))
- connect((TQListBox*)widget->tqt_cast(TQLISTBOX_OBJECT_NAME_STRING),
+ else if (widget->inherits("TQListBox"))
+ connect((TQListBox*)widget->tqt_cast("TQListBox"),
TQT_SIGNAL(selectionChanged()),
this, TQT_SLOT(changed()));
@@ -125,29 +125,29 @@ void kMandatoryFieldGroup::changed(void)
if(!(widget->isEnabled())) {
continue;
}
- if (widget->inherits(TQCHECKBOX_OBJECT_NAME_STRING)) {
- if (((TQCheckBox*)widget->tqt_cast(TQCHECKBOX_OBJECT_NAME_STRING))->state() == TQButton::NoChange) {
+ if (widget->inherits("TQCheckBox")) {
+ if (((TQCheckBox*)widget->tqt_cast("TQCheckBox"))->state() == TQButton::NoChange) {
enable = false;
break;
} else
continue;
}
- if (widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING)) {
- if (((TQComboBox*)widget->tqt_cast(TQCOMBOBOX_OBJECT_NAME_STRING))->currentText().isEmpty()) {
+ if (widget->inherits("TQComboBox")) {
+ if (((TQComboBox*)widget->tqt_cast("TQComboBox"))->currentText().isEmpty()) {
enable = false;
break;
} else
continue;
}
- if (widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) {
- if (((TQLineEdit*)widget->tqt_cast(TQLINEEDIT_OBJECT_NAME_STRING))->text().isEmpty()) {
+ if (widget->inherits("TQLineEdit")) {
+ if (((TQLineEdit*)widget->tqt_cast("TQLineEdit"))->text().isEmpty()) {
enable = false;
break;
} else
continue;
}
- if (widget->inherits(TQLISTBOX_OBJECT_NAME_STRING)) {
- if (((TQListBox*)widget->tqt_cast(TQLISTBOX_OBJECT_NAME_STRING))->selectedItem() == 0) {
+ if (widget->inherits("TQListBox")) {
+ if (((TQListBox*)widget->tqt_cast("TQListBox"))->selectedItem() == 0) {
enable = false;
break;
} else