]> cloud.milkyroute.net Git - dolphin.git/commit
Make the settings dialog work in the frameworks branch
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 5 Jun 2014 22:51:15 +0000 (00:51 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 5 Jun 2014 22:51:15 +0000 (00:51 +0200)
commit05c8254ee47cb668771bb4009209122364e8a2a6
treefd2c35f5e8b191945b7e0658c6c817d5b8cf4db2
parentc12dc996f535f787ab828560068a2c8b7f98c5cf
Make the settings dialog work in the frameworks branch

The KF5 version of KPageDialog has no virtual slot
"slotButtonClicked(int button)". Its kdelibs 4.x counterpart had such
a slot, which was connected automatically to the corresponding signal.

This slot was overriden by

DolphinSettingsDialog::slotButtonClicked(int button)

which was responsible for applying the changed setting and restoring
the default values if the corresponding button was clicked.

The lack of the buttonClicked(int) signal and the corresponding slot
caused the problem that clicking a button in the settings dialog had no
effect.

This patch makes the functions applySettings() and restoreDefaults()
functions slots, and connects them directly to the "clicked" signal of
the corresponding buttons.

BUG: 335709
REVIEW: 118576
src/settings/dolphinsettingsdialog.cpp
src/settings/dolphinsettingsdialog.h