author | zecke <zecke> | 2005-02-05 15:47:16 (UTC) |
---|---|---|
committer | zecke <zecke> | 2005-02-05 15:47:16 (UTC) |
commit | 8ba13dd38e7da296177719dcc8fddbbe978a4b9a (patch) (side-by-side diff) | |
tree | fdba0d440e7b462faa2b845a0f4364cff134166f /noncore/graphics/opie-eye/gui/iconview.cpp | |
parent | 28c5c88c3535c035bd26abd988ef7fb0e098143f (diff) | |
download | opie-8ba13dd38e7da296177719dcc8fddbbe978a4b9a.zip opie-8ba13dd38e7da296177719dcc8fddbbe978a4b9a.tar.gz opie-8ba13dd38e7da296177719dcc8fddbbe978a4b9a.tar.bz2 |
Add a special MessageBox to squeeze the path to fit onto the screen.
This is a fix for #1539
Diffstat (limited to 'noncore/graphics/opie-eye/gui/iconview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/iconview.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp index 138e661..b2443e8 100644 --- a/noncore/graphics/opie-eye/gui/iconview.cpp +++ b/noncore/graphics/opie-eye/gui/iconview.cpp @@ -6,2 +6,3 @@ #include "iconview.h" +#include "messagebox.h" @@ -379,9 +380,8 @@ void PIconView::slotTrash() { QString pa = currentFileName( isDir ); - if ( isDir && pa.isEmpty() ) + if ( isDir || pa.isEmpty() ) return; - if (!QPEMessageBox::confirmDelete( this, - tr("Delete Image" ), - tr("the Image %1" ).arg(pa))) - return + if (!OMessageBox::confirmDelete( this, tr("the Image"), + pa, tr("Delete Image" ))) + return; @@ -432,5 +432,2 @@ void PIconView::polish() { - odebug << "===\n" - << "PIconView::polish()\n" - << "====" << oendl; QVBox::polish(); |