diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
| commit | aa0726b20f398264f0a2abc60215be044b106f9c (patch) | |
| tree | 070fdbc19a1106cfdd7f651a8ce76bb1b89a513d /src/filter.h | |
| parent | d3cf5b3e75aadc3b02d0b56f030d4c3f8c2c749d (diff) | |
| download | basket-aa0726b20f398264f0a2abc60215be044b106f9c.tar.gz basket-aa0726b20f398264f0a2abc60215be044b106f9c.zip | |
TQt4 port basket
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1232416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/filter.h')
| -rw-r--r-- | src/filter.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/filter.h b/src/filter.h index 56bea49..d826c50 100644 --- a/src/filter.h +++ b/src/filter.h @@ -21,12 +21,12 @@ #ifndef FILTER_H #define FILTER_H -#include <qwidget.h> -#include <qmap.h> +#include <tqwidget.h> +#include <tqmap.h> #include "focusedwidgets.h" -class QToolButton; +class TQToolButton; class Tag; class State; @@ -43,21 +43,22 @@ class FilterData FilterData() { isFiltering = false; tagFilterType = DontCareTagsFilter; tag = 0; state = 0; } ~FilterData() {} // Filter data: - QString string; + TQString string; int tagFilterType; Tag *tag; State *state; bool isFiltering; }; -/** A QWidget that allow user to enter terms to filter in a Basket. +/** A TQWidget that allow user to enter terms to filter in a Basket. * @author Sébastien Laoût */ -class FilterBar : public QWidget +class FilterBar : public TQWidget { Q_OBJECT + TQ_OBJECT public: - FilterBar(QWidget *parent = 0, const char *name = 0); + FilterBar(TQWidget *tqparent = 0, const char *name = 0); ~FilterBar(); const FilterData& filterData(); signals: @@ -77,17 +78,17 @@ class FilterBar : public QWidget bool hasEditFocus(); KLineEdit* lineEdit() { return m_lineEdit; } private slots: - void textChanged(const QString &text); + void textChanged(const TQString &text); void tagChanged(int index); private: FilterData *m_data; FocusedLineEdit *m_lineEdit; - QToolButton *m_resetButton; + TQToolButton *m_resetButton; FocusedComboBox *m_tagsBox; - QToolButton *m_inAllBasketsButton; + TQToolButton *m_inAllBasketsButton; - QMap<int, Tag*> m_tagsMap; - QMap<int, State*> m_statesMap; + TQMap<int, Tag*> m_tagsMap; + TQMap<int, State*> m_statesMap; }; #endif // FILTER_H |
