[Digikam-devel] [Bug 150265] advance search filter is missing search in comment / description

Arnd Baecker arnd.baecker at web.de
Fri Sep 28 07:39:14 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=150265         




------- Additional Comments From arnd.baecker web de  2007-09-28 08:39 -------
In searchwidgets.cpp one has
    m_key = new QComboBox( m_hbox, "key" );
    m_key->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Minimum );
    for (int i=0; i< RuleKeyTableCount; i++)
        m_key->insertItem( i18n(RuleKeyTable[i].keyText), i );

Of course it is no problem to add another description field
(e.g. `keyToolTip`) to the RuleKeyTable struct.
In the loop, would something like
       QToolTip::add( m_key->currentItem(),
                              i18n(RuleKeyTable[i].keyToolTip));
work on the entries of such a QComboBox?
(TheQComboBox Class Reference does not mention anything in this respect)

Looking at the contents
    { I18N_NOOP("Album"),            "album",
    { I18N_NOOP("Album Name"),       "albumname",
    { I18N_NOOP("Album Caption"),    "albumcaption",
    { I18N_NOOP("Album Collection"), "albumcollection"
    { I18N_NOOP("Tag"),              "tag",
    { I18N_NOOP("Tag Name"),         "tagname",
    { I18N_NOOP("Image Name"),       "imagename",
    { I18N_NOOP("Image Date"),       "imagedate",
    { I18N_NOOP("Image Caption"),    "imagecaption",
    { I18N_NOOP("Keyword"),          "keyword",
    { I18N_NOOP("Rating"),           "rating",

I think that only "Tag" vs. "Tag Name"
and "Image Caption" vs./and "Keyword" would require an explanation
(BTW: is the "Album collection" stuff gone in KDE4?).



More information about the Digikam-devel mailing list