summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-11-27 12:28:34 +0100
committerArno <am@disconnect.de>2010-11-27 12:28:34 +0100
commitda30a02976792a07c72e8be01aebde019a6a09d5 (patch)
tree7643cddb956a258eea9aeda2990313fd6fa92d32 /shemov.cpp
parent0f3f7598e4a3ee58c330cc7424cf89ea3e692da0 (diff)
downloadSheMov-da30a02976792a07c72e8be01aebde019a6a09d5.tar.gz
SheMov-da30a02976792a07c72e8be01aebde019a6a09d5.tar.bz2
SheMov-da30a02976792a07c72e8be01aebde019a6a09d5.zip
Implemented dialog for showing movies without covers
Implemented a new dialog to show movies without covers. The view is a QTreeView with another model. While working on the model several shortcomings of SmTreeModel were resolved. findValue() now takes another argument to indicate the column the returned QModelIndex() should represent. Also, itemAt() was promoted from private to protected. It's quite useful for derived classes.
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 8821a7b..7cbbce6 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -165,6 +165,7 @@ void SheMov::tabChanged(int newTab){
mShowNormalA->setEnabled(false);
mShowArchivedA->setEnabled(false);
mShowLocalA->setEnabled(false);
+ mShowNoCoverDialogA->setEnabled(false);
}
if(newTab == 1){
setWindowTitle(mATree->windowTitle());
@@ -173,6 +174,7 @@ void SheMov::tabChanged(int newTab){
mShowNormalA->setEnabled(true);
mShowArchivedA->setEnabled(true);
mShowLocalA->setEnabled(true);
+ mShowNoCoverDialogA->setEnabled(true);
}
updateSelectionCount(QItemSelection(), QItemSelection());
}
@@ -413,6 +415,8 @@ void SheMov::createActions(){
connect(mShowNormalA, SIGNAL(triggered()), viewMapper, SLOT(map()));
mShowNormalA->setCheckable(true);
mShowNormalA->setChecked(true);
+ mShowNoCoverDialogA = new QAction(QIcon(":/higheels.png"), tr("List movies without cover..."), this);
+ connect(mShowNoCoverDialogA, SIGNAL(triggered()), mATree, SLOT(showNoCoverDialog()));
//Tree FileWidget actions
mMoveToBurnA = new QAction(tr("Move to burn directory"), this);
@@ -457,6 +461,7 @@ void SheMov::createMenus(){
cleanupMenu->addActions(mCleanupGroup->actions());
fileMenu->addMenu(cleanupMenu);
fileMenu->addAction(mConsistencyA);
+ fileMenu->addAction(mShowNoCoverDialogA);
fileMenu->addSeparator();
fileMenu->addAction(mQuitA);
menuBar()->addMenu(fileMenu);
@@ -638,6 +643,7 @@ void SheMov::createToolBar(){
toolBar->addAction(mCdupA);
toolBar->addSeparator();
toolBar->addAction(mConfigA);
+ toolBar->addAction(mShowNoCoverDialogA);
toolBar->addSeparator();
toolBar->addAction(mShowNormalA);
toolBar->addAction(mShowArchivedA);