| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
another QFilesystemModel:: fix. Use SmDirModel instead.
|
|
|
|
| |
We have the size in SmDirModel now. Use it!
|
|
|
|
| |
Make hovering work again...
|
|
|
|
|
| |
Make NewMovieWizard work again and fix QFileSystemModel::FilePathRole
usage. QFileSystemModel::FilePathRole -> SmDirModel::FullPathRole
|
|
|
|
| |
Don't let createFolder crash b/c of wrong model.
|
|
|
|
|
| |
Made Icons for SmDirModel configurable. For now it's folders, movies,
pictures and others.
|
|
|
|
| |
I think I got it working! It does what I want it to do :)
|
|
|
|
| |
Maybe even more intiuitive this time using unix shell globs...
|
|
|
|
|
|
|
|
| |
Gotta take a break here. Hopefully this will end up in a custom
QFilesystemModel, but I'm hitting so many bugs on the way. Some things
haven't worked for ages, I guess.
Anyway, the watcher doesn't do anythying right now, still fixing bugs...
|
|
|
|
| |
Miss-spelled foldericon (folderIcon) in mappingtablewidget.cpp model.
|
|
|
|
|
|
|
|
| |
* Change #include to qt5
* Fix missing QX11Info
* use explicit constructor for QVariant(QColor)
* use beginResetModel() and endResetModel() instead of reset(). The
latter was removed. Hopefully it still works :)
|
| |
|
|
|
|
|
|
|
| |
When hovering or showing the series name in the status bar, the code
unconditionally assumed that any series has a series number. Since the
introduction of subtitles this is not true any more. Just let the model
figure it out by getting an index for the Name column.
|
|
|
|
|
| |
Somehow editing data in the archive tree was b0rked after recent
updates. It just updated the first selected item.
|
|
|
|
|
| |
Switch back to normal view when in burn view and a series is selected in
SeriesTree.
|
| |
|
|
|
|
|
|
| |
Don't use a SQL-Query to find files. Traverse the model instead. Also
check if the resulting index is already selected. All in all, make it
usable again.
|
|
|
|
|
|
| |
Only move selected files + covers to burn directory, not the entire
series. Makes suggestForBurn more accurate, and we can kinda trust the
selected size :)
|
|
|
|
|
| |
Change sort order when selecting files for burning... Alphabetically is
not very useful here...
|
|
|
|
|
| |
Change action to show all local movies, no favorites, no pictures, to
ease selection of files to burn.
|
|
|
|
|
| |
Filter out favorites when showing all files. Makes it easier to select
files for burning.
|
|
|
|
|
| |
Add menu entry to move files back to archive. Needed when move to burn
directory copies more files than expected.
|
|
|
|
|
|
| |
The QModelIndexList must be a QList<QPersistentModelIndex> to prevent
crashes when removeRows is called. The current QModelIndex could already
be invalid.
|
|
|
|
|
| |
Allow moving files from one SeriesPart to another. Had to add another
global variable for this.
|
|
|
|
|
| |
With siterips it's possible to have several files with the same
subtitle. Now we ask if we want to add to it or cancel.
|
|
|
|
|
| |
Forgot to fix the Edit widget... While at it, refresh the view if
mappings changed in PicturesWidget.
|
|
|
|
|
| |
Forgot to fix/rename MappingTreeResultModel... Adding pictures works
again :)
|
|
|
|
|
|
|
| |
I think I did it! Fixed MappingTreeModel to make it usable, avoid all
the traps with the insane column and variable names! Now we can actually
have the same mapping with different parents! Yay! Hope it won't come
back and bite me!
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename:
* drop table pics_mappings
* rename pics_mappings2 to pics_mappings (no column renames)
Cleanup:
* drop tables and sequences: pics_attributes*
* drop tables and sequences: pics_actors*
* drop tables and sequences: pics_themes*
Still works!
|
|
|
|
|
|
|
|
|
|
|
| |
Rename:
* drop table mappings_parents
* rename mappings_parents2 to mapping_parents
* drop the s after mapping on column names
* rename FK imapping_id to idescription_id
* rename ParentId(Role) to MappingParentId(Role)
Well, it still works (tm) :)
|
|
|
|
| |
Rename enum also! _THAT_ should help, I hope!
|
|
|
|
|
|
|
|
|
|
|
|
| |
Well, many errors are a result of the very confusing naming scheme. We
have tables:
* mappings, more correctly mapping_descriptions
* mapping_parents2, mapping_parents will be eliminated
* mapping_types, maybe right, not sure.
This commit renames mappings (_the_ mapping table) to
mapping_descriptions. Hope I didn't miss anything. No functional change,
BTW.
|
|
|
|
|
|
|
|
|
|
|
| |
To make archiving pictures from different sources easier, add a
NewPicsDialog to PictureViewer. Add shortcuts to show the dialog and
adding pics to it. After adding all pics with the same mappping, just
click OK and add them to the archive.
Shortcuts:
Meta+s: Show NewPicsDialog
Meta+a: Add current pic
|
|
|
|
| |
Only use subtitles when part no is not set.
|
|
|
|
| |
Actually display splash screen and show what we're doing.
|
|
|
|
| |
Sort by subtitle string when there's no partno in SeriesTreeWidget.
|
|
|
|
|
|
| |
Found several parts in the database which had both a subtitle and a
partno -> wrong! Prevent it by disabling and clearing the subtitle field
when hasPartno is checked.
|
|
|
|
|
| |
Well, centering and sizing text is a bitch when operating with QPixmaps
and QImages...
|
|
|
|
|
|
|
| |
Only select files when archiving pics from filemanager. While at it, I
noticed a crash on close when no item is selected in PicturesWidget. So
check if MappingData is valid on writing settings. Best way is
MappingData::isValid(), and for that I needed a explicit constructor.
|
|
|
|
|
|
| |
Well, what can I say. Lost in recursion and parent pointers. This commit
actually boils down to using the proper database tables and inserting
the right values. 'Nuff said...
|
|
|
|
|
| |
Save state of QHeaderView and restore it on startup. Maybe it's time for
a SmTreeView Class implementing these generic functions...
|
|
|
|
| |
Return "(none)" for readability's sake when we have a single part movie.
|
|
|
|
| |
Preparation for making PicturesWidget's tree headers configurable.
|
|
|
|
|
| |
Use Qt-functions for centering pics in PictureViewer2 and fix distance
to window borders.
|
|
|
|
|
| |
Select all pics from current node when doubleclicking a file in pictures
tab.
|
|
|
|
|
|
|
|
| |
Several bug fixes on the way:
* set fixed size policy for PictureViewer2 -> makes resizing much easier
* don't set Y-offset when showing a pic. The scene takes care of it
* don't deliver SIGNAL configChanged() twice to PictureViewer2
* center Widget on current screen when calling Helper::centerWidget
|
|
|
|
|
|
| |
Replace checkbox for showing info items at all with a "do not show"
position in the combobox. While at it, remove unused SideBySide
position.
|
|
|
|
|
|
|
| |
Try to get the position of the current picture after adding and clearing
the file list of PictureViewer2. While thinking of using std::find for
this I realized that the operator()-functions in Helper:: weren't used
any more, so remove them and the <algorithm> includes.
|
|
|
|
|
| |
Try to select newly added mapping. Only try, because it will fail if we
have two children with the same name. The first will win.
|
|
|
|
|
|
|
|
|
| |
* make it possible to delete whole series again. No code fix, just the
database layout: add on delete cascade to metadata
* get rid of propertiesdialog.{cpp,h}. It was useless and called from
the "Edit.." context menu. Code bloat, I guess...
* Do something useful when calling "Edit...". Rename Series or ask for a
new SeriesPart
|