precode link highlight during tab traversal: commented out, doesnt work

This commit is contained in:
Jean-Francois Dockes 2010-02-05 12:45:12 +01:00
parent ee8daa6b79
commit de63a00540
2 changed files with 13 additions and 0 deletions

View File

@ -101,6 +101,11 @@ ResList::ResList(QWidget* parent, const char* name)
// signals and slots connections
connect(this, SIGNAL(linkClicked(const QString &, int)),
this, SLOT(linkWasClicked(const QString &, int)));
#if 0
// See comments in "highlighted
connect(this, SIGNAL(highlighted(const QString &)),
this, SLOT(highlighted(const QString &)));
#endif
connect(this, SIGNAL(headerClicked()), this, SLOT(showQueryDetails()));
connect(this, SIGNAL(doubleClicked(int,int)),
this, SLOT(doubleClicked(int, int)));
@ -345,6 +350,13 @@ int ResList::getResCnt()
return m_docSource->getResCnt();
}
void ResList::highlighted(const QString& )
{
// This is supposedly called when a link is preactivated (hover or tab
// traversal, but is not actually called for tabs. We would have liked to
// give some kind of visual feedback for tab traversal
}
#if 1 || (QT_VERSION < 0x040000)
#define SCROLLYPOS contentsY()

View File

@ -87,6 +87,7 @@ class ResList : public QTEXTBROWSER
virtual void setDocSource();
virtual void setSortParams(DocSeqSortSpec spec);
virtual void setFilterParams(const DocSeqFiltSpec &spec);
virtual void highlighted(const QString& link);
signals:
void nextPageAvailable(bool);