aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplistwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-12 23:37:24 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-12 23:37:24 +0800
commit43ae9bb08b7f3f18028fa8663a6077f4ae1ccbca (patch)
treeb957cdb79e2af63fd7222c63b9a79e307de4834f /qmidiplayer-desktop/qmpplistwindow.cpp
parentcd09a7e8a42c8f3617cfe3c57eed3b96bcfd2ec5 (diff)
downloadQMidiPlayer-43ae9bb08b7f3f18028fa8663a6077f4ae1ccbca.tar.xz
Mysterious Mountain. (Partially fixed #2)
Diffstat (limited to 'qmidiplayer-desktop/qmpplistwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpplistwindow.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/qmidiplayer-desktop/qmpplistwindow.cpp b/qmidiplayer-desktop/qmpplistwindow.cpp
index 8f04fc1..103027c 100644
--- a/qmidiplayer-desktop/qmpplistwindow.cpp
+++ b/qmidiplayer-desktop/qmpplistwindow.cpp
@@ -185,15 +185,15 @@ void qmpPlistWindow::on_pbRepeat_clicked()
{
case 0:
ui->pbRepeat->setIcon(QIcon(":/img/repeat-non.png"));
- ui->pbRepeat->setText("Repeat Off");
+ ui->pbRepeat->setText(tr("Repeat Off"));
break;
case 1:
ui->pbRepeat->setIcon(QIcon(":/img/repeat-one.png"));
- ui->pbRepeat->setText("Repeat One");
+ ui->pbRepeat->setText(tr("Repeat One"));
break;
case 2:
ui->pbRepeat->setIcon(QIcon(":/img/repeat-all.png"));
- ui->pbRepeat->setText("Repeat All");
+ ui->pbRepeat->setText(tr("Repeat All"));
break;
}
}
@@ -205,12 +205,12 @@ void qmpPlistWindow::on_pbShuffle_clicked()
{
case 1:
ui->pbShuffle->setIcon(QIcon(":/img/shuffle.png"));
- ui->pbShuffle->setText("Shuffle On");
+ ui->pbShuffle->setText(tr("Shuffle On"));
break;
case 0:
default:
ui->pbShuffle->setIcon(QIcon(":/img/shuffle-off.png"));
- ui->pbShuffle->setText("Shuffle Off");
+ ui->pbShuffle->setText(tr("Shuffle Off"));
break;
}
}
@@ -256,7 +256,7 @@ void qmpPlistWindow::on_lwFiles_itemDoubleClicked()
void qmpPlistWindow::on_pbSave_clicked()
{
- QSettings* plist=new QSettings(QFileDialog::getSaveFileName(this,"Save playlist",""),
+ QSettings* plist=new QSettings(QFileDialog::getSaveFileName(this,tr("Save playlist"),""),
QSettings::IniFormat);
plist->setValue("Playlist/FileCount",ui->lwFiles->count());
for(int i=0;i<ui->lwFiles->count();++i)
@@ -269,7 +269,7 @@ void qmpPlistWindow::on_pbSave_clicked()
void qmpPlistWindow::on_pbLoad_clicked()
{
- QSettings* plist=new QSettings(QFileDialog::getOpenFileName(this,"Load playlist",""),
+ QSettings* plist=new QSettings(QFileDialog::getOpenFileName(this,tr("Load playlist"),""),
QSettings::IniFormat);
int fc=plist->value("Playlist/FileCount",0).toInt();
if(!fc)return;
@@ -281,27 +281,27 @@ void qmpPlistWindow::on_pbLoad_clicked()
{
case 1:
ui->pbShuffle->setIcon(QIcon(":/img/shuffle.png"));
- ui->pbShuffle->setText("Shuffle On");
+ ui->pbShuffle->setText(tr("Shuffle On"));
break;
case 0:
default:
ui->pbShuffle->setIcon(QIcon(":/img/shuffle-off.png"));
- ui->pbShuffle->setText("Shuffle Off");
+ ui->pbShuffle->setText(tr("Shuffle Off"));
break;
}
switch(repeat)
{
case 0:
ui->pbRepeat->setIcon(QIcon(":/img/repeat-non.png"));
- ui->pbRepeat->setText("Repeat Off");
+ ui->pbRepeat->setText(tr("Repeat Off"));
break;
case 1:
ui->pbRepeat->setIcon(QIcon(":/img/repeat-one.png"));
- ui->pbRepeat->setText("Repeat One");
+ ui->pbRepeat->setText(tr("Repeat One"));
break;
case 2:
ui->pbRepeat->setIcon(QIcon(":/img/repeat-all.png"));
- ui->pbRepeat->setText("Repeat All");
+ ui->pbRepeat->setText(tr("Repeat All"));
break;
}
delete plist;