Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void ItemLibrary::setItemDescriptionsDirectory ( QString  dir  ) 

Stores the item descriptions directory in the users config.

Definition at line 615 of file itemlibrary.cpp.

Referenced by ContextHelp::requestItemDescriptionsDirectory().

{
      if ( !dir.isEmpty() && !dir.endsWith("/") )
            dir += "/";
      
      KConfig * conf = kapp->config();
      QString prevGroup = conf->group();
      
      conf->setGroup("General");
      conf->writePathEntry( "ItemDescriptionsDirectory", dir );
      conf->setGroup( prevGroup );
}


Generated by  Doxygen 1.6.0   Back to index