summaryrefslogtreecommitdiffstats
path: root/kdesktop/kdiconview.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-04-07 22:15:56 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-04-07 22:15:56 -0500
commit4dc80faf840ee48bd4c0b8d5338a5274de013c39 (patch)
tree77257053afc0e124bc8832bdb8f4433f87625628 /kdesktop/kdiconview.h
parent5124f6367b90b101ccc5dba1d1c59fae8ce7de8d (diff)
downloadtdebase-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.h12
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 &currentIconArea );
+ TQPoint findPlaceForIconRow( int row, int dx, int dy, const TQRect &currentIconArea );
+ TQPoint findPlaceForIcon( int column, int row, const TQRect &currentIconArea = 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 &currentIconArea ) const;
+ bool isFreePosition( const TQIconViewItem *item, const TQRect& rect, const TQRect &currentIconArea ) const;
+ void moveToFreePosition(TQIconViewItem *item, const TQRect &currentIconArea );
bool deleteGlobalDesktopFiles();
void removeBuiltinIcon(TQString iconName);