summaryrefslogtreecommitdiffstats
path: root/src/entryiconview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entryiconview.h')
-rw-r--r--src/entryiconview.h39
1 files changed, 20 insertions, 19 deletions
diff --git a/src/entryiconview.h b/src/entryiconview.h
index 335818c..f7ac00b 100644
--- a/src/entryiconview.h
+++ b/src/entryiconview.h
@@ -19,7 +19,7 @@
#include <kiconview.h>
-#include <qintdict.h>
+#include <tqintdict.h>
namespace Tellico {
class EntryIconViewItem;
@@ -33,11 +33,12 @@ namespace Tellico {
*/
class EntryIconView : public KIconView, public Observer {
Q_OBJECT
+ TQ_OBJECT
friend class EntryIconViewItem;
public:
- EntryIconView(QWidget* parent, const char* name = 0);
+ EntryIconView(TQWidget* tqparent, const char* name = 0);
~EntryIconView();
EntryIconViewItem* firstItem() const;
@@ -54,25 +55,25 @@ public:
virtual void modifyEntries(Data::EntryVec entries);
virtual void removeEntries(Data::EntryVec entries);
- const QString& imageField();
- const QString& sortField();
+ const TQString& imageField();
+ const TQString& sortField();
void setMaxAllowedIconWidth(int width);
int maxAllowedIconWidth() const { return m_maxAllowedIconWidth; }
- const QPixmap& defaultPixmap();
+ const TQPixmap& defaultPixmap();
/**
* Returns a list of the currently selected items;
*
* @return The list of selected items
*/
- const QPtrList<EntryIconViewItem>& selectedItems() const { return m_selectedItems; }
+ const TQPtrList<EntryIconViewItem>& selectedItems() const { return m_selectedItems; }
int compare(const EntryIconViewItem* item1, EntryIconViewItem* item2);
private slots:
void slotSelectionChanged();
- void slotDoubleClicked(QIconViewItem* item);
- void slotShowContextMenu(QIconViewItem* item, const QPoint& point);
+ void slotDoubleClicked(TQIconViewItem* item);
+ void slotShowContextMenu(TQIconViewItem* item, const TQPoint& point);
void slotSortMenuActivated(int id);
private:
@@ -83,15 +84,15 @@ private:
* @param s Selected or not
*/
void updateSelected(EntryIconViewItem* item, bool s) const;
- mutable QPtrList<EntryIconViewItem> m_selectedItems;
+ mutable TQPtrList<EntryIconViewItem> m_selectedItems;
void findImageField();
void fillView();
Data::CollPtr m_coll;
Data::EntryVec m_entries;
- QString m_imageField;
- QIntDict<QPixmap> m_defaultPixmaps;
+ TQString m_imageField;
+ TQIntDict<TQPixmap> m_defaultPixmaps;
int m_maxAllowedIconWidth;
int m_maxIconWidth;
int m_maxIconHeight;
@@ -100,7 +101,7 @@ private:
class EntryIconViewItem : public KIconViewItem {
public:
- EntryIconViewItem(EntryIconView* parent, Data::EntryPtr entry);
+ EntryIconViewItem(EntryIconView* tqparent, Data::EntryPtr entry);
~EntryIconViewItem();
EntryIconView* iconView() const { return static_cast<EntryIconView*>(KIconViewItem::iconView()); }
@@ -109,8 +110,8 @@ public:
Data::EntryPtr entry() const { return m_entry; }
virtual void setSelected(bool s, bool cb);
virtual void setSelected(bool s);
- virtual QString key() const;
- virtual int compare(QIconViewItem* item_) const;
+ virtual TQString key() const;
+ virtual int compare(TQIconViewItem* item_) const;
bool usesImage() const { return m_usesImage; }
void updatePixmap();
@@ -118,11 +119,11 @@ public:
void update();
protected:
- virtual void calcRect(const QString& text = QString::null);
- virtual void paintItem(QPainter* p, const QColorGroup& cg);
- virtual void paintFocus(QPainter* p, const QColorGroup& cg);
- void paintPixmap(QPainter* p, const QColorGroup& cg);
- void paintText(QPainter* p, const QColorGroup& cg);
+ virtual void calcRect(const TQString& text = TQString());
+ virtual void paintItem(TQPainter* p, const TQColorGroup& cg);
+ virtual void paintFocus(TQPainter* p, const TQColorGroup& cg);
+ void paintPixmap(TQPainter* p, const TQColorGroup& cg);
+ void paintText(TQPainter* p, const TQColorGroup& cg);
private:
Data::EntryPtr m_entry;