diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-10-08 00:13:25 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-10-08 05:14:53 +0200 |
commit | 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch) | |
tree | 770861aa9033e1dc6c5168358194ff85b32dd429 /src/searchresultsdlg.cpp | |
parent | 57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff) | |
download | kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip |
Initial TQt conversion
Diffstat (limited to 'src/searchresultsdlg.cpp')
-rw-r--r-- | src/searchresultsdlg.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/searchresultsdlg.cpp b/src/searchresultsdlg.cpp index bb63fa5..bbcdd9b 100644 --- a/src/searchresultsdlg.cpp +++ b/src/searchresultsdlg.cpp @@ -25,10 +25,10 @@ * ***************************************************************************/ -#include <qpushbutton.h> -#include <qlineedit.h> -#include <qcombobox.h> -#include <qradiobutton.h> +#include <ntqpushbutton.h> +#include <ntqlineedit.h> +#include <ntqcombobox.h> +#include <ntqradiobutton.h> #include "searchresultsdlg.h" int SearchResultsDlg::s_nType = PlainText; @@ -40,7 +40,7 @@ bool SearchResultsDlg::s_bNegate = false; * @param pParent The parent widget * @param szName Optional widget name */ -SearchResultsDlg::SearchResultsDlg(QWidget* pParent, const char* szName) : +SearchResultsDlg::SearchResultsDlg(TQWidget* pParent, const char* szName) : SearchResultsLayout(pParent, szName, true, 0) { // Select the last selected type radio button @@ -96,16 +96,16 @@ int SearchResultsDlg::getColumn() * Creates a regular expression based on the given pattern and type of search. * @param re A regular expression object to set */ -void SearchResultsDlg::getPattern(QRegExp& re) +void SearchResultsDlg::getPattern(TQRegExp& re) { - QString sPattern; + TQString sPattern; sPattern = m_pSearchEdit->text(); // Create the regular expression switch (s_nType) { case PlainText: - re.setPattern(QRegExp::escape(sPattern)); + re.setPattern(TQRegExp::escape(sPattern)); re.setWildcard(false); break; @@ -130,7 +130,7 @@ void SearchResultsDlg::getPattern(QRegExp& re) */ void SearchResultsDlg::accept() { - QString sText; + TQString sText; // Determine the selected type and store its value for the next invocation if (m_pTextRadio->isChecked()) @@ -148,12 +148,12 @@ void SearchResultsDlg::accept() sText = m_pSearchEdit->text(); sText.stripWhiteSpace(); if (sText.isEmpty()) { - QDialog::reject(); + TQDialog::reject(); return; } // Close the dialogue - QDialog::accept(); + TQDialog::accept(); } #include "searchresultsdlg.moc" |