summaryrefslogtreecommitdiffstats
path: root/src/filterdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filterdialog.cpp')
-rw-r--r--src/filterdialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/filterdialog.cpp b/src/filterdialog.cpp
index fdf36d5..0754a44 100644
--- a/src/filterdialog.cpp
+++ b/src/filterdialog.cpp
@@ -11,7 +11,7 @@
* *
***************************************************************************/
-// The layout borrows heavily from kmsearchpatternedit.cpp in kmail
+// The tqlayout 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 <layout.h>
+#include <tqlayout.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::fromLatin1("KRegExpEditor/KRegExpEditor")).isEmpty()) {
+ if(!KTrader::self()->query(TQString::tqfromLatin1("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::fromLatin1("KRegExpEditor/KRegExpEditor"),
+ m_editRegExpDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>(TQString::tqfromLatin1("KRegExpEditor/KRegExpEditor"),
TQString(), TQT_TQOBJECT(this));
}
- KRegExpEditorInterface* iface = static_cast<KRegExpEditorInterface *>(m_editRegExpDialog->qt_cast(TQString::fromLatin1("KRegExpEditorInterface")));
+ KRegExpEditorInterface* iface = static_cast<KRegExpEditorInterface *>(m_editRegExpDialog->qt_cast(TQString::tqfromLatin1("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::fromLatin1("filter")), i18n("&Save Filter"), page);
+ m_saveFilter = new KPushButton(SmallIconSet(TQString::tqfromLatin1("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::fromLatin1("filter-dialog"));
+ setHelp(TQString::tqfromLatin1("filter-dialog"));
}
Tellico::FilterPtr FilterDialog::currentFilter() {
@@ -391,7 +391,7 @@ void FilterDialog::slotClear() {
void FilterDialog::slotShrink() {
updateGeometry();
TQApplication::sendPostedEvents();
- resize(width(), sizeHint().height());
+ resize(width(), tqsizeHint().height());
}
void FilterDialog::slotFilterChanged() {