Преглед на файлове

BUG: The search is set to apply to all columns, but in Qt 4.2, that breaks
the search entirely. Search on the first column only when using Qt 4.2.

Clinton Stimpson преди 18 години
родител
ревизия
b31d4f9d17
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      Source/QtDialog/QCMakeCacheView.cxx

+ 2 - 0
Source/QtDialog/QCMakeCacheView.cxx

@@ -44,7 +44,9 @@ QCMakeCacheView::QCMakeCacheView(QWidget* p)
   this->SearchFilter = new QSortFilterProxyModel(this);
   this->SearchFilter->setSourceModel(this->AdvancedFilter);
   this->SearchFilter->setFilterCaseSensitivity(Qt::CaseInsensitive);
+#if QT_VERSION >= 0x040300   // breaks search in Qt 4.2
   this->SearchFilter->setFilterKeyColumn(-1); // all columns
+#endif
   this->SearchFilter->setDynamicSortFilter(true);
   this->setModel(this->SearchFilter);