diff options
Diffstat (limited to 'kalarm/soundpicker.h')
-rw-r--r-- | kalarm/soundpicker.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kalarm/soundpicker.h b/kalarm/soundpicker.h index 7cad7f380..b07d63e39 100644 --- a/kalarm/soundpicker.h +++ b/kalarm/soundpicker.h @@ -21,8 +21,8 @@ #ifndef SOUNDPICKER_H #define SOUNDPICKER_H -#include <qframe.h> -#include <qstring.h> +#include <tqframe.h> +#include <tqstring.h> #include <kurl.h> class QHBox; @@ -45,7 +45,7 @@ class SoundPicker : public QFrame * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit SoundPicker(QWidget* parent, const char* name = 0); + explicit SoundPicker(TQWidget* parent, const char* name = 0); /** Initialises the widget's state. * @param type The option to select. * @param filename The full path or URL of the sound file to select. If the 'file' option is @@ -64,7 +64,7 @@ class SoundPicker : public QFrame * selected, @p repeat provides the default should 'file' later be selected by * the user. */ - void set(Type type, const QString& filename, float volume, float fadeVolume, int fadeSeconds, bool repeat); + void set(Type type, const TQString& filename, float volume, float fadeVolume, int fadeSeconds, bool repeat); /** Returns true if the widget is read only for the user. */ bool isReadOnly() const { return mReadOnly; } /** Sets whether the widget can be changed the user. @@ -80,7 +80,7 @@ class SoundPicker : public QFrame /** If the 'file' option is selected, returns the URL of the chosen file. * Otherwise returns a null string. */ - QString file() const; + TQString file() const; /** Returns the volume and fade characteristics for playing a sound file. * @param fadeVolume Receives the initial volume if the volume is to be faded, else -1. * @param fadeSeconds Receives the number of seconds over which the volume is to be faded, else 0. @@ -92,7 +92,7 @@ class SoundPicker : public QFrame */ bool repeat() const; /** Returns the current file URL regardless of whether the 'file' option is selected. */ - QString fileSetting() const { return mFile; } + TQString fileSetting() const { return mFile; } /** Returns the current file repetition setting regardless of whether the 'file' option is selected. */ bool repeatSetting() const { return mRepeat; } /** Display a dialogue to choose a sound file, initially highlighting @@ -103,13 +103,13 @@ class SoundPicker : public QFrame * If null, no file will be highlighted. * @return URL selected, in human readable format. If none is selected, URL.isEmpty() is true. */ - static QString browseFile(QString& initialDir, const QString& initialFile = QString::null); + static TQString browseFile(TQString& initialDir, const TQString& initialFile = TQString::null); - static QString i18n_Sound(); // plain text of Sound label - static QString i18n_None(); // plain text of None combo box item - static QString i18n_Beep(); // plain text of Beep combo box item - static QString i18n_Speak(); // plain text of Speak combo box item - static QString i18n_File(); // plain text of File combo box item + static TQString i18n_Sound(); // plain text of Sound label + static TQString i18n_None(); // plain text of None combo box item + static TQString i18n_Beep(); // plain text of Beep combo box item + static TQString i18n_Speak(); // plain text of Speak combo box item + static TQString i18n_File(); // plain text of File combo box item private slots: @@ -119,10 +119,10 @@ class SoundPicker : public QFrame private: ComboBox* mTypeCombo; - QHBox* mTypeBox; + TQHBox* mTypeBox; PushButton* mFilePicker; - QString mDefaultDir; - QString mFile; // sound file to play when alarm is triggered + TQString mDefaultDir; + TQString mFile; // sound file to play when alarm is triggered float mVolume; // volume for file, or < 0 to not set volume float mFadeVolume; // initial volume for file, or < 0 for no fading int mFadeSeconds; // fade interval in seconds |