Commit 7c987f6b authored by Jan Möbius's avatar Jan Möbius
Browse files

Added some slot debugging for texture slots in core

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4195 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 4e7a7be4
......@@ -139,6 +139,16 @@ void Core::slotAddTexture( QString _textureName , QString _filename, uint _dimen
* See in the documentation of the texture plugin interfaces for further detail.
*/
void Core::slotUpdateTexture( QString _name , int _identifier){
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"slotUpdateTexture( " + _name + " , " + QString::number(_identifier) + " ) called by " +
QString( sender()->metaObject()->className() ) );
}
}
}
emit updateTexture(_name, _identifier);
}
......@@ -160,6 +170,14 @@ void Core::slotSetTextureMode(QString _textureName ,QString _mode) {
* See in the documentation of the texture plugin interfaces for further detail.
*/
void Core::slotTextureUpdated( QString _textureName , int _identifier ) {
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"slotTextureUpdated( " + _textureName + " , " + QString::number(_identifier) + " ) called by " +
QString( sender()->metaObject()->className() ) );
}
}
}
emit updatedTextures(_textureName,_identifier);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment