From 479e8cdec11fc40e20ea5e4ea410489e5a695495 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 11 Apr 2016 12:15:06 +0000 Subject: 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 --- src/qmmpui/jumptotrackdialog.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/qmmpui/jumptotrackdialog.cpp') 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())); -- cgit v1.2.3-13-gbd6f