]> git.cworth.org Git - apitrace/commitdiff
Change filterText to searchText
authorZack Rusin <zack@kde.org>
Sun, 28 Aug 2011 03:29:19 +0000 (23:29 -0400)
committerZack Rusin <zack@kde.org>
Sun, 28 Aug 2011 03:29:19 +0000 (23:29 -0400)
Because it's used for searching not filtering, as it was before.

gui/apitracecall.cpp
gui/apitracecall.h
gui/mainwindow.cpp

index 180dab47d86da72dec5557ca8982e82a9b257951..afc4b356579682e06022677808b2fe455d38d29c 100644 (file)
@@ -626,7 +626,7 @@ void ApiTraceCall::setEditedValues(const QVariantList &lst)
     m_editedValues = lst;
     //lets regenerate data
     m_richText = QString();
-    m_filterText = QString();
+    m_searchText = QString();
     delete m_staticText;
     m_staticText = 0;
 
@@ -827,28 +827,28 @@ QString ApiTraceCall::toHtml() const
     return m_richText;
 }
 
-QString ApiTraceCall::filterText() const
+QString ApiTraceCall::searchText() const
 {
-    if (!m_filterText.isEmpty())
-        return m_filterText;
+    if (!m_searchText.isEmpty())
+        return m_searchText;
 
     QVariantList argValues = arguments();
-    m_filterText = m_name + QLatin1Literal("(");
+    m_searchText = m_name + QLatin1Literal("(");
     for (int i = 0; i < m_argNames.count(); ++i) {
-        m_filterText += m_argNames[i] +
+        m_searchText += m_argNames[i] +
                         QLatin1Literal(" = ") +
                         apiVariantToString(argValues[i]);
         if (i < m_argNames.count() - 1)
-            m_filterText += QLatin1String(", ");
+            m_searchText += QLatin1String(", ");
     }
-    m_filterText += QLatin1String(")");
+    m_searchText += QLatin1String(")");
 
     if (m_returnValue.isValid()) {
-        m_filterText += QLatin1Literal(" = ") +
+        m_searchText += QLatin1Literal(" = ") +
                         apiVariantToString(m_returnValue);
     }
-    m_filterText.squeeze();
-    return m_filterText;
+    m_searchText.squeeze();
+    return m_searchText;
 }
 
 int ApiTraceCall::numChildren() const
index 7eae245cd3965997ba13c18d99040716205496bc..4892368b8ba14b44cb5c69a9b61aacfb89996e62 100644 (file)
@@ -211,7 +211,7 @@ public:
     ApiTrace *parentTrace() const;
 
     QString toHtml() const;
-    QString filterText() const;
+    QString searchText() const;
     QStaticText staticText() const;
     int numChildren() const;
     bool hasBinaryData() const;
@@ -230,7 +230,7 @@ private:
     QString m_error;
 
     mutable QString m_richText;
-    mutable QString m_filterText;
+    mutable QString m_searchText;
     mutable bool m_hasBinaryData;
     mutable int m_binaryDataIndex;
 };
index 465dd8b0e0b767843a47e2e9d5815738adfd4369..ba19b4db3d606621534ca489c69e31b573d060af 100644 (file)
@@ -865,7 +865,7 @@ void MainWindow::slotSearchNext(const QString &str,
         /* if it's not valid it means that the proxy model has already
          * filtered it out */
         if (index.isValid()) {
-            QString txt = testCall->filterText();
+            QString txt = testCall->searchText();
             if (txt.contains(str, sensitivity)) {
                 m_ui.callView->setCurrentIndex(index);
                 m_searchWidget->setFound(true);
@@ -916,7 +916,7 @@ void MainWindow::slotSearchPrev(const QString &str,
         /* if it's not valid it means that the proxy model has already
          * filtered it out */
         if (index.isValid()) {
-            QString txt = testCall->filterText();
+            QString txt = testCall->searchText();
             if (txt.contains(str, sensitivity)) {
                 m_ui.callView->setCurrentIndex(index);
                 m_searchWidget->setFound(true);