diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-07 22:15:56 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-07 22:15:56 -0500 |
commit | 4dc80faf840ee48bd4c0b8d5338a5274de013c39 (patch) | |
tree | 77257053afc0e124bc8832bdb8f4433f87625628 /kdesktop/kdiconview.h | |
parent | 5124f6367b90b101ccc5dba1d1c59fae8ce7de8d (diff) | |
download | tdebase-4dc80faf840ee48bd4c0b8d5338a5274de013c39.tar.gz tdebase-4dc80faf840ee48bd4c0b8d5338a5274de013c39.zip |
Use correct icon area when placing new icons
This resolves another long-standing bug where saved icons are moved to make way for new icons
Diffstat (limited to 'kdesktop/kdiconview.h')
-rw-r--r-- | kdesktop/kdiconview.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kdesktop/kdiconview.h b/kdesktop/kdiconview.h index bc24308f6..c18b0d9d5 100644 --- a/kdesktop/kdiconview.h +++ b/kdesktop/kdiconview.h @@ -110,9 +110,9 @@ public: void startDirLister(); - TQPoint findPlaceForIconCol( int column, int dx, int dy ); - TQPoint findPlaceForIconRow( int row, int dx, int dy ); - TQPoint findPlaceForIcon( int column, int row ); + TQPoint findPlaceForIconCol( int column, int dx, int dy, const TQRect ¤tIconArea ); + TQPoint findPlaceForIconRow( int row, int dx, int dy, const TQRect ¤tIconArea ); + TQPoint findPlaceForIcon( int column, int row, const TQRect ¤tIconArea = TQRect() ); protected slots: @@ -173,9 +173,9 @@ protected: bool makeFriendlyText( KFileIVI *fileIVI ); static TQString stripDesktopExtension( const TQString & text ); bool isDesktopFile( KFileItem * _item ) const; - bool isFreePosition( const TQIconViewItem *item ) const; - bool isFreePosition( const TQIconViewItem *item, const TQRect& rect ) const; - void moveToFreePosition(TQIconViewItem *item ); + bool isFreePosition( const TQIconViewItem *item, const TQRect ¤tIconArea ) const; + bool isFreePosition( const TQIconViewItem *item, const TQRect& rect, const TQRect ¤tIconArea ) const; + void moveToFreePosition(TQIconViewItem *item, const TQRect ¤tIconArea ); bool deleteGlobalDesktopFiles(); void removeBuiltinIcon(TQString iconName); |