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