diff options
Diffstat (limited to 'src/groupview.h')
-rw-r--r-- | src/groupview.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/groupview.h b/src/groupview.h index 4ead256..40a40f9 100644 --- a/src/groupview.h +++ b/src/groupview.h @@ -17,8 +17,8 @@ #include "gui/listview.h" #include "observer.h" -#include <qdict.h> -#include <qpixmap.h> +#include <tqdict.h> +#include <tqpixmap.h> namespace Tellico { namespace Data { @@ -32,7 +32,7 @@ namespace Tellico { * The GroupView shows the entries grouped, as well as the saved filters. * * There is one root item for each collection in the document. The entries are grouped - * by the field defined by each collection. A @ref QDict is used to keep track of the + * by the field defined by each collection. A @ref TQDict is used to keep track of the * group items. * * @see Tellico::Data::Collection @@ -41,28 +41,29 @@ namespace Tellico { */ class GroupView : public GUI::ListView, public Observer { Q_OBJECT + TQ_OBJECT public: /** * The constructor sets up the single column, and initializes the popup menu. * - * @param parent A pointer to the parent widget + * @param tqparent A pointer to the tqparent widget * @param name The widget name */ - GroupView(QWidget* parent, const char* name=0); + GroupView(TQWidget* tqparent, const char* name=0); /** * Returns the name of the field by which the entries are grouped * * @return The field name */ - const QString& groupBy() const { return m_groupBy; } + const TQString& groupBy() const { return m_groupBy; } /** * Sets the name of the field by which the entries are grouped * * @param groupFieldName The field name */ - void setGroupField(const QString& groupFieldName); + void setGroupField(const TQString& groupFieldName); /** * Adds a collection, along with all all the groups for the collection in * the groupFieldribute. This method gets called as well when the groupFieldribute @@ -72,7 +73,7 @@ public: */ void addCollection(Data::CollPtr coll); /** - * Removes a root collection item, and all of its children. + * Removes a root collection item, and all of its tqchildren. * * @param coll A pointer to the collection */ @@ -149,21 +150,21 @@ private slots: * @param point The location point * @param col The column number, not currently used */ - void contextMenuRequested(QListViewItem* item, const QPoint& point, int col); + void contextMenuRequested(TQListViewItem* item, const TQPoint& point, int col); /** * Handles changing the icon when an item is expanded, depended on whether it refers * to a collection, a group, or an entry. * * @param item A pointer to the expanded list item */ - void slotExpanded(QListViewItem* item); + void slotExpanded(TQListViewItem* item); /** * Handles changing the icon when an item is collapsed, depended on whether it refers * to a collection, a group, or an entry. * * @param item A pointer to the collapse list item */ - void slotCollapsed(QListViewItem* item); + void slotCollapsed(TQListViewItem* item); /** * Filter by group */ @@ -182,16 +183,16 @@ private: virtual void setSorting(int column, bool ascending = true); void resetComparisons(); - QString groupTitle(); + TQString groupTitle(); void updateHeader(Data::FieldPtr field=0); bool m_notSortedYet; Data::CollPtr m_coll; - QDict<EntryGroupItem> m_groupDict; - QString m_groupBy; + TQDict<EntryGroupItem> m_groupDict; + TQString m_groupBy; - QPixmap m_groupOpenPixmap; - QPixmap m_groupClosedPixmap; + TQPixmap m_groupOpenPixmap; + TQPixmap m_groupClosedPixmap; }; } // end namespace |