From 3d504598346410dbb2a1689dbb00e1b5045feccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 30 Apr 2007 11:50:48 +0000 Subject: [PATCH] No QVariant for KConfig. svn path=/trunk/KDE/kdebase/workspace/; revision=659537 --- clients/b2/b2client.h | 1 - clients/kwmtheme/kwmthemeclient.cpp | 4 ++-- workspace.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/clients/b2/b2client.h b/clients/b2/b2client.h index e5f8960f7b..cceb888c87 100644 --- a/clients/b2/b2client.h +++ b/clients/b2/b2client.h @@ -9,7 +9,6 @@ #ifndef __B2CLIENT_H #define __B2CLIENT_H -#include #include #include #include diff --git a/clients/kwmtheme/kwmthemeclient.cpp b/clients/kwmtheme/kwmthemeclient.cpp index 7ef2723efa..785d451843 100644 --- a/clients/kwmtheme/kwmthemeclient.cpp +++ b/clients/kwmtheme/kwmthemeclient.cpp @@ -147,9 +147,9 @@ static void create_pixmaps() titleAlign = Qt::AlignCenter; else titleAlign = Qt::AlignLeft | Qt::AlignVCenter; - titleSunken = config.readEntry("TitleFrameShaded", QVariant(true)).toBool(); + titleSunken = config.readEntry("TitleFrameShaded", true ); // titleSunken = true; // is this fixed? - titleTransparent = config.readEntry("PixmapUnderTitleText", QVariant(true)).toBool(); + titleTransparent = config.readEntry("PixmapUnderTitleText", true); tmpStr = config.readEntry("TitlebarLook"); if(tmpStr == "shadedVertical"){ diff --git a/workspace.cpp b/workspace.cpp index 03dc3f584e..1a8dfd369d 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -2475,7 +2475,7 @@ void Workspace::helperDialog( const QString& message, const Client* c ) { KConfig cfg( "kwin_dialogsrc" ); KConfigGroup cg(&cfg, "Notification Messages" ); // this depends on KMessageBox - if( !cg.readEntry( type, QVariant(true )).toBool()) // has don't show again checked + if( !cg.readEntry( type, true )) // has don't show again checked return; // save launching kdialog proc << "--dontagain" << "kwin_dialogsrc:" + type; }