use selectionModel selectionChanged() signal to trigger decoration change, rather than activate

svn path=/trunk/KDE/kdebase/workspace/; revision=1081165
This commit is contained in:
Hugo Pereira Da Costa 2010-01-27 21:09:04 +00:00
parent 0917db504e
commit b02f1c6d7e

View file

@ -87,7 +87,7 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QVariantList &
readConfig( style ); readConfig( style );
connect( m_ui->decorationList, SIGNAL(activated(QModelIndex)), SLOT(slotSelectionChanged()) ); connect( m_ui->decorationList->selectionModel(), SIGNAL(selectionChanged(const QItemSelection &, const QItemSelection &)), SLOT(slotSelectionChanged()) );
connect( m_ui->configureButtonsButton, SIGNAL(clicked(bool)), this, SLOT(slotConfigureButtons())); connect( m_ui->configureButtonsButton, SIGNAL(clicked(bool)), this, SLOT(slotConfigureButtons()));
connect( m_ui->ghnsButton, SIGNAL(clicked(bool)), SLOT(slotGHNSClicked()) ); connect( m_ui->ghnsButton, SIGNAL(clicked(bool)), SLOT(slotGHNSClicked()) );
connect( m_ui->searchEdit, SIGNAL(textChanged(QString)), m_proxyModel, SLOT(setFilterFixedString(QString))); connect( m_ui->searchEdit, SIGNAL(textChanged(QString)), m_proxyModel, SLOT(setFilterFixedString(QString)));