diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-04-11 12:15:06 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-04-11 12:15:06 +0000 |
| commit | 479e8cdec11fc40e20ea5e4ea410489e5a695495 (patch) | |
| tree | 199ea6a8fe7803b0ffa9d1c3e64fab9d1845ad41 /src/qmmpui/jumptotrackdialog.cpp | |
| parent | 9b534fb390def4a5b24bd3c224ff466a362983ae (diff) | |
| download | qmmp-479e8cdec11fc40e20ea5e4ea410489e5a695495.tar.gz qmmp-479e8cdec11fc40e20ea5e4ea410489e5a695495.tar.bz2 qmmp-479e8cdec11fc40e20ea5e4ea410489e5a695495.zip | |
improved "jump to track" dialog
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6244 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/jumptotrackdialog.cpp')
| -rw-r--r-- | src/qmmpui/jumptotrackdialog.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/qmmpui/jumptotrackdialog.cpp b/src/qmmpui/jumptotrackdialog.cpp index 373b1909f..e01e3a630 100644 --- a/src/qmmpui/jumptotrackdialog.cpp +++ b/src/qmmpui/jumptotrackdialog.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2015 by Ilya Kotov * + * Copyright (C) 2007-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -45,15 +45,13 @@ JumpToTrackDialog::JumpToTrackDialog(PlayListModel *model, QWidget* parent) m_proxyModel->setDynamicSortFilter(true); m_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive); m_proxyModel->setSourceModel(m_listModel); + m_proxyModel->setSortLocaleAware(true); songsListView->setModel(m_proxyModel); - connect(songsListView,SIGNAL(doubleClicked(const QModelIndex &)), - this,SLOT(jumpTo(const QModelIndex&))); - connect(songsListView,SIGNAL(activated(const QModelIndex &)), - this,SLOT(accept())); - connect(songsListView->selectionModel(), - SIGNAL(currentRowChanged(const QModelIndex&,const QModelIndex&)), - this,SLOT(queueUnqueue(const QModelIndex&,const QModelIndex&))); + connect(songsListView,SIGNAL(doubleClicked(QModelIndex)),SLOT(jumpTo(QModelIndex))); + connect(songsListView,SIGNAL(activated(QModelIndex)),SLOT(accept())); + connect(songsListView->selectionModel(),SIGNAL(currentRowChanged(QModelIndex, QModelIndex)), + SLOT(queueUnqueue(QModelIndex, QModelIndex))); connect(m_model, SIGNAL(destroyed()), SLOT(close())); |
