diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/widgets/fileselector.h | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widgets/fileselector.h')
-rw-r--r-- | kommander/widgets/fileselector.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/kommander/widgets/fileselector.h b/kommander/widgets/fileselector.h index 9da6847d..c80648e0 100644 --- a/kommander/widgets/fileselector.h +++ b/kommander/widgets/fileselector.h @@ -19,10 +19,10 @@ /* KDE INCLUDES */ /* QT INCLUDES */ -#include <qobject.h> -#include <qstringlist.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqobject.h> +#include <tqstringlist.h> +#include <tqstring.h> +#include <tqwidget.h> /* OTHER INCLUDES */ #include <kommanderwidget.h> @@ -33,69 +33,69 @@ class KPushButton; class KLineEdit; class QShowEvent; -class KOMMANDER_EXPORT FileSelector : public QWidget, public KommanderWidget +class KOMMANDER_EXPORT FileSelector : public TQWidget, public KommanderWidget { Q_OBJECT - Q_PROPERTY(QString populationText READ populationText WRITE setPopulationText DESIGNABLE false) - Q_PROPERTY(QStringList associations READ associatedText WRITE setAssociatedText DESIGNABLE false) + Q_PROPERTY(TQString populationText READ populationText WRITE setPopulationText DESIGNABLE false) + Q_PROPERTY(TQStringList associations READ associatedText WRITE setAssociatedText DESIGNABLE false) Q_PROPERTY(bool KommanderWidget READ isKommanderWidget) Q_PROPERTY(bool showEditor READ showEditor WRITE setShowEditor) - Q_PROPERTY(QString buttonCaption READ caption WRITE setCaption) - Q_PROPERTY(QString selectionFilter READ selectionFilter WRITE setSelectionFilter) - Q_PROPERTY(QString selectionCaption READ selectionCaption WRITE setSelectionCaption) + Q_PROPERTY(TQString buttonCaption READ caption WRITE setCaption) + Q_PROPERTY(TQString selectionFilter READ selectionFilter WRITE setSelectionFilter) + Q_PROPERTY(TQString selectionCaption READ selectionCaption WRITE setSelectionCaption) Q_PROPERTY(SelectionType selectionType READ selectionType WRITE setSelectionType) Q_ENUMS(SelectionType) Q_PROPERTY(bool selectionOpenMultiple READ selectionOpenMultiple WRITE setSelectionOpenMultiple) public: - FileSelector(QWidget *a_parent, const char *a_name); + FileSelector(TQWidget *a_parent, const char *a_name); ~FileSelector(); virtual bool isKommanderWidget() const; - virtual void setAssociatedText(const QStringList&); - virtual QStringList associatedText() const; - virtual QString currentState() const; - virtual QString populationText() const; - virtual void setPopulationText(const QString&); + virtual void setAssociatedText(const TQStringList&); + virtual TQStringList associatedText() const; + virtual TQString currentState() const; + virtual TQString populationText() const; + virtual void setPopulationText(const TQString&); enum SelectionType { Open, Save, Directory }; SelectionType selectionType() const; void setSelectionType(SelectionType); bool selectionOpenMultiple() const; void setSelectionOpenMultiple(bool); - QString selectionFilter() const; - void setSelectionFilter(const QString&); - QString selectionCaption() const; - void setSelectionCaption(const QString&); - QString caption() const; - void setCaption(const QString&); + TQString selectionFilter() const; + void setSelectionFilter(const TQString&); + TQString selectionCaption() const; + void setSelectionCaption(const TQString&); + TQString caption() const; + void setCaption(const TQString&); bool showEditor() const; void setShowEditor(bool); - virtual QString handleDCOP(int function, const QStringList& args); + virtual TQString handleDCOP(int function, const TQStringList& args); virtual bool isFunctionSupported(int function); public slots: - virtual void setWidgetText(const QString&); + virtual void setWidgetText(const TQString&); virtual void makeSelection(); virtual void populate(); signals: void widgetOpened(); - void widgetTextChanged(const QString&); + void widgetTextChanged(const TQString&); void contextMenuRequested(int xpos, int ypos); protected: - void contextMenuEvent( QContextMenuEvent * e ); + void contextMenuEvent( TQContextMenuEvent * e ); bool m_openMultiple; - QString m_caption; - QString m_filter; + TQString m_caption; + TQString m_filter; SelectionType m_selectionType; KLineEdit *m_lineEdit; KPushButton *m_selectButton; - QBoxLayout *m_boxLayout; - void showEvent(QShowEvent *e); + TQBoxLayout *m_boxLayout; + void showEvent(TQShowEvent *e); private: }; |