diff options
author | Arno <am@disconnect.de> | 2012-03-18 01:47:21 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-03-18 01:47:21 +0100 |
commit | 3e784fed0148c4ec24aa8b2b8ca53f2d9d9bc543 (patch) | |
tree | ae756b5b493aacb6c486a13b3e4fd0d9a0e4d801 /filestreewidget.h | |
parent | 1e14ae6748f271265dd719ac0766a2da3501a21f (diff) | |
download | SheMov-3e784fed0148c4ec24aa8b2b8ca53f2d9d9bc543.tar.gz SheMov-3e784fed0148c4ec24aa8b2b8ca53f2d9d9bc543.tar.bz2 SheMov-3e784fed0148c4ec24aa8b2b8ca53f2d9d9bc543.zip |
Fix some severe braindamage
It started as a buxfix session, but the more I dug into some ancient
code, the more I had to change.
Well, first and foremost, this fixes a crash in PicturesWidget. Trying
to display the mappings of the selected picture in a different color
never was a good idea. Show them in the statusbar instead.
While looking at the statusBar code, make PictureWidget emit signals to
show the total size and number of selected items. Then I noticed some
really, really braindamaged connection madness in the Shemov
constructor. Instead of doing all the work in SheMov itself, have the
widgets emit signals.
This should have been several commits, but one lead to another...
Diffstat (limited to 'filestreewidget.h')
-rw-r--r-- | filestreewidget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filestreewidget.h b/filestreewidget.h index 940d9de..54393dd 100644 --- a/filestreewidget.h +++ b/filestreewidget.h @@ -41,12 +41,12 @@ class FilesTreeWidget : public QWidget { void suggest(); private slots: - void fileSelectionChanged(const QModelIndex ¤t, const QModelIndex &previous); - void fileSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected); + void fileSelectionChanged(); void itemDoubleClicked(const QModelIndex &index); signals: - void sizeChanged(qint64); + void selectedSize(qint64); + void numSelected(int); void statusMessage(QString); private: |