diff options
author | william <william.os4y@gmail.com> | 2015-03-20 08:09:47 +0100 |
---|---|---|
committer | william <william.os4y@gmail.com> | 2015-03-20 08:09:47 +0100 |
commit | a5d95ee21de03ee0531847aafe3ab7e37bd517ab (patch) | |
tree | 4f44d60636f14e1afeec2f94c8c41c9a3e71573d /lumina-fm | |
parent | Merge remote-tracking branch 'upstream/master' into fmNumbers (diff) | |
download | lumina-a5d95ee21de03ee0531847aafe3ab7e37bd517ab.tar.gz lumina-a5d95ee21de03ee0531847aafe3ab7e37bd517ab.tar.bz2 lumina-a5d95ee21de03ee0531847aafe3ab7e37bd517ab.zip |
Display the number of items in a directory in the statusBar
Diffstat (limited to 'lumina-fm')
-rw-r--r-- | lumina-fm/MainUI.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index 187922e1..1a8612c7 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -445,15 +445,11 @@ void MainUI::setCurrentDir(QString dir){ //if(olddir!=rawdir){ emit DirChanged(rawdir); //This will be automatically run when a new dir is loaded //} - if(isUserWritable){ - if (DEBUG) {qDebug() << "# Items:" << fsmod->rootDirectory().entryInfoList().size();} - QString strSize = QString(tr("Items:")) + QString::number(fsmod->rootDirectory().entryInfoList().size()); - ui->label_dir_stats->setText(strSize); - } - else{ - QString strSize = QString(tr("Limited Access Directory. Items:")) + QString::number(fsmod->rootDirectory().entryInfoList().size()); - ui->label_dir_stats->setText(strSize); + if(isUserWritable){ ui->label_dir_stats->setText(""); } + else{ ui->label_dir_stats->setText(tr("Limited Access Directory")); } + QString strSize = QString(tr("Items:")) + QString::number(fsmod->rootDirectory().entryInfoList().size()); + ui->statusbar->showMessage(strSize); ui->tool_addToDir->setVisible(isUserWritable); ui->tool_addNewFile->setVisible(isUserWritable); ui->actionUpDir->setEnabled(dir!="/"); |