Hello community, here is the log from the commit of package kremotecontrol for openSUSE:Factory checked in at 2013-10-03 16:00:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kremotecontrol (Old) and /work/SRC/openSUSE:Factory/.kremotecontrol.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kremotecontrol" Changes: -------- --- /work/SRC/openSUSE:Factory/kremotecontrol/kremotecontrol.changes 2013-09-09 11:09:06.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kremotecontrol.new/kremotecontrol.changes 2013-10-03 16:00:31.000000000 +0200 @@ -1,0 +2,7 @@ +Sat Sep 28 15:16:31 UTC 2013 - [email protected] + +- Update to 4.11.2 + * KDE 4.11.2 bugfix release + * See http://www.kde.org/announcements/announce-4.11.2.php + +------------------------------------------------------------------- Old: ---- kremotecontrol-4.11.1.tar.xz New: ---- kremotecontrol-4.11.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kremotecontrol.spec ++++++ --- /var/tmp/diff_new_pack.QLhshs/_old 2013-10-03 16:00:32.000000000 +0200 +++ /var/tmp/diff_new_pack.QLhshs/_new 2013-10-03 16:00:32.000000000 +0200 @@ -17,7 +17,7 @@ Name: kremotecontrol -Version: 4.11.1 +Version: 4.11.2 Release: 0 Summary: KDE Frontend for the Linux Infrared Remote Control system License: GPL-2.0+ ++++++ kremotecontrol-4.11.1.tar.xz -> kremotecontrol-4.11.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kremotecontrol-4.11.1/kcmremotecontrol/kcmremotecontrol.cpp new/kremotecontrol-4.11.2/kcmremotecontrol/kcmremotecontrol.cpp --- old/kremotecontrol-4.11.1/kcmremotecontrol/kcmremotecontrol.cpp 2013-06-28 19:39:11.000000000 +0200 +++ new/kremotecontrol-4.11.2/kcmremotecontrol/kcmremotecontrol.cpp 2013-09-26 21:24:36.000000000 +0200 @@ -101,7 +101,7 @@ // Create RemoteModel m_remoteModel = new RemoteModel(m_remoteList, ui.tvRemotes); ui.tvRemotes->setModel(m_remoteModel); - connect(ui.tvRemotes->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), SLOT(modeSelectionChanged(QModelIndex))); + connect(ui.tvRemotes->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SLOT(modeSelectionChanged(QItemSelection))); connect(ui.tvRemotes, SIGNAL(doubleClicked(QModelIndex)), SLOT(editMode())); // QueuedConnection needed because the model itself may has some slots queded and refreshing the model before that breaks logic connect(m_remoteModel, SIGNAL(modeChanged(Mode*)), SLOT(actionDropped(Mode*)), Qt::QueuedConnection); @@ -109,7 +109,7 @@ // Create ActionModel m_actionModel = new ActionModel(ui.tvActions); ui.tvActions->setModel(m_actionModel); - connect(ui.tvActions->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), SLOT(actionSelectionChanged(QModelIndex))); + connect(ui.tvActions->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SLOT(actionSelectionChanged(QItemSelection))); connect(ui.tvActions, SIGNAL(doubleClicked(QModelIndex)), SLOT(editAction())); // connect ShowTrayIcon checkbox @@ -290,7 +290,7 @@ if(mode){ ui.tvRemotes->selectionModel()->setCurrentIndex(m_remoteModel->find(mode), QItemSelectionModel::Rows | QItemSelectionModel::SelectCurrent); } - modeSelectionChanged(ui.tvRemotes->selectionModel()->currentIndex()); + modeSelectionChanged(ui.tvRemotes->selectionModel()->selection()); if(!m_remoteList.isEmpty()){ ui.lNoRemotesWarning->setMaximumSize(0,0); @@ -312,10 +312,15 @@ if(oldAction){ ui.tvActions->selectionModel()->setCurrentIndex(m_actionModel->find(oldAction), QItemSelectionModel::Rows | QItemSelectionModel::SelectCurrent); } - actionSelectionChanged(ui.tvActions->selectionModel()->currentIndex()); + actionSelectionChanged(ui.tvActions->selectionModel()->selection()); } -void KCMRemoteControl::modeSelectionChanged(const QModelIndex &index) { +void KCMRemoteControl::modeSelectionChanged(const QItemSelection& selection) { + const QModelIndexList indexes = selection.indexes(); + QModelIndex index; + if(!indexes.isEmpty()) { + index = indexes.at(0); + } if(index.isValid()){ // Enable Add and Edit buttons only if remote is available bool selectedRemoteAvailable = m_remoteModel->remote(index)->isAvailable(); @@ -367,7 +372,12 @@ } } -void KCMRemoteControl::actionSelectionChanged(const QModelIndex& index) { +void KCMRemoteControl::actionSelectionChanged(const QItemSelection& selection) { + const QModelIndexList indexes = selection.indexes(); + QModelIndex index; + if(!indexes.isEmpty()) { + index = indexes.at(0); + } if(index.isValid()){ // Enable Add and Edit buttons only if remote is available bool selectedRemoteAvailable = m_remoteModel->remote(ui.tvRemotes->selectionModel()->currentIndex())->isAvailable(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kremotecontrol-4.11.1/kcmremotecontrol/kcmremotecontrol.h new/kremotecontrol-4.11.2/kcmremotecontrol/kcmremotecontrol.h --- old/kremotecontrol-4.11.1/kcmremotecontrol/kcmremotecontrol.h 2013-06-28 19:39:11.000000000 +0200 +++ new/kremotecontrol-4.11.2/kcmremotecontrol/kcmremotecontrol.h 2013-09-26 21:24:36.000000000 +0200 @@ -68,8 +68,8 @@ void updateModes(); void updateActions(Mode *mode); - void modeSelectionChanged(const QModelIndex &index); - void actionSelectionChanged(const QModelIndex &index); + void modeSelectionChanged(const QItemSelection &selection); + void actionSelectionChanged(const QItemSelection &selection); void addUnconfiguredRemotes(); void autoPopulate(); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
