|
|
@ -7,10 +7,10 @@
|
|
|
|
// Please see the header file for copyright and license information.
|
|
|
|
// Please see the header file for copyright and license information.
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#include <kconfig.h>
|
|
|
|
#include <tdeconfig.h>
|
|
|
|
#include <kglobal.h>
|
|
|
|
#include <tdeglobal.h>
|
|
|
|
#include <kglobalsettings.h>
|
|
|
|
#include <tdeglobalsettings.h>
|
|
|
|
#include <klocale.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <kstandarddirs.h>
|
|
|
|
#include <kstandarddirs.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include <ntqbitmap.h>
|
|
|
|
#include <ntqbitmap.h>
|
|
|
@ -98,7 +98,7 @@ bool FahrenheitFactory::reset(unsigned long changed)
|
|
|
|
bool FahrenheitFactory::readConfig()
|
|
|
|
bool FahrenheitFactory::readConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// create a config object
|
|
|
|
// create a config object
|
|
|
|
KConfig config("kwinfahrenheitrc");
|
|
|
|
TDEConfig config("twinfahrenheitrc");
|
|
|
|
config.setGroup("General");
|
|
|
|
config.setGroup("General");
|
|
|
|
|
|
|
|
|
|
|
|
// grab settings
|
|
|
|
// grab settings
|
|
|
@ -150,8 +150,8 @@ void FahrenheitButton::setPixmap(TQString pixmap)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!pixmap) return; // probably the menu button
|
|
|
|
if (!pixmap) return; // probably the menu button
|
|
|
|
|
|
|
|
|
|
|
|
TQString buttonLocation_ = KGlobal::dirs()->findResource ("data",
|
|
|
|
TQString buttonLocation_ = TDEGlobal::dirs()->findResource ("data",
|
|
|
|
TQString("kwin/fahrenheit/") + pixmap + ".png");
|
|
|
|
TQString("twin/fahrenheit/") + pixmap + ".png");
|
|
|
|
|
|
|
|
|
|
|
|
if (deco_) delete deco_;
|
|
|
|
if (deco_) delete deco_;
|
|
|
|
deco_ = new TQPixmap(buttonLocation_);
|
|
|
|
deco_ = new TQPixmap(buttonLocation_);
|
|
|
|