diff options
author | Michele Calgaro <[email protected]> | 2024-01-04 10:31:17 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-07 14:53:04 +0900 |
commit | aa5bb4434eb6b60314787106284ad99294de4468 (patch) | |
tree | 3a766a6cc84578b8fa8f5a6db323de24c57959d8 /src/translators/csvimporter.cpp | |
parent | 727a2e58bc79c09f53766110fb7c31d3f3af1e46 (diff) | |
download | tellico-aa5bb4434eb6b60314787106284ad99294de4468.tar.gz tellico-aa5bb4434eb6b60314787106284ad99294de4468.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit c650254e1855d383dcafd15d18be20becc3b2253)
Diffstat (limited to 'src/translators/csvimporter.cpp')
-rw-r--r-- | src/translators/csvimporter.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/translators/csvimporter.cpp b/src/translators/csvimporter.cpp index 57067e5..adc1b88 100644 --- a/src/translators/csvimporter.cpp +++ b/src/translators/csvimporter.cpp @@ -189,7 +189,7 @@ Tellico::Data::CollPtr CSVImporter::collection() { ProgressItem& item = ProgressManager::self()->newProgressItem(this, progressLabel(), true); item.setTotalSteps(numLines); - connect(&item, TQT_SIGNAL(signalCancelled(ProgressItem*)), TQT_SLOT(slotCancel())); + connect(&item, TQ_SIGNAL(signalCancelled(ProgressItem*)), TQ_SLOT(slotCancel())); ProgressItem::Done done(this); uint j = 0; @@ -253,14 +253,14 @@ TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) { m_comboColl = new GUI::CollectionTypeCombo(box); lab->setBuddy(m_comboColl); TQWhatsThis::add(m_comboColl, i18n("Select the type of collection being imported.")); - connect(m_comboColl, TQT_SIGNAL(activated(int)), TQT_SLOT(slotTypeChanged())); + connect(m_comboColl, TQ_SIGNAL(activated(int)), TQ_SLOT(slotTypeChanged())); // need a spacer TQWidget* w = new TQWidget(box); box->setStretchFactor(w, 1); m_checkFirstRowHeader = new TQCheckBox(i18n("&First row contains field titles"), group); TQWhatsThis::add(m_checkFirstRowHeader, i18n("If checked, the first row is used as field titles.")); - connect(m_checkFirstRowHeader, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotFirstRowHeader(bool))); + connect(m_checkFirstRowHeader, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotFirstRowHeader(bool))); TQHBox* hbox2 = new TQHBox(group); m_delimiterGroup = new TQButtonGroup(0, TQt::Vertical, i18n("Delimiter"), hbox2); @@ -268,7 +268,7 @@ TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) { m_delimiterGroupLayout->setAlignment(TQt::AlignTop); TQWhatsThis::add(m_delimiterGroup, i18n("In addition to a comma, other characters may be used as " "a delimiter, separating each value in the file.")); - connect(m_delimiterGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotDelimiter())); + connect(m_delimiterGroup, TQ_SIGNAL(clicked(int)), TQ_SLOT(slotDelimiter())); m_radioComma = new TQRadioButton(m_delimiterGroup); m_radioComma->setText(i18n("&Comma")); @@ -297,9 +297,9 @@ TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) { m_editOther->setMaxLength(1); TQWhatsThis::add(m_editOther, i18n("A custom string, such as a colon, may be used as a delimiter.")); m_delimiterGroupLayout->addWidget(m_editOther, 2, 2); - connect(m_radioOther, TQT_SIGNAL(toggled(bool)), - m_editOther, TQT_SLOT(setEnabled(bool))); - connect(m_editOther, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotDelimiter())); + connect(m_radioOther, TQ_SIGNAL(toggled(bool)), + m_editOther, TQ_SLOT(setEnabled(bool))); + connect(m_editOther, TQ_SIGNAL(textChanged(const TQString&)), TQ_SLOT(slotDelimiter())); w = new TQWidget(hbox2); hbox2->setStretchFactor(w, 1); @@ -313,8 +313,8 @@ TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) { m_table->setReadOnly(true); m_table->setMinimumHeight(m_widget->fontMetrics().lineSpacing() * 8); TQWhatsThis::add(m_table, i18n("The table shows up to the first five lines of the CSV file.")); - connect(m_table, TQT_SIGNAL(currentChanged(int, int)), TQT_SLOT(slotCurrentChanged(int, int))); - connect(m_table->horizontalHeader(), TQT_SIGNAL(clicked(int)), TQT_SLOT(slotHeaderClicked(int))); + connect(m_table, TQ_SIGNAL(currentChanged(int, int)), TQ_SLOT(slotCurrentChanged(int, int))); + connect(m_table->horizontalHeader(), TQ_SIGNAL(clicked(int)), TQ_SLOT(slotHeaderClicked(int))); TQWidget* hbox = new TQWidget(group); TQHBoxLayout* hlay = new TQHBoxLayout(hbox, 5); @@ -326,7 +326,7 @@ TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) { m_colSpinBox = new KIntSpinBox(hbox); hlay->addWidget(m_colSpinBox); m_colSpinBox->setMinValue(1); - connect(m_colSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotSelectColumn(int))); + connect(m_colSpinBox, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotSelectColumn(int))); lab->setBuddy(m_colSpinBox); hlay->addSpacing(10); @@ -334,14 +334,14 @@ TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) { hlay->addWidget(lab); m_comboField = new KComboBox(hbox); hlay->addWidget(m_comboField); - connect(m_comboField, TQT_SIGNAL(activated(int)), TQT_SLOT(slotFieldChanged(int))); + connect(m_comboField, TQ_SIGNAL(activated(int)), TQ_SLOT(slotFieldChanged(int))); lab->setBuddy(m_comboField); hlay->addSpacing(10); m_setColumnBtn = new KPushButton(i18n("&Assign Field"), hbox); hlay->addWidget(m_setColumnBtn); m_setColumnBtn->setIconSet(SmallIconSet(TQString::fromLatin1("apply"))); - connect(m_setColumnBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotSetColumnTitle())); + connect(m_setColumnBtn, TQ_SIGNAL(clicked()), TQ_SLOT(slotSetColumnTitle())); hlay->addStretch(10); l->addStretch(1); |