Resource Browser - smoother gui
When you press down or up while browsing in the resource browser, it plays the sample. FIXED: When you click on the keyboard in the resource browser, and then click on the treeview, it didn't transfer focus.
This commit is contained in:
@@ -61,12 +61,15 @@ public:
|
||||
private slots:
|
||||
void showContextMenu( const QPoint & _pos );
|
||||
void startItemPreview( const QModelIndex & _idx );
|
||||
void setFocusAndPreview( const QModelIndex & _idx );
|
||||
void stopItemPreview( const QModelIndex & _idx );
|
||||
void stopPreview();
|
||||
void triggerDefaultAction( const QModelIndex & _idx );
|
||||
void updateFilterStatus();
|
||||
void manageDirectories();
|
||||
|
||||
void currentChanged( const QModelIndex &, const QModelIndex & );
|
||||
|
||||
|
||||
private:
|
||||
void triggerAction( Actions _action, ResourceItem * _item );
|
||||
@@ -76,8 +79,10 @@ private:
|
||||
// the object that will preview individual resources
|
||||
ResourcePreviewer m_previewer;
|
||||
|
||||
QLineEdit * m_filterEdit;
|
||||
// our tree model on-top of a ResourceDB
|
||||
ResourceTreeModel m_treeModel;
|
||||
|
||||
|
||||
// a view for the tree model
|
||||
ResourceTreeView * m_treeView;
|
||||
@@ -88,3 +93,5 @@ private:
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* vim: set tw=0 noexpandtab: */
|
||||
|
||||
@@ -41,6 +41,10 @@ public slots:
|
||||
void setFilter( const QString & _s );
|
||||
void updateFilter( void );
|
||||
|
||||
void currentChanged( const QModelIndex & current,
|
||||
const QModelIndex & previous );
|
||||
void selectionChanged( const QItemSelection & selected,
|
||||
const QItemSelection & deselected );
|
||||
|
||||
protected:
|
||||
virtual void startDrag( Qt::DropActions supportedActions );
|
||||
@@ -48,14 +52,21 @@ protected:
|
||||
|
||||
private:
|
||||
ResourceTreeModel * m_tm;
|
||||
|
||||
|
||||
QString m_lastFilter;
|
||||
|
||||
|
||||
signals:
|
||||
void dragStarted();
|
||||
|
||||
void treeViewCurrentChanged( const QModelIndex & current,
|
||||
const QModelIndex & previous );
|
||||
void treeViewSelectionChanged( const QItemSelection & selected,
|
||||
const QItemSelection & deselected );
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* vim: set tw=0 noexpandtab: */
|
||||
|
||||
Reference in New Issue
Block a user