diff options
Diffstat (limited to 'src/kima.cpp')
-rw-r--r-- | src/kima.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kima.cpp b/src/kima.cpp index aedc1f3..d4465e6 100644 --- a/src/kima.cpp +++ b/src/kima.cpp @@ -93,8 +93,8 @@ Kima::Kima(const TQString& inConfigFile, Type inType, int inActions, TQWidget* i mPrefs = 0; // the prefs ui is created in the preferences() method // Get the current application configuration handle - mKConfig = config(); - mKConfig->setGroup("Kima"); + mTDEConfig = config(); + mTDEConfig->setGroup("Kima"); // automatically delete pointers mSources.setAutoDelete(TRUE); @@ -128,7 +128,7 @@ Kima::Kima(const TQString& inConfigFile, Type inType, int inActions, TQWidget* i ++itSync; registerSource(source); } - mLayout->updatePositions(mKConfig); + mLayout->updatePositions(mTDEConfig); // create the menu mMenu = new KPopupMenu(this); @@ -292,14 +292,14 @@ void Kima::savePreferences(){ while((source = it.current()) != 0){ ++it; source->applyPrefs(); - source->savePrefs(mKConfig); + source->savePrefs(mTDEConfig); } // save the position of all sources because they might have changed. - mLayout->updatePositions(mKConfig); + mLayout->updatePositions(mTDEConfig); // update the source widgets updateSourceWidgets(); // write config - mKConfig->sync(); + mTDEConfig->sync(); // reset cached witdh for height to force recalculation of the applets width mCachedWFH = 0; } @@ -367,9 +367,9 @@ void Kima::mouseMoveEvent( TQMouseEvent* inEvent ) { TQRect crect = c->rect(); double relPos = c->mapFromGlobal(inEvent->globalPos()).y() * mDragFactor; if(mLayout->moveItem(mDraggedSourceItem, it.current(), crect.height()/2.0 > relPos ? FlowLayout::ABOVE : FlowLayout::BELOW)){ - mLayout->updatePositions(mKConfig); + mLayout->updatePositions(mTDEConfig); updateGeometry(); - mKConfig->sync(); // write config + mTDEConfig->sync(); // write config updateSourceWidgets(); } break; @@ -404,7 +404,7 @@ void Kima::registerSource(Source* source) { // load prefs from the configuration // this call also emits enabledChanged - source->loadPrefs(mKConfig); + source->loadPrefs(mTDEConfig); // add the source to the layout if necessary displaySource(source->isEnabled() && source->showOnApplet(), source); |