//! Displays list of words found in dictionaries
/*!
- It allow user to select word to see it's translation or to mark or unmark
- it as "star" (add/remove from bookmarks). It inherit from QTreeView
- to allow display two columns, one with words and second with stars.
+ It allows user to select word to see its translation or to mark or unmark
+ it as "star" (add/remove from bookmarks). It inherits from QTreeView
+ to allow to display two columns, one with words and second with stars.
Star is normal checkable item. To get effect of star we need to set
style (WordListProxyStyle) for this widget.
*/
Q_SIGNALS:
- //! Request to show translation which is described by passed translations
+ //! Requests to show translation which is described by passed translations
//! objects
void showTranslation(QList<Translation*>);
- //! Request to add selected word to bookmarks
+ //! Requests to add selected word to bookmarks
void addBookmark(QList<Translation*>);
- //! Request to remove selected word from bookmarks
+ //! Requests to remove selected word from bookmarks
void removeBookmark(QList<Translation*>);
public Q_SLOTS:
//! Shows search results
/*!
- \param hash of found words and it's translations objects
+ \param hash of found words and its translations objects
*/
void showSearchResults(QHash<QString, QList<Translation*> >);
- //! Lock words list, while backbone is doing somethig in background
+ //! Locks words list, while backbone is doing something in background
void lockList();
//! Unlocks words list
protected:
//! Reimplemented standard mouseReleaseEvent to check if user clicked on
- //! word on it's star to emit suitable signal
+ //! word or on its star to emit suitable signal
void mouseReleaseEvent(QMouseEvent *event);
- //! Resize the size of columns to assure that stars are always on right
+ //! Resizes the size of columns to assure that stars are always on right
//! side next to scroll bar
void resizeEvent(QResizeEvent *event);
//! Resizes sizes of colums after adding new words or after resize event.
void resizeColumns();
- //! Association between words and their's translations
+ //! Association between words and their translations
QHash<QString, QList<Translation*> > searchResult;
};