summaryrefslogtreecommitdiffstats
path: root/kalarm/soundpicker.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/soundpicker.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/soundpicker.h')
-rw-r--r--kalarm/soundpicker.h30
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