1.1 --- a/mainwindow.cpp Thu Oct 01 11:48:58 2009 +0000
1.2 +++ b/mainwindow.cpp Thu Oct 01 13:23:20 2009 +0000
1.3 @@ -3605,12 +3605,19 @@
1.4 void Main::testFunction1()
1.5 {
1.6 if (!currentMapEditor()) return;
1.7 - currentMapEditor()->testFunction1();
1.8 + //currentMapEditor()->testFunction1();
1.9 /*
1.10 + */
1.11 VymModel *m=currentModel();
1.12 if (!m) return;
1.13 - m->clearItem (m->getSelectedItem());
1.14 - */
1.15 +
1.16 + bool ok;
1.17 + QString text = QInputDialog::getText(
1.18 + "VYM", "Enter Filter:", QLineEdit::Normal, // FIXME-3 no translation yet
1.19 + m->getSortFilter(), &ok, NULL);
1.20 + if ( ok)
1.21 + // user entered something and pressed OK
1.22 + m->setSortFilter (text);
1.23 }
1.24
1.25 void Main::testFunction2()