diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:34:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:34:15 -0600 |
commit | 031454e56009d576589c28757f6c6fcf4884095e (patch) | |
tree | ad4c9959d05a814c9090e8fe63ba27057903271b /src/filterdialog.cpp | |
parent | 54011e0e1af8cd96162160ecf5d361a59a2c733e (diff) | |
download | tellico-031454e56009d576589c28757f6c6fcf4884095e.tar.gz tellico-031454e56009d576589c28757f6c6fcf4884095e.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/filterdialog.cpp')
-rw-r--r-- | src/filterdialog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/filterdialog.cpp b/src/filterdialog.cpp index 0754a44..fdf36d5 100644 --- a/src/filterdialog.cpp +++ b/src/filterdialog.cpp @@ -11,7 +11,7 @@ * * ***************************************************************************/ -// The tqlayout borrows heavily from kmsearchpatternedit.cpp in kmail +// The layout borrows heavily from kmsearchpatternedit.cpp in kmail // which is authored by Marc Mutz <Marc@Mutz.com> under the GPL #include "filterdialog.h" @@ -29,7 +29,7 @@ #include <kregexpeditorinterface.h> #include <kiconloader.h> -#include <tqlayout.h> +#include <layout.h> #include <tqgroupbox.h> #include <tqradiobutton.h> #include <tqvbuttongroup.h> @@ -86,7 +86,7 @@ void FilterRuleWidget::initWidget() { m_ruleValue = new KLineEdit(this); connect(m_ruleValue, TQT_SIGNAL(textChanged(const TQString&)), TQT_SIGNAL(signalModified())); - if(!KTrader::self()->query(TQString::tqfromLatin1("KRegExpEditor/KRegExpEditor")).isEmpty()) { + if(!KTrader::self()->query(TQString::fromLatin1("KRegExpEditor/KRegExpEditor")).isEmpty()) { m_editRegExp = new KPushButton(i18n("Edit..."), this); connect(m_editRegExp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditRegExp())); connect(m_ruleFunc, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotRuleFunctionChanged(int))); @@ -109,11 +109,11 @@ void FilterRuleWidget::initWidget() { void FilterRuleWidget::slotEditRegExp() { if(m_editRegExpDialog == 0) { - m_editRegExpDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>(TQString::tqfromLatin1("KRegExpEditor/KRegExpEditor"), + m_editRegExpDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>(TQString::fromLatin1("KRegExpEditor/KRegExpEditor"), TQString(), TQT_TQOBJECT(this)); } - KRegExpEditorInterface* iface = static_cast<KRegExpEditorInterface *>(m_editRegExpDialog->qt_cast(TQString::tqfromLatin1("KRegExpEditorInterface"))); + KRegExpEditorInterface* iface = static_cast<KRegExpEditorInterface *>(m_editRegExpDialog->qt_cast(TQString::fromLatin1("KRegExpEditorInterface"))); if(iface) { iface->setRegExp(m_ruleValue->text()); if(m_editRegExpDialog->exec() == TQDialog::Accepted) { @@ -316,7 +316,7 @@ void FilterDialog::init() { // only when creating a new filter can it be saved if(m_mode == CreateFilter) { - m_saveFilter = new KPushButton(SmallIconSet(TQString::tqfromLatin1("filter")), i18n("&Save Filter"), page); + m_saveFilter = new KPushButton(SmallIconSet(TQString::fromLatin1("filter")), i18n("&Save Filter"), page); blay->addWidget(m_saveFilter); m_saveFilter->setEnabled(false); connect(m_saveFilter, TQT_SIGNAL(clicked()), TQT_SLOT(slotSaveFilter())); @@ -326,7 +326,7 @@ void FilterDialog::init() { actionButton(Help)->setDefault(false); // Help automatically becomes default when OK is disabled actionButton(Cancel)->setDefault(true); // Help automatically becomes default when OK is disabled setMinimumWidth(TQMAX(minimumWidth(), FILTER_MIN_WIDTH)); - setHelp(TQString::tqfromLatin1("filter-dialog")); + setHelp(TQString::fromLatin1("filter-dialog")); } Tellico::FilterPtr FilterDialog::currentFilter() { @@ -391,7 +391,7 @@ void FilterDialog::slotClear() { void FilterDialog::slotShrink() { updateGeometry(); TQApplication::sendPostedEvents(); - resize(width(), tqsizeHint().height()); + resize(width(), sizeHint().height()); } void FilterDialog::slotFilterChanged() { |