Changeset 490
- Timestamp:
- 09/17/08 09:47:22 (5 years ago)
- Location:
- branches/audiofilebrowser/gui/src/AudioFileBrowser
- Files:
-
- 3 modified
-
AudioFileBrowser.cpp (modified) (3 diffs)
-
AudioFileBrowser.h (modified) (1 diff)
-
AudioFileBrowser_UI.ui (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/audiofilebrowser/gui/src/AudioFileBrowser/AudioFileBrowser.cpp
r489 r490 102 102 filelineedit->setText( path ); 103 103 m_pSampleWaveDisplay->updateDisplay( NULL ); 104 105 updateModelIndex(); //with this you have a navigation like konqueror 104 106 105 107 if ( model->isDir( index ) ) … … 120 122 pathLineEdit->setText( onlypath ); 121 123 124 updateModelIndex(); //with this you have a navigation like konqueror 122 125 123 126 if ( … … 221 224 return m_pselectedFile; 222 225 } 226 227 228 229 void AudioFileBrowser::on_m_pPathHometoolButton_clicked() 230 { 231 pathLineEdit->setText( QDir::homePath() ); 232 tree->setRootIndex( model->index( QDir::homePath() ) ); 233 } 234 235 236 237 void AudioFileBrowser::on_m_pPathUptoolButton_clicked() 238 { 239 QString toremove = ""; 240 QString path = pathLineEdit->text(); 241 242 if ( path.length() <=1 ) 243 return; 244 245 if ( path.endsWith( '/') ) { 246 toremove = path.section( '/', -2 ); 247 }else 248 { 249 toremove = path.section( '/', -1 ); 250 } 251 252 QString updir = path.replace( toremove, "" ); 253 pathLineEdit->setText( updir ); 254 tree->setRootIndex( model->index( updir ) ); 255 } -
branches/audiofilebrowser/gui/src/AudioFileBrowser/AudioFileBrowser.h
r488 r490 58 58 void on_m_pPlayBtn_clicked(); 59 59 void updateModelIndex(); 60 void on_m_pPathHometoolButton_clicked(); 61 void on_m_pPathUptoolButton_clicked(); 62 60 63 61 64 private: -
branches/audiofilebrowser/gui/src/AudioFileBrowser/AudioFileBrowser_UI.ui
r488 r490 183 183 <widget class="QToolButton" name="m_pPathUptoolButton" > 184 184 <property name="text" > 185 <string> up</string>185 <string>Up</string> 186 186 </property> 187 187 </widget> 188 188 </item> 189 189 <item> 190 <widget class="Q PushButton" name="m_pPathHometoolButton" >190 <widget class="QToolButton" name="m_pPathHometoolButton" > 191 191 <property name="text" > 192 192 <string>Home</string>