summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-10 07:55:39 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-10 07:55:39 (GMT)
commit197586f4aa8e59fae5ae3b69c41df08430714e2a (patch)
treea83ddc4fb654581f8e8531c288eca1fa820136ac
parent8178f86e97c7c2a1b60f78fd2808aa17609cafe4 (diff)
Use qobject_cast
-rw-r--r--src/grantleethememanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grantleethememanager.cpp b/src/grantleethememanager.cpp
index 1b23eb9..b814c7a 100644
--- a/src/grantleethememanager.cpp
+++ b/src/grantleethememanager.cpp
@@ -224,7 +224,7 @@ public:
void slotThemeSelected()
{
if (q->sender()) {
- KToggleAction *act = dynamic_cast<KToggleAction *>(q->sender());
+ KToggleAction *act = qobject_cast<KToggleAction *>(q->sender());
selectTheme(act);
Q_EMIT q->grantleeThemeSelected();
}