|
|
|
@ -1651,7 +1651,7 @@ void MainWindow::slotUpdateCollectionToolBar(Data::CollPtr coll_) {
|
|
|
|
|
if(tb) {
|
|
|
|
|
KComboBox* cb = tb->getCombo(m_entryGrouping->itemId(i));
|
|
|
|
|
if(cb) {
|
|
|
|
|
// qt caches the combobox size and never recalculates the sizeHint()
|
|
|
|
|
// tqt caches the combobox size and never recalculates the sizeHint()
|
|
|
|
|
// the source code recommends calling setFont to invalidate the sizeHint
|
|
|
|
|
cb->setFont(cb->font());
|
|
|
|
|
cb->updateGeometry();
|
|
|
|
@ -1836,7 +1836,7 @@ void MainWindow::setFilter(const TQString& text_) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if the text contains any non-word characters, assume it's a regexp
|
|
|
|
|
// but \W in qt is letter, number, or '_', I want to be a bit less strict
|
|
|
|
|
// but \W in tqt is letter, number, or '_', I want to be a bit less strict
|
|
|
|
|
TQRegExp rx(TQString::fromLatin1("[^\\w\\s-']"));
|
|
|
|
|
if(text.find(rx) == -1) {
|
|
|
|
|
// split by whitespace, and add rules for each word
|
|
|
|
|