Advertisement
Guest User

Untitled

a guest
Mar 19th, 2010
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.16 KB | None | 0 0
  1. === modified file 'mixxx/src/library/library.cpp'                                                            
  2. --- mixxx/src/library/library.cpp       2010-03-18 10:18:41 +0000                                            
  3. +++ mixxx/src/library/library.cpp       2010-03-19 08:16:11 +0000                                            
  4. @@ -112,7 +112,7 @@                                                                                          
  5.                                                                                                              
  6.      // used for auto expand                                                                                
  7.      connect(m_pSidebarModel, SIGNAL(expandIndex(QModelIndex)),                                              
  8. -            pSidebarWidget, SLOT(expand(QModelIndex)));                                                    
  9. +            pSidebarWidget, SLOT(toggleExpansion(QModelIndex)));                                            
  10.                                                                                                              
  11.      QListIterator<LibraryFeature*> feature_it(m_features);                                                  
  12.      while(feature_it.hasNext()) {                                                                          
  13.  
  14. === modified file 'mixxx/src/library/sidebarmodel.cpp'
  15. --- mixxx/src/library/sidebarmodel.cpp  2010-03-18 10:18:41 +0000
  16. +++ mixxx/src/library/sidebarmodel.cpp  2010-03-19 08:20:14 +0000
  17. @@ -207,7 +207,7 @@
  18.  
  19.  bool SidebarModel::dragMoveAccept(const QModelIndex& index, QUrl url)
  20.  {
  21. -    //qDebug() << "SidebarModel::dragMoveAccept() index=" << index << url;
  22. +    qDebug() << "SidebarModel::dragMoveAccept() index=" << index << url;
  23.      if (index.isValid()) {
  24.          if (index.internalPointer() == this) {
  25.              m_hoveredIndex = index;
  26. @@ -274,5 +274,6 @@
  27.  
  28.  void SidebarModel::slotAutoExpandTimerTimeout()
  29.  {
  30. +    m_autoExpandTimer.stop();
  31.      emit expandIndex(m_hoveredIndex);
  32.  }
  33.  
  34. === modified file 'mixxx/src/widget/wlibrarysidebar.cpp'
  35. --- mixxx/src/widget/wlibrarysidebar.cpp        2010-02-09 05:47:28 +0000
  36. +++ mixxx/src/widget/wlibrarysidebar.cpp        2010-03-19 08:17:01 +0000
  37. @@ -40,7 +40,7 @@
  38.   */
  39.  void WLibrarySidebar::dragMoveEvent(QDragMoveEvent * event)
  40.  {
  41. -    //qDebug() << "dragMoveEvent" << event->mimeData()->formats();
  42. +    qDebug() << "dragMoveEvent" << event->mimeData()->formats();
  43.  
  44.      if (event->mimeData()->hasUrls())
  45.      {
  46. @@ -161,3 +161,9 @@
  47.      else
  48.          QTreeView::keyPressEvent(event);
  49.  }
  50. +
  51. +void WLibrarySidebar::toggleExpansion( QModelIndex index )
  52. +{
  53. +    qDebug() << "WLibrarySidebar::toggleExpansion" << index;
  54. +    setExpanded(index, !isExpanded(index));
  55. +}
  56.  
  57. === modified file 'mixxx/src/widget/wlibrarysidebar.h'
  58. --- mixxx/src/widget/wlibrarysidebar.h  2009-12-11 06:10:55 +0000
  59. +++ mixxx/src/widget/wlibrarysidebar.h  2010-03-19 08:16:25 +0000
  60. @@ -16,6 +16,9 @@
  61.      void dropEvent(QDropEvent * event);
  62.      void keyPressEvent(QKeyEvent* event);
  63.  
  64. +  public slots:
  65. +    void toggleExpansion( QModelIndex index );
  66. +
  67.    signals:
  68.      void rightClicked(const QPoint&, const QModelIndex&);
  69.  };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement