Commit a11f03f9 authored by Jan Möbius's avatar Jan Möbius

Slot debugging added to switchTexture

parent 0a58d3b2
......@@ -404,12 +404,28 @@ void Core::slotTextureUpdated( QString _textureName , int _identifier ) {
/** Called by plugins if texture mode should be switched
*/
void Core::slotSwitchTexture( QString _textureName, int _id ) {
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"switchTexture( " + _textureName + " , " + QString::number(_id) + tr(" ) called by ") +
QString( sender()->metaObject()->className() ) );
}
}
}
emit switchTexture(_textureName, _id);
}
/** Called by plugins if texture mode should be switched
*/
void Core::slotSwitchTexture( QString _textureName ) {
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"switchTexture( " + _textureName + tr(" ) called by ") +
QString( sender()->metaObject()->className() ) );
}
}
}
emit switchTexture(_textureName);
}
......
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