-rw-r--r-- | noncore/graphics/opie-eye/gui/iconview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp index 4a20648..f415d39 100644 --- a/noncore/graphics/opie-eye/gui/iconview.cpp +++ b/noncore/graphics/opie-eye/gui/iconview.cpp | |||
@@ -66,19 +66,19 @@ namespace { | |||
66 | m_noInfo( false ) | 66 | m_noInfo( false ) |
67 | { | 67 | { |
68 | if ( isDir && !_dirPix ) | 68 | if ( isDir && !_dirPix ) |
69 | _dirPix = new QPixmap( Resource::loadPixmap("advancedfm/FileBrowser")); | 69 | _dirPix = new QPixmap( Resource::loadPixmap("advancedfm/FileBrowser")); |
70 | else if ( !isDir && !_unkPix ) | 70 | else if ( !isDir && !_unkPix ) |
71 | _unkPix = new QPixmap( Resource::loadPixmap( "UnknownDocument" ) ); | 71 | _unkPix = new QPixmap( Resource::loadPixmap( "UnknownDocument" ) ); |
72 | } | 72 | } |
73 | inline QPixmap* IconViewItem::pixmap()const { | 73 | inline QPixmap* IconViewItem::pixmap()const { |
74 | qWarning( "Name is " + m_path.right( 15 ) + " rect is %d %d %d %d | %d %d", | 74 | // qWarning( "Name is " + m_path.right( 15 ) + " rect is %d %d %d %d | %d %d", |
75 | rect().x(),rect().y(),rect().width(),rect().height(), | 75 | // rect().x(),rect().y(),rect().width(),rect().height(), |
76 | iconView()->contentsX(), iconView()->contentsY()); | 76 | // iconView()->contentsX(), iconView()->contentsY()); |
77 | 77 | ||
78 | if ( m_isDir ) | 78 | if ( m_isDir ) |
79 | return _dirPix; | 79 | return _dirPix; |
80 | else{ | 80 | else{ |
81 | if (!m_noInfo && !g_stringInf.contains( m_path ) ) { | 81 | if (!m_noInfo && !g_stringInf.contains( m_path ) ) { |
82 | currentView()->dirLister()->imageInfo( m_path ); | 82 | currentView()->dirLister()->imageInfo( m_path ); |
83 | g_stringInf.insert( m_path, const_cast<IconViewItem*>(this)); | 83 | g_stringInf.insert( m_path, const_cast<IconViewItem*>(this)); |
84 | } | 84 | } |
@@ -152,29 +152,29 @@ void PIconView::initKeys() { | |||
152 | lst.append( Opie::Ui::OKeyPair::downArrowKey() ); | 152 | lst.append( Opie::Ui::OKeyPair::downArrowKey() ); |
153 | lst.append( Opie::Ui::OKeyPair::leftArrowKey() ); | 153 | lst.append( Opie::Ui::OKeyPair::leftArrowKey() ); |
154 | lst.append( Opie::Ui::OKeyPair::rightArrowKey() ); | 154 | lst.append( Opie::Ui::OKeyPair::rightArrowKey() ); |
155 | lst.append( Opie::Ui::OKeyPair::returnKey() ); | 155 | lst.append( Opie::Ui::OKeyPair::returnKey() ); |
156 | 156 | ||
157 | m_viewManager = new Opie::Ui::OKeyConfigManager(m_cfg, "View-KeyBoard-Config", | 157 | m_viewManager = new Opie::Ui::OKeyConfigManager(m_cfg, "View-KeyBoard-Config", |
158 | lst, false,this, "keyconfig name" ); | 158 | lst, false,this, "keyconfig name" ); |
159 | m_viewManager->addKeyConfig( OKeyConfigItem(tr("Beam Current Item") , "beam", | 159 | m_viewManager->addKeyConfig( OKeyConfigItem(tr("Beam Current Item") , "beam", |
160 | QString::fromLatin1("beam"), BeamItem, | 160 | Resource::loadPixmap("beam"), BeamItem, |
161 | Opie::Ui::OKeyPair(Qt::Key_B, Qt::ShiftButton), | 161 | Opie::Ui::OKeyPair(Qt::Key_B, Qt::ShiftButton), |
162 | this, SLOT(slotBeam())) ); | 162 | this, SLOT(slotBeam())) ); |
163 | m_viewManager->addKeyConfig( OKeyConfigItem(tr("Delete Current Item"), "delete", | 163 | m_viewManager->addKeyConfig( OKeyConfigItem(tr("Delete Current Item"), "delete", |
164 | QString::fromLatin1("trash"), DeleteItem, | 164 | Resource::loadPixmap("trash"), DeleteItem, |
165 | Opie::Ui::OKeyPair(Qt::Key_D, Qt::ShiftButton), | 165 | Opie::Ui::OKeyPair(Qt::Key_D, Qt::ShiftButton), |
166 | this, SLOT(slotTrash())) ); | 166 | this, SLOT(slotTrash())) ); |
167 | m_viewManager->addKeyConfig( OKeyConfigItem(tr("View Current Item"), "view", | 167 | m_viewManager->addKeyConfig( OKeyConfigItem(tr("View Current Item"), "view", |
168 | QString::fromLatin1("1to1"), ViewItem, | 168 | Resource::loadPixmap("1to1"), ViewItem, |
169 | Opie::Ui::OKeyPair(Qt::Key_V, Qt::ShiftButton), | 169 | Opie::Ui::OKeyPair(Qt::Key_V, Qt::ShiftButton), |
170 | this, SLOT(slotShowImage()))); | 170 | this, SLOT(slotShowImage()))); |
171 | m_viewManager->addKeyConfig( OKeyConfigItem(tr("Show Image Info") , "info", | 171 | m_viewManager->addKeyConfig( OKeyConfigItem(tr("Show Image Info") , "info", |
172 | QString::fromLatin1("DocumentTypeWord"), InfoItem, | 172 | Resource::loadPixmap("DocumentTypeWord"), InfoItem, |
173 | Opie::Ui::OKeyPair(Qt::Key_I, Qt::ShiftButton ), | 173 | Opie::Ui::OKeyPair(Qt::Key_I, Qt::ShiftButton ), |
174 | this, SLOT(slotImageInfo()) ) ); | 174 | this, SLOT(slotImageInfo()) ) ); |
175 | m_viewManager->load(); | 175 | m_viewManager->load(); |
176 | m_viewManager->handleWidget( m_view ); | 176 | m_viewManager->handleWidget( m_view ); |
177 | } | 177 | } |
178 | 178 | ||
179 | void PIconView::slotDirUp() { | 179 | void PIconView::slotDirUp() { |
180 | QDir dir( m_path ); | 180 | QDir dir( m_path ); |