summaryrefslogtreecommitdiffstats
path: root/kalarm/sounddlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/sounddlg.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/sounddlg.cpp')
-rw-r--r--kalarm/sounddlg.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kalarm/sounddlg.cpp b/kalarm/sounddlg.cpp
index 691ba936..02d3af55 100644
--- a/kalarm/sounddlg.cpp
+++ b/kalarm/sounddlg.cpp
@@ -69,8 +69,8 @@ static const char SOUND_DIALOG_NAME[] = "SoundDialog";
SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fadeSeconds, bool repeat,
- const TQString& caption, TQWidget* parent, const char* name)
- : KDialogBase(parent, name, true, caption, Ok|Cancel, Ok, false),
+ const TQString& caption, TQWidget* tqparent, const char* name)
+ : KDialogBase(tqparent, name, true, caption, Ok|Cancel, Ok, false),
mReadOnly(false),
mArtsDispatcher(0),
mPlayObject(0),
@@ -120,7 +120,7 @@ SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fad
grid->addColSpacing(0, indentWidth);
grid->addColSpacing(1, indentWidth);
// Get tqalignment to use in TQGridLayout (AlignAuto doesn't work correctly there)
- int tqalignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
+ int tqalignment = TQApplication::reverseLayout() ? TQt::AlignRight : TQt::AlignLeft;
// 'Set volume' checkbox
box = new TQHBox(group);
@@ -133,7 +133,7 @@ SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fad
i18n("Select to choose the volume for playing the sound file."));
// Volume slider
- mVolumeSlider = new Slider(0, 100, 10, 0, Qt::Horizontal, box);
+ mVolumeSlider = new Slider(0, 100, 10, 0, TQt::Horizontal, box);
mVolumeSlider->setTickmarks(TQSlider::Below);
mVolumeSlider->setTickInterval(10);
mVolumeSlider->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
@@ -168,7 +168,7 @@ SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fad
grid->addWidget(mFadeVolumeBox, 4, 2);
label = new TQLabel(i18n("Initial volume:"), mFadeVolumeBox);
label->setFixedSize(label->tqsizeHint());
- mFadeSlider = new Slider(0, 100, 10, 0, Qt::Horizontal, mFadeVolumeBox);
+ mFadeSlider = new Slider(0, 100, 10, 0, TQt::Horizontal, mFadeVolumeBox);
mFadeSlider->setTickmarks(TQSlider::Below);
mFadeSlider->setTickInterval(10);
mFadeSlider->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
@@ -370,7 +370,7 @@ void SoundDlg::stopPlay()
if (!mLocalAudioFile.isEmpty())
{
KIO::NetAccess::removeTempFile(mLocalAudioFile); // removes it only if it IS a temporary file
- mLocalAudioFile = TQString::null;
+ mLocalAudioFile = TQString();
}
mFilePlay->setPixmap(SmallIcon("player_play"));
TQToolTip::add(mFilePlay, i18n("Test the sound"));
@@ -412,7 +412,7 @@ bool SoundDlg::checkFile()
#endif
{
// It's a relative path.
- // Find the first sound resource that tqcontains files.
+ // Find the first sound resource that contains files.
TQStringList soundDirs = KGlobal::dirs()->resourceDirs("sound");
if (!soundDirs.isEmpty())
{
@@ -443,7 +443,7 @@ bool SoundDlg::checkFile()
}
#ifdef WITHOUT_ARTS
KMessageBox::sorry(this, i18n("File not found"));
- mFileName = TQString::null;
+ mFileName = TQString();
return false;
#else
return true;