| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Check for valid QModelIndex in dirEvent. It could very well be possible
that we get an invalid index from find(), especially when deleting or
modifying files. Maybe this fixes some unexplained crashes I wasn't able
to reproduce...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Well, what started as a try to simplify QTreeView ended in a mass header
murder...
What happened:
* I searched for a way to let every QTreeView honor the
setAlternatingRowcolors() setting. Unfortunately it isn't enough to just
set the global palette and set it to true. So every QTreeView is now
derived from SmTreeView
* SmTreeView registers itself with SmGlobals, so the property is set
_after_ it's constructed. It's definitely not enough to call it in the
constructor. I guess that's a bug. But it's enough to append the
SmTreeView to a QList<QWidget*> in SmGlobals and call it _after_ the
painting is done.
* As an added Bonus we can add virt. funcs to every SmTreeView at will
While at it I realized that most of the included headers were void, so
remove them. No idea what impact it has on the bin size...
|
|
|
|
|
|
| |
Don't call refresh on model after setting the dvd no for an index. Then
the selection is lost and the other selected indexes won't be updated.
Call refresh from the view after updating all indexes instead.
|
|
|
|
|
| |
Add a configuration option for checking the database when browsing the
filesystem.
|
|
|
|
|
| |
Indicate if we already have a file by coloring the filename darkGreen
when browsing the filesystem.
|
|
|
|
|
| |
Consolidate duration and size in one Field, like in the archive, to be
consistent. Also rename the Role and Field accordingly.
|
|
|
|
| |
It's a leftover. Data is collected by SmDataCollector.
|
|
|
|
|
|
| |
If file is an image, grab the size and add it to the model.
Also, remove some leftover debug statements from SmTreeView.
|
|
|
|
|
|
|
|
|
|
| |
Code reusage: all 3 tabs had the same funtions: readHeaderConfig,
writeHeaderConfig and toggleHeader, so turn it into a class derived from
QTreeView.
Unfortunately mATree didn't do things as later added Views, so it took
some time to find the culprit in SheMov::readSettings :( Hopefully I
didn't break too much...
|
|
|
|
|
| |
Save headerView on exit, create a Menu for selecting headers and read
headerConfig on startup.
|
|
|
|
|
| |
create snapshot pics in a separate thread. Also use the first frame
available if the clip isn't long enough for the configured frame.
|
|
|
|
| |
Don't open an editor in FileView when doubleclicking a file.
|
|
|
|
| |
Push it back to reality :)
|
|
|
|
|
| |
Create new splash screen from Kimber James. She's so hot!
While at it, change the Domain...
|
|
|
|
| |
Remove some unused QActions from SheMov
|
|
|
|
|
| |
Drop all the stuff placing the window somewhere. I'm using a tiling
window manager :)
|
|
|
|
|
| |
Show total duration of selected Movies in FileView. Created a new class
Helper::Duration for this and declared it as QMetaType.
|
|
|
|
|
| |
Since we have SmDirModel now, we can explicitly refresh the view,
eventually!
|
|
|
|
|
|
| |
Since can reset the FileView through a time, remember the selections on
reset and restore them after. The Timer is stopped when an item is being
edited.
|
|
|
|
| |
Don't crash harder on read failure :)
|
|
|
|
|
| |
Since inotify isn't completely implemented for cifs mounts, implement
auto refresh for FileView. Default is 5 seconds.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A huge commit, I know, but it was definitely worth it! It makes the
homebrew FilesystemModel work! It's divided up into two threads:
1. The Watcher: it reacts on inotify events and dispatches them to:
2. The Collector: this thread gathers the data and emits the SIGNALS to
the the view.
Now we can actually refresh the View, not possible with
QFileSystemModel, and the data reloads in almost real time without
blocking the GUI.
Unfortunately this uncovered some bugs I had to fix:
1. Helper::md5sum: Don't crash if read fails with -1
2. SmTreeModel::addRow is broken. Even after 5h I couldn't figure out
how or why, so I brute forced it. Reset the moded when a file is added.
3. Get rid of a lot of unneeded #include's
I guess that's about it...
|
|
|
|
|
|
| |
blocking the GUI isn't nice, so use a separate Thread to gather all the
data for SmDirModel. Populating and changing directory works, but
modifying a file is most likely broken.
|
|
|
|
|
|
| |
4969cdba731671df80df951543dc47c4e52d70de "fixed"
QFileSystemModel::FilePathRole for that function. We're actually
querying the DirModel, unfix it.
|
|
|
|
|
| |
Automatically resize FileView when it changes. I guess I was quite drunk
on the first try. Fortunately I didn't commit it :)
|
|
|
|
| |
Wasn't used anyway, dropped DB-Table seen also.
|
|
|
|
|
|
|
| |
This is more a qt5-fix than a SmDirModel fix. The global palette doesn't
propagate any more, so we have to set the palette in every QTreeView
separately. Very annoying and tedious. Maybe I missed a Widget or two,
dunno...
|
|
|
|
| |
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.
|