Logo Search packages:      
Sourcecode: kmess version File versions

EmoticonManager::EmoticonManager (  )  [private]

Constructor

Definition at line 43 of file emoticonmanager.cpp.

References EmoticonTheme::loadTheme().

Referenced by instance().

  : QObject(0)
  , customTheme_(new EmoticonTheme())
  , shouldSaveTheme_(false)
  , standardTheme_(new EmoticonTheme())
{
  setObjectName("EmoticonManager");

  // Create the default KMess standard theme, to always have a fallback theme
  if( ! standardTheme_->loadTheme( "KMess-new", false ) )
  {
    kWarning() << "Cannot create standard emoticon theme!";
  }
  else
  {
    // Change theme and connect its update signal
    connect( standardTheme_, SIGNAL( updated() ), this, SIGNAL( updated() ) );
  }

  // Connect the theme update signal to detect its changes
  connect( customTheme_, SIGNAL( updated() ), this, SIGNAL( updated() ) );
}


Generated by  Doxygen 1.6.0   Back to index